项目=》文档 文档提交者添加超链接

This commit is contained in:
z9hang 2014-06-18 17:35:05 +08:00
parent d2db58050d
commit c0d97870d5
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@
<% end %>
<% end %>
<% if options[:author] %>
<span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span>
<!-- modified by zjc author添加超链接 -->
<span class="author"><%= link_to h(attachment.author),user_path(attachment.author) %>, <%= format_time(attachment.created_on) %></span>
<% end %>
</p>
<% end %>