Fix help_url things

This commit is contained in:
Eric Schultz 2018-08-08 10:40:53 -05:00
parent a0567a1d96
commit ab2cd71865
4 changed files with 17 additions and 14 deletions

View file

@ -16,8 +16,10 @@
</ul> </ul>
<ul class='col-4 u-noClear u-margin--0'> <ul class='col-4 u-noClear u-margin--0'>
<% if Settings.terms_and_privacy&.help_url %>
<li><%= link_to("Help", Settings.terms_and_privacy.help_url) %></li>
<% end %>
<li><a href='/help'>Help</a></li>
</ul> </ul>
<%# <div class='globalFooter-mailingListCol'> %> <%# <div class='globalFooter-mailingListCol'> %>

View file

@ -29,14 +29,12 @@
<i class='sideNav-icon icon-binocular'></i> <i class='sideNav-icon icon-binocular'></i>
<span class='sideNav-text'>Explore</span> <span class='sideNav-text'>Explore</span>
</a> </a>
<a class='sideNav-link' href="/help"> <% if Settings.terms_and_privacy&.help_url %>
<a class='sideNav-link' href="<%=Settings.terms_and_privacy.help_url %>">
<i class='sideNav-icon icon-bubble-ask-2'></i> <i class='sideNav-icon icon-bubble-ask-2'></i>
<span class='sideNav-text'>Help</span> <span class='sideNav-text'>Help</span>
</a> </a>
<a class='sideNav-link' href="/blog"> <% end %>
<i class='sideNav-icon icon-megaphone-1'></i>
<span class='sideNav-text'>Blog</span>
</a>
</section> </section>
<% end %> <% end %>
</nav> </nav>

View file

@ -18,10 +18,13 @@
<span class='sideNav-text'>Settings</span> <span class='sideNav-text'>Settings</span>
</a> </a>
<% if current_role?([:nonprofit_admin,:nonprofit_associate]) %> <% if current_role?([:nonprofit_admin,:nonprofit_associate]) %>
<a class='sideNav-link' href='/help'>
<% if Settings.terms_and_privacy&.help_url %>
<a class='sideNav-link' href='<%=Settings.terms_and_privacy.help_url %>'>
<i class='sideNav-icon icon-question-mark'></i> <i class='sideNav-icon icon-question-mark'></i>
<span class='sideNav-text'>Help</span> <span class='sideNav-text'>Help</span>
</a> </a>
<% end %>
<% end %> <% end %>
<a class='sideNav-link' href='<%= destroy_user_session_path %>'> <a class='sideNav-link' href='<%= destroy_user_session_path %>'>
<i class='sideNav-icon icon-log-out-1'></i> <i class='sideNav-icon icon-log-out-1'></i>

View file

@ -9,6 +9,6 @@
Once you've started completing these tasks, you'll see your dashboard come to life with helpful data and reminders. Once you've started completing these tasks, you'll see your dashboard come to life with helpful data and reminders.
</span> </span>
If you need help with any these tasks, visit our <a href='/help'>Help Center</a>. <% if Settings.terms_and_privacy&.help_url %><span><%= link_to("Help", Settings.terms_and_privacy.help_url) %></span><% end %>
</p> </p>
</div> </div>