mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-29 14:01:48 +00:00
11 lines
436 B
Text
11 lines
436 B
Text
|
<div class="controls">
|
||
|
<% if forum.topics.build.can_create? cuser %>
|
||
|
<%= link_to 'New Topic', new_topic_url(id: forum.id), class: 'button' %>
|
||
|
<% end %>
|
||
|
<% if forum.can_update? cuser %>
|
||
|
<%= link_to 'Edit Forum', edit_forum_path(forum), class: 'button' %>
|
||
|
<% end %>
|
||
|
<% if forum.can_destroy? cuser %>
|
||
|
<%= link_to 'Destroy Forum', forum, class: 'button', confirm: 'Are you sure?', method: :delete %>
|
||
|
<% end %>
|
||
|
</div>
|