a TON of bugfixes and new features

This commit is contained in:
jomo
2014-04-28 03:01:33 +02:00
parent a6ba503e73
commit 65f5adf65d
59 changed files with 1023 additions and 970 deletions

View File

@@ -1,15 +1,15 @@
<div id="forum_groups">
<% @groups.each do |group| %>
<div class="item-group" id="forum-<%= group.id %>">
<div class="item-group" id="group-<%= group.id %>">
<div class="header">
<%= group.name %>
<%= link_to "edit", edit_forumgroup_path(group), class: "editlink" if admin? %>
</div>
<div class="items bold">
<% group.forums.each do |f| %>
<% group.forums.sort_by{ |f| f.position || 0 }.each do |f| %>
<% if f.can_read?(current_user) %>
<%= link_to f.name, f, class: "item" %>
<%= link_to f.name, f, id: "forum-#{f.id}", class: "item" %>
<% end %>
<% end %>
</div>
@@ -21,5 +21,5 @@
<% if admin? %>
<%= link_to "New group", new_forumgroup_path, class: "btn blue" %>
<% elsif mod? %>
<%= link_to "New group", nil, class: "btn blue", disabled: true %>
<%= link_to "New group", "#", class: "btn blue", disabled: true %>
<% end %>