Signed-off-by: alan <547533434@qq.com>

This commit is contained in:
alan 2015-05-08 10:59:11 +08:00
parent 087f46bf64
commit 63351fc049
1 changed files with 2 additions and 2 deletions

View File

@ -39,12 +39,12 @@
<%= link_to author, user_path(topic.author), :class =>"talkmain_name fl " %>
<%= link_to(
l(:button_edit),
{:action => 'edit', :id => @topic},
{:action => 'edit', :id => topic},
:class => 'talk_edit fr'
) if @message.editable_by?(User.current) %>
<%= link_to(
l(:button_delete),
{:action => 'destroy', :id => @topic},
{:action => 'destroy', :id => topic},
:method => :post,
:data => {:confirm => l(:text_are_you_sure)},
:class => 'talk_edit fr'