Use a current_user helper for accessing the logged in user in all views.

This commit is contained in:
Andy Allan 2017-07-26 11:54:31 +01:00
parent 41000078b9
commit c819bec8b7
31 changed files with 99 additions and 97 deletions

View file

@ -5,7 +5,7 @@
<p class='introduction'><%= t "help_page.introduction" %></p>
<% ['welcome', 'beginners_guide', 'help', 'mailing_lists', 'forums', 'irc', 'switch2osm', 'wiki'].each do |site| %>
<% unless site == 'welcome' && !@user %>
<% unless site == 'welcome' && !current_user %>
<div class='<%= site %> help-item'>
<h3>
<a href='<%= t "help_page.#{site}.url" %>'>