|
|
|
@ -35,7 +35,20 @@
|
|
|
|
|
<%= link_to l(:label_memo_new_from_forum), new_forum_memo_path(@forum), :class => 'icon icon-add',
|
|
|
|
|
:onclick => 'showAndScrollTo("add-memo", "memo_subject"); return false;' if User.current.logged? %>
|
|
|
|
|
</span>
|
|
|
|
|
<% if User.current.admin?||User.current.login==@forum.creator.login %> |
|
|
|
|
|
<%= link_to '编辑帖子', edit_forum_path(@forum), :class => 'icon icon-edit' %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="contextual-borad">
|
|
|
|
|
<%= link_to(
|
|
|
|
|
image_tag('edit.png')+l(:label_forum_edit),
|
|
|
|
|
{:action => 'edit', :id => @forum},
|
|
|
|
|
:method => 'get',
|
|
|
|
|
:title => l(:button_edit)
|
|
|
|
|
) if @forum.editable_by?(User.current) %>
|
|
|
|
|
<%= link_to(
|
|
|
|
|
image_tag('delete.png')+'删除讨论区',
|
|
|
|
|
{:action => 'destroy', :id => @forum},
|
|
|
|
|
:method => :delete,
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
:title => l(:button_delete)
|
|
|
|
|
) if @forum.destroyable_by?(User.current) %>
|
|
|
|
|
</div>
|
|
|
|
|
<%= render :partial => 'forums/show_topics', :locals => {:memos => @memos} %>
|
|
|
|
|