@@ -48,7 +48,7 module ApplicationHelper | |||
|
48 | 48 | |
|
49 | 49 | # Display a link to user's account page |
|
50 | 50 | def link_to_user(user) |
|
51 | user ? link_to(user, :controller => 'account', :action => 'show', :id => user) : 'Anonymous' | |
|
51 | (user && !user.anonymous?) ? link_to(user, :controller => 'account', :action => 'show', :id => user) : 'Anonymous' | |
|
52 | 52 | end |
|
53 | 53 | |
|
54 | 54 | def link_to_issue(issue, options={}) |
@@ -3,7 +3,7 | |||
|
3 | 3 | <div id="change-<%= journal.id %>" class="journal"> |
|
4 | 4 | <h4><div style="float:right;"><%= link_to "##{journal.indice}", :anchor => "note-#{journal.indice}" %></div> |
|
5 | 5 | <%= content_tag('a', '', :name => "note-#{journal.indice}")%> |
|
6 |
<%= format_time(journal.created_on) %> - <%= journal.user |
|
|
6 | <%= format_time(journal.created_on) %> - <%= link_to_user(journal.user) %></h4> | |
|
7 | 7 | <%= avatar(journal.user, :size => "32") %> |
|
8 | 8 | <ul> |
|
9 | 9 | <% for detail in journal.details %> |
General Comments 0
You need to be logged in to leave comments.
Login now