|
|
|
@ -46,14 +46,11 @@
|
|
|
|
|
<% if topic.editable_by?(User.current) %>
|
|
|
|
|
<a href="javascript:void(0)" nhname="showbtn" style="color: #426e9a;float: right;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'},
|
|
|
|
|
<%= 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) %>
|
|
|
|
|
: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>
|
|
|
|
|
<% end %>
|
|
|
|
@ -141,8 +138,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% replies_all = topic.children.includes(:author, :attachments, {:board => :project}).
|
|
|
|
|
reorder("#{Message.table_name}.id desc").all %>
|
|
|
|
|
<% replies_all = topic.children.includes(:author, :attachments, {:board => :project}).reorder("#{Message.table_name}.id desc").all %>
|
|
|
|
|
<% unless replies_all.empty? %>
|
|
|
|
|
<div class="talkWrapMsg" nhname="nh_reply_div" id="nh_reply_div_<%= topic.id %>">
|
|
|
|
|
<ul>
|
|
|
|
@ -161,18 +157,12 @@
|
|
|
|
|
<input nhname="nh_content_val" type="hidden" value="<%= message.content %>"/>
|
|
|
|
|
<br/><div class="cl"></div>
|
|
|
|
|
<span class=" c_grey fl f14"><%= format_time(message.created_on) %></span>
|
|
|
|
|
<%= link_to(
|
|
|
|
|
|
|
|
|
|
l(:button_delete),
|
|
|
|
|
{:controller => 'messages', :action => 'destroy', :id => message.id, :board_id => message.board_id, :is_board => 'true'},
|
|
|
|
|
<%= link_to(l(:button_delete),{:controller => 'messages', :action => 'destroy', :id => message.id, :board_id => message.board_id, :is_board => 'true'},
|
|
|
|
|
:method => :post,
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
:title => l(:button_delete),
|
|
|
|
|
:class => ' c_dblue fr f14'
|
|
|
|
|
) if message.course_destroyable_by?(User.current) %>
|
|
|
|
|
<%= link_to(
|
|
|
|
|
l(:button_reply),
|
|
|
|
|
'javascript:;',
|
|
|
|
|
:class => ' c_dblue fr f14') if message.course_destroyable_by?(User.current) %>
|
|
|
|
|
<%= link_to(l(:button_reply), 'javascript:;',
|
|
|
|
|
:nhname =>'showbtn_child_reply',
|
|
|
|
|
:class => ' c_dblue fr f14',
|
|
|
|
|
:style => 'margin-right: 10px;',
|
|
|
|
|