Skip to content

Commit ccadd79

Browse files
committed
added proper page title for pinned links
1 parent ad3802d commit ccadd79

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

app/views/pinned_links/index.html.erb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
<%
2+
title = t('mod.tools.pinned_links')
3+
blurb = t('mod.tools.pinned_links_blurb')
4+
%>
5+
6+
<% content_for :title, title %>
7+
18
<%= link_to moderator_path, class: 'has-font-size-small' do %>
29
&laquo; Return to moderator tools
310
<% end %>
411

5-
<h1>Featured Links</h1>
6-
<p class="is-lead">Featured links allow you as a moderator to draw attention to issues or posts of importance to the community. Use them sparingly and only when needed, because they tend to get ignored if used too often.</p>
12+
<h1><%= title %></h1>
13+
<p class="is-lead"><%= blurb %></p>
714

815
<div class="grid has-margin-bottom-4">
916
<% if current_user.is_global_moderator %>

config/locales/strings/en.mod.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
en:
2+
mod:
3+
tools:
4+
pinned_links: 'Featured Links'
5+
pinned_links_blurb: >
6+
Featured links allow you as a moderator to draw attention to issues or posts of importance to the community.
7+
Use them sparingly and only when needed, because they tend to get ignored if used too often.

0 commit comments

Comments
 (0)