Use a current_user helper for accessing the logged in user in all views.
This commit is contained in:
parent
41000078b9
commit
c819bec8b7
31 changed files with 99 additions and 97 deletions
|
@ -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" %>'>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue