显示帖子的发布者和时间
This commit is contained in:
parent
4b063a2c69
commit
10aa8eee81
|
@ -474,7 +474,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def user_url_and_time(user_name, user_url, created)
|
||||
unless user_name.nil?
|
||||
unless user_name.nil? || user_name == ''
|
||||
l(:label_added_time_by, :author => link_to(user_name, user_url), :age => time_tag(created)).html_safe
|
||||
else
|
||||
l(:label_added_time, :age => time_tag(created)).html_safe
|
||||
|
|
|
@ -48,11 +48,11 @@
|
|||
<tr>
|
||||
<td colspan="2" ><span class="font_description"> </span></td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<td align="left" colspan="2" ><span class="font_lighter"><%#= authoring topic.created_at, topic.author %>
|
||||
<tr>
|
||||
<td align="left" colspan="2" ><span class="font_lighter"><%= user_url_and_time topic.username, topic.userhomeurl, topic.created_at %>
|
||||
<br />
|
||||
</span></td>
|
||||
</tr> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" colspan="2" >帖子来源:<span class="font_lighter" style="color: #068d9c"><%=link_to 'OSChina', topic.url %>
|
||||
</span></td>
|
||||
|
|
Loading…
Reference in New Issue