|
|
|
@ -39,9 +39,9 @@
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(topic.author), :width=>"42",:height=>"42"), user_path(topic.author),:class =>'talkmain_pic fl' %>
|
|
|
|
|
<div class="talkmain_txt fl mt5 f14">
|
|
|
|
|
<% author = topic.author.to_s %>
|
|
|
|
|
<div style="max-width:60px;white-space:nowrap;overflow:hidden;float:left;text-overflow:ellipsis;">
|
|
|
|
|
<%= link_to author, user_path(topic.author), :class =>"talkmain_name fl f14",:title=>author,
|
|
|
|
|
:style=>'max-width:60px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;' %>
|
|
|
|
|
<div style="max-width:120px;white-space:nowrap;overflow:hidden;float:left;text-overflow:ellipsis;">
|
|
|
|
|
<%= link_to "#{topic.author.show_name}(#{topic.author.login})", user_path(topic.author), :class =>"talkmain_name fl f14",:title=>author,
|
|
|
|
|
:style=>'max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;' %>
|
|
|
|
|
</div>
|
|
|
|
|
<p style="float:left;color:#ff5722;"> :</p>
|
|
|
|
|
|
|
|
|
@ -51,14 +51,11 @@
|
|
|
|
|
margin-right: 10px;"><%= l(:button_edit) %></a>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<%= link_to(
|
|
|
|
|
l(:button_delete),
|
|
|
|
|
{:controller =>'messages',:action => 'destroy', :id => topic.id, :board_id => topic.board_id, :is_board=>'true'},
|
|
|
|
|
:method => :post,
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
:class => 'talk_edit fr',
|
|
|
|
|
:style => ' margin-right: 10px;'
|
|
|
|
|
) if topic.destroyable_by?(User.current) %>
|
|
|
|
|
<%= link_to(l(:button_delete), {:controller =>'messages',:action => 'destroy', :id => topic.id, :board_id => topic.board_id, :is_board=>'true'},
|
|
|
|
|
:method => :post,
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
:class => 'talk_edit fr',
|
|
|
|
|
:style => ' margin-right: 10px;') if topic.destroyable_by?(User.current) %>
|
|
|
|
|
|
|
|
|
|
<% if topic.sticky? %>
|
|
|
|
|
<a href="javascript:void(0)" class="talk_up fr c_red" style="margin-right: 10px;"><%= l(:label_board_sticky)%></a>
|
|
|
|
@ -165,7 +162,7 @@
|
|
|
|
|
<li nhname="reply_rec" style="display:<%= replies_all_i>2?'none':'' %>" id="topic<%=message.id%>">
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(message.author), :width => '34',:height => '34'), user_path(message.author), :class =>'Msg_pic' %>
|
|
|
|
|
<div class="Msg_txt">
|
|
|
|
|
<%= link_to_user_header message.author,false,:class => 'fl c_orange f14 ' %>
|
|
|
|
|
<%= link_to_user_header message.author.show_name,false,:class => 'fl c_orange f14 ' %>
|
|
|
|
|
<br/>
|
|
|
|
|
<div class="fl break_word f14">
|
|
|
|
|
<%= textAreailizable message,:content,:attachments => message.attachments %>
|
|
|
|
|