change more links to searches
This commit is contained in:
@@ -39,7 +39,7 @@ class ForumPost < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def editable_by?(user)
|
def editable_by?(user)
|
||||||
creator_id == user.id || user.is_moderator?
|
creator_id == user.id || user.is_janitor?
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_topic_updated_at
|
def update_topic_updated_at
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
<div id="more-links" style="display: none;">
|
<div id="more-links" style="display: none;">
|
||||||
<ul>
|
<ul>
|
||||||
<%= nav_link_to("Artists", artists_path(:order => "date")) %>
|
<%= nav_link_to("Artists", search_artists_path(:order => "date")) %>
|
||||||
<%= nav_link_to("Tags", tags_path(:order => "date")) %>
|
<%= nav_link_to("Tags", search_tags_path(:order => "date")) %>
|
||||||
<% if CurrentUser.is_moderator? %>
|
<% if CurrentUser.is_moderator? %>
|
||||||
<%= nav_link_to("Aliases", tag_aliases_path) %>
|
<%= nav_link_to("Aliases", tag_aliases_path) %>
|
||||||
<%= nav_link_to("Implications", tag_implications_path) %>
|
<%= nav_link_to("Implications", tag_implications_path) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= nav_link_to("Pools", pools_path) %>
|
<%= nav_link_to("Pools", search_pools_path) %>
|
||||||
<% if CurrentUser.is_janitor? %>
|
<% if CurrentUser.is_janitor? %>
|
||||||
<%= nav_link_to("Dashboard", moderator_dashboard_path) %>
|
<%= nav_link_to("Dashboard", moderator_dashboard_path) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user