##// END OF EJS Templates
Adds link to user's account on issue history....
Jean-Philippe Lang -
r2071:0b2299c7d1ef
parent child
Show More
@@ -48,7 +48,7 module ApplicationHelper
48
48
49 # Display a link to user's account page
49 # Display a link to user's account page
50 def link_to_user(user)
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 end
52 end
53
53
54 def link_to_issue(issue, options={})
54 def link_to_issue(issue, options={})
@@ -3,7 +3,7
3 <div id="change-<%= journal.id %>" class="journal">
3 <div id="change-<%= journal.id %>" class="journal">
4 <h4><div style="float:right;"><%= link_to "##{journal.indice}", :anchor => "note-#{journal.indice}" %></div>
4 <h4><div style="float:right;"><%= link_to "##{journal.indice}", :anchor => "note-#{journal.indice}" %></div>
5 <%= content_tag('a', '', :name => "note-#{journal.indice}")%>
5 <%= content_tag('a', '', :name => "note-#{journal.indice}")%>
6 <%= format_time(journal.created_on) %> - <%= journal.user.name %></h4>
6 <%= format_time(journal.created_on) %> - <%= link_to_user(journal.user) %></h4>
7 <%= avatar(journal.user, :size => "32") %>
7 <%= avatar(journal.user, :size => "32") %>
8 <ul>
8 <ul>
9 <% for detail in journal.details %>
9 <% for detail in journal.details %>
General Comments 0
You need to be logged in to leave comments. Login now