|
|
@ -37,21 +37,24 @@
|
|
|
|
<div class="talkmain_txt fl mt5">
|
|
|
|
<div class="talkmain_txt fl mt5">
|
|
|
|
<% author = topic.author.to_s + ":" %>
|
|
|
|
<% author = topic.author.to_s + ":" %>
|
|
|
|
<%= link_to author, user_path(topic.author), :class =>"talkmain_name fl " %>
|
|
|
|
<%= link_to author, user_path(topic.author), :class =>"talkmain_name fl " %>
|
|
|
|
<% if topic.editable_by?(User.current) %>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" onclick="show_newtalk1('#about_newtalk<%= topic.id%>');" style="color: #426e9a;
|
|
|
|
<p class="talkmain_tit fl fb break_word"> <%= h(topic.subject) %></p>
|
|
|
|
margin-left: 60px;"><%= l(:button_edit) %></a>
|
|
|
|
<% if topic.editable_by?(User.current) %>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" onclick="show_newtalk1('#about_newtalk<%= topic.id%>');" style="color: #426e9a;float: left;
|
|
|
|
|
|
|
|
margin-left: 20px;"><%= l(:button_edit) %></a>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if topic.sticky? %>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" class="talk_up fr c_red" style="margin-right: 10px;"><%= l(:label_board_sticky)%></a>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%= link_to(
|
|
|
|
<%= link_to(
|
|
|
|
l(:button_delete),
|
|
|
|
l(:button_delete),
|
|
|
|
{:controller =>'messages',:action => 'destroy', :id => topic.id, :board_id => topic.board_id, :is_board=>'true'},
|
|
|
|
{:controller =>'messages',:action => 'destroy', :id => topic.id, :board_id => topic.board_id, :is_board=>'true'},
|
|
|
|
:method => :post,
|
|
|
|
:method => :post,
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
:class => 'talk_edit fr'
|
|
|
|
:class => 'talk_edit fr',
|
|
|
|
|
|
|
|
:style => ' margin-right: 10px;'
|
|
|
|
) if topic.destroyable_by?(User.current) %>
|
|
|
|
) if topic.destroyable_by?(User.current) %>
|
|
|
|
<p class="talkmain_tit fl fb break_word"> <%= h(topic.subject) %></p>
|
|
|
|
|
|
|
|
<% if topic.sticky? %>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" class="talk_up fr c_red" style="margin-right: 10px;"><%= l(:label_board_sticky)%></a>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
|
|