diff --git a/app/javascript/src/styles/specific/tags.scss b/app/javascript/src/styles/specific/tags.scss index a441e8a1a..d47e5f574 100644 --- a/app/javascript/src/styles/specific/tags.scss +++ b/app/javascript/src/styles/specific/tags.scss @@ -1,14 +1,8 @@ div#c-tags { div#a-index table.striped { td:nth-child(1), th:nth-child(1) { - width: 5em; text-align: right; } - - td:nth-child(2), th:nth-child(2) { - padding-left: 1em; - width: 40em; - } } } diff --git a/app/views/tags/index.html.erb b/app/views/tags/index.html.erb index 8ab24c253..391166fc3 100644 --- a/app/views/tags/index.html.erb +++ b/app/views/tags/index.html.erb @@ -1,7 +1,7 @@
-
+
<%= render "search" %> - +
@@ -13,14 +13,15 @@ <% @tags.each do |tag| %> - <% end %>
Count
<%= tag.post_count %> + <%= link_to("?", show_or_new_wiki_pages_path(:title => tag.name)) %> <%= link_to(tag.name, posts_path(:tags => tag.name)) %> - <% if tag.editable_by?(CurrentUser.user) %> - <%= link_to "edit", edit_tag_path(tag) %> - <% end %> + <%= link_to_if tag.editable_by?(CurrentUser.user), "edit", edit_tag_path(tag) %> | + <%= link_to "history", post_versions_path(search: { changed_tags: tag.name }) %> | + <%= link_to "related", related_tag_path(search: { query: tag.name }) %> | + <%= link_to "similar", tags_path(search: { fuzzy_name_matches: tag.name, order: :similarity }) %>