mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 20:41:01 +00:00
ef83ec88f5
Improved articles styling Improved bbcode to html formatting HTML and CSS refactorings Moved Extra into concerns Changed repo URL to read-only for deploys Fixes quotes in comments
11 lines
No EOL
436 B
Text
11 lines
No EOL
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> |