OSDN Git Service

Link to the user from the wiki history view.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 26 Feb 2010 16:03:05 +0000 (16:03 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 26 Feb 2010 16:03:05 +0000 (16:03 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3496 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/wiki/history.rhtml

index 7ce78a0..55620b6 100644 (file)
@@ -22,7 +22,7 @@
     <td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < @versions.size) %></td>
     <td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true || $('version_from').value > #{ver.version}) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %></td>
     <td align="center"><%= format_time(ver.updated_on) %></td>
-    <td><em><%= ver.author ? ver.author.name : "anonyme" %></em></td>
+    <td><%= link_to_user ver.author %></td>
     <td><%=h ver.comments %></td>
     <td align="center"><%= link_to l(:button_annotate), :action => 'annotate', :page => @page.title, :version => ver.version %></td>
 </tr>