ensl.org/app/views/forums/_controls.html.erb
Luke Barratt ef83ec88f5 Added form view styling
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
2014-04-12 02:35:42 +01:00

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>