课程讨论区编辑、删除按钮互换
This commit is contained in:
parent
86f686efb3
commit
5a4f477e46
|
@ -28,11 +28,6 @@
|
||||||
添加于<%= format_time(@topic.created_on) %>
|
添加于<%= format_time(@topic.created_on) %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<%= link_to(
|
|
||||||
l(:button_edit),
|
|
||||||
{:action => 'edit', :id => @topic},
|
|
||||||
:class => 'talk_edit fr'
|
|
||||||
) if @message.course_editable_by?(User.current) %>
|
|
||||||
<%= link_to(
|
<%= link_to(
|
||||||
l(:button_delete),
|
l(:button_delete),
|
||||||
{:action => 'destroy', :id => @topic},
|
{:action => 'destroy', :id => @topic},
|
||||||
|
@ -40,6 +35,11 @@
|
||||||
:data => {:confirm => l(:text_are_you_sure)},
|
:data => {:confirm => l(:text_are_you_sure)},
|
||||||
:class => 'talk_edit fr'
|
:class => 'talk_edit fr'
|
||||||
) if @message.course_destroyable_by?(User.current) %>
|
) if @message.course_destroyable_by?(User.current) %>
|
||||||
|
<%= link_to(
|
||||||
|
l(:button_edit),
|
||||||
|
{:action => 'edit', :id => @topic},
|
||||||
|
:class => 'talk_edit fr'
|
||||||
|
) if @message.course_editable_by?(User.current) %>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<div class="talk_info mb10 upload_img break_word"><%= @topic.content.html_safe %></div>
|
<div class="talk_info mb10 upload_img break_word"><%= @topic.content.html_safe %></div>
|
||||||
<div class="talk_info mb10"><%= link_to_attachments_course @topic, :author => false %></div>
|
<div class="talk_info mb10"><%= link_to_attachments_course @topic, :author => false %></div>
|
||||||
|
|
Loading…
Reference in New Issue