|
|
@ -99,11 +99,12 @@
|
|
|
|
<%= link_to image_tag(url_to_avatar(@topic.author),:width=>50,:height => 50,:alt=>'图像' ),user_path(@topic.author) %>
|
|
|
|
<%= link_to image_tag(url_to_avatar(@topic.author),:width=>50,:height => 50,:alt=>'图像' ),user_path(@topic.author) %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="postThemeWrap">
|
|
|
|
<div class="postThemeWrap">
|
|
|
|
<% if @topic.author.id == User.current.id%>
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
<div class="homepagePostSetting" id="message_setting_<%= @topic.id%>" style="display: none">
|
|
|
|
<div class="homepagePostSetting" id="message_setting_<%= @topic.id%>" style="display: none">
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
|
<li class="homepagePostSettingIcon">
|
|
|
|
<li class="homepagePostSettingIcon">
|
|
|
|
<ul class="homepagePostSettiongText">
|
|
|
|
<ul class="homepagePostSettiongText">
|
|
|
|
|
|
|
|
<% if @topic.author.id == User.current.id %>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<%= link_to(l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'postOptionLink') if @message.editable_by?(User.current) %>
|
|
|
|
<%= link_to(l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'postOptionLink') if @message.editable_by?(User.current) %>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
@ -113,6 +114,7 @@
|
|
|
|
:class => 'postOptionLink'
|
|
|
|
:class => 'postOptionLink'
|
|
|
|
) if @message.destroyable_by?(User.current) %>
|
|
|
|
) if @message.destroyable_by?(User.current) %>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<li> <%= link_to "发送",messages_join_org_subfield_path(:message_id => @topic.id) , :remote=> true,:class => 'postOptionLink' %></li>
|
|
|
|
<li> <%= link_to "发送",messages_join_org_subfield_path(:message_id => @topic.id) , :remote=> true,:class => 'postOptionLink' %></li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|