|
|
|
@ -104,18 +104,15 @@
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="homepagePostSettingIcon">
|
|
|
|
|
<ul class="homepagePostSettiongText">
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to(l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'postOptionLink') if @message.editable_by?(User.current) %>
|
|
|
|
|
</li>
|
|
|
|
|
<% if @topic.author.id == User.current.id %>
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to(l(:button_delete), {:action => 'destroy', :id => @topic},:method => :post,
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
:class => 'postOptionLink'
|
|
|
|
|
) if @message.destroyable_by?(User.current) %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to(l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'postOptionLink') if @message.editable_by?(User.current) %>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to(l(:button_delete), {:action => 'destroy', :id => @topic},:method => :post,
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
:class => 'postOptionLink'
|
|
|
|
|
) if @message.destroyable_by?(User.current) %>
|
|
|
|
|
</li>
|
|
|
|
|
<% if hidden_unproject_infos %>
|
|
|
|
|
<li><%= link_to "发送", "javascript:void(0);", :onclick => "show_send(#{@message.id},#{User.current.id},'message');", :class => 'postOptionLink' %></li>
|
|
|
|
|
<% else %>
|
|
|
|
@ -202,7 +199,7 @@
|
|
|
|
|
:class => 'fr mr20',
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
:title => l(:button_delete)
|
|
|
|
|
) if reply.course_destroyable_by?(User.current) %>
|
|
|
|
|
) if reply.destroyable_by?(User.current) %>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|