Skip to content

Commit

Permalink
Merge pull request #22 from CodeForPortland/help-page-text-change
Browse files Browse the repository at this point in the history
 Text for Help section (#7)
  • Loading branch information
antibland authored Mar 3, 2019
2 parents 441ab81 + 09e6f03 commit eb2255f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/assets/stylesheets/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
text-decoration: underline;
}

html {
scroll-behavior: smooth;
}

.locale-form .locale-switcher {
background-color: $brand;
}
}
18 changes: 17 additions & 1 deletion app/views/pages/help/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,23 @@
<div class="row">
<div class="small-12 medium-9 column">
<h2><%= t("pages.help.title", org: setting['org_name']) %></h2>
<p><%= t("pages.help.guide", org: setting['org_name']) %></p>
<p>
<%= t("pages.help.guide",
community_forum_link: link_to(
t("pages.help.menu.debates"), "#debates",
class: "content-link"
),
proposals_link: link_to(
t("pages.help.menu.proposals"), "#proposals",
class: "content-link"
),
voting_link: link_to(
t("pages.help.menu.polls"), "#polls",
class: "content-link"
),
).html_safe
%>
</p>
</div>
</div>

Expand Down
1 change: 1 addition & 0 deletions config/locales/en/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ en:
help:
title: "%{org} is a platform for citizen participation"
guide: "This guide explains what each of the %{org} sections are for and how they work."
guide: "You can contribute to the %{community_forum_link}, create %{proposals_link}, and offer support by %{voting_link}. This guide clarifies what the sections are for and how they work."
menu:
debates: "Community Forum"
proposals: "Proposals"
Expand Down

0 comments on commit eb2255f

Please sign in to comment.