fixes tag listing
This commit is contained in:
@@ -34,11 +34,12 @@ private
|
||||
def build_list_item(tag, template, options)
|
||||
html = ""
|
||||
html << %{<li class="category-#{categories[tag]}">}
|
||||
current_query = template.params[:tags] || ""
|
||||
|
||||
if CurrentUser.user.is_privileged?
|
||||
html << %{<a href="/wiki_pages?title=#{u(tag)}">?</a> }
|
||||
html << %{<a href="#" class="search-inc-tag">+</a> }
|
||||
html << %{<a href="#" class="search-exl-tag">–</a> }
|
||||
html << %{<a href="/posts?tags=#{u(current_query)}+#{u(tag)}" class="search-inc-tag">+</a> }
|
||||
html << %{<a href="/posts?tags=#{u(current_query)}+-#{u(tag)}" class="search-exl-tag">–</a> }
|
||||
end
|
||||
|
||||
humanized_tag = tag.tr("_", " ")
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<ul>
|
||||
<%= resize_image_links(post, CurrentUser.user) %>
|
||||
<% if post.is_image? %>
|
||||
<%= resize_image_links(post, CurrentUser.user) %>
|
||||
<% end %>
|
||||
<li><%= link_to "Edit", post_path(post), :id => "side-edit-link" %></li>
|
||||
<% if CurrentUser.is_member? %>
|
||||
<li><%= link_to "Favorite", favorites_path(:post_id => post.id), :remote => true, :method => :post, :id => "add-to-favorites" %></li>
|
||||
|
||||
Reference in New Issue
Block a user