|
|
|
@ -28,11 +28,6 @@
|
|
|
|
|
添加于<%= format_time(@topic.created_on) %>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<%= link_to(
|
|
|
|
|
l(:button_edit),
|
|
|
|
|
{:action => 'edit', :id => @topic},
|
|
|
|
|
:class => 'talk_edit fr'
|
|
|
|
|
) if @message.course_editable_by?(User.current) %>
|
|
|
|
|
<%= link_to(
|
|
|
|
|
l(:button_delete),
|
|
|
|
|
{:action => 'destroy', :id => @topic},
|
|
|
|
@ -40,6 +35,11 @@
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
:class => 'talk_edit fr'
|
|
|
|
|
) 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="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>
|
|
|
|
@ -105,6 +105,7 @@
|
|
|
|
|
<%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message_form'} do |f| %>
|
|
|
|
|
<%= render :partial => 'form_course', :locals => {:f => f, :replying => true} %>
|
|
|
|
|
<%= link_to l(:button_submit),"javascript:void(0)",:onclick => 'course_board_submit_message_replay();' ,:class => "blue_btn fl c_white" ,:style=>"margin-left: 50px;"%>
|
|
|
|
|
<%= link_to l(:button_cancel), "javascript:void(0)", :onclick => 'course_board_canel_message_replay();', :class => "blue_btn grey_btn fl c_white" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|