* chore: remove the description * feat: change the meta og:site_name property from The Practical DEV to The <COMMUNITY_NAME> Community consistently * refactor: change the canonical link to be more dynamic using the <%= ApplicationConfig["APP_PROTOCOL"] %><%= ApplicationConfig["APP_DOMAIN"] %> * refactor: update the path to be dynamic * refactor: change some other meta properties to be dynamic * refactor: update the index * refactor: update the sitename to just read <%= ApplicationConfig["COMMUNITY_NAME"] %> Community * feat: copyright year should be dynamic * feat: change the meta og:url content to be dynamic by using <%= ApplicationConfig["APP_PROTOCOL"] %><%= ApplicationConfig["APP_DOMAIN"] %> for the former part of the url * feat: space * refactor: move the copyright notice to a helper * refactor: use the community_qualified_name helper! * refactor: start year is already a string * refactor: use app url helper instead of <%= ApplicationConfig["APP_PROTOCOL"] %><%= ApplicationConfig["APP_DOMAIN"] %> everywhere * chore:oops * refactor: Change <meta name="twitter:image:src" content="http://i.imgur.com/B4JNl1w.png"> to `<meta name="twitter:image:src" content="<%= SiteConfig.main_social_image %>">` consistently. * refactor: Replace `<meta property="og:image" content="http://i.imgur.com/B4JNl1w.png" />` with ` <meta property="og:image" content="<%= SiteConfig.main_social_image %>" />` * chore: update some other meta's * feat: replace 'The Practical DEV' with 'DEV Community' and * test: remove The :) * test: copyright_notice * fix: syntax error * feat: name of community * refactor: use app url * fix: template strings * fix: tag * feat: update the app url parameters * feat: add a community_name helper so we don't have to refer to an environment variable in the templates * feat: take into account the case when the start year is a blank string * feat: single quotes to double quotes * test: add a test for the #community_name * chore: update or codeclimate * chore: amend the community helper * refactor: use the community_name helper in here * feat: update ApplicationConfig["COMMUNITY_NAME"] with community_name * fix: Time.current.year needs to be a string :( * chore: extra space * chore: change to use community_qualified_name
29 lines
1.6 KiB
Text
29 lines
1.6 KiB
Text
<div class="crayons-dropdown left-2 right-2 s:left-auto p-0 top-bar__menu__dropdown">
|
|
<% if user_signed_in? %>
|
|
<div id="user-profile-link-placeholder" class="border-0 border-b-1 border-solid border-base-20 p-1">...</div>
|
|
|
|
<div class="border-0 border-b-1 border-solid border-base-20 p-1">
|
|
<a href="/dashboard" class="crayons-nav-block">Dashboard</a>
|
|
<a href="/new" class="crayons-nav-block">Write a Post</a>
|
|
<a href="/readinglist" class="crayons-nav-block">Reading List</a>
|
|
<a href="/settings" class="crayons-nav-block">Settings</a>
|
|
<a href="/p/information" class="crayons-nav-block" id="second-last-nav-link">Key Links</a>
|
|
</div>
|
|
<div class="p-1">
|
|
<a href="/signout_confirm" class="crayons-nav-block" id="last-nav-link">Sign Out</a>
|
|
</div>
|
|
<% else %>
|
|
<div class="border-0 border-b-1 border-solid border-base-20 p-1">
|
|
<a href="/enter" data-no-instant id="first-nav-link" class="crayons-nav-block fw-medium">Sign In/Up</a>
|
|
<% if SiteConfig.auth_allowed?("twitter") %>
|
|
<a href="/users/auth/twitter?callback_url=<%= app_url("/users/auth/twitter/callback") %>" class="crayons-nav-block pl-5" data-no-instant>Via Twitter</a>
|
|
<% end %>
|
|
<% if SiteConfig.auth_allowed?("github") %>
|
|
<a href="/users/auth/github?state=navbar_basic" class="crayons-nav-block pl-5" data-no-instant id="second-last-nav-link">Via GitHub</a>
|
|
<% end %>
|
|
</div>
|
|
<div class="p-1">
|
|
<a href="/p/information" class="crayons-nav-block" id="last-nav-link">All about <%= ApplicationConfig["COMMUNITY_NAME"] %></a>
|
|
</div>
|
|
<% end %>
|
|
</div>
|