Added tag edit links in post view

This commit is contained in:
Marcin Kurczewski 2014-10-19 13:25:16 +02:00
parent 6788be8993
commit fb04a13044
2 changed files with 19 additions and 9 deletions

View file

@ -84,7 +84,6 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
#sidebar .tags li,
#sidebar .other-info li { #sidebar .other-info li {
display: block; display: block;
word-break: break-all; word-break: break-all;
@ -92,18 +91,25 @@
text-indent: -1em; text-indent: -1em;
} }
#sidebar .tags li {
display: block;
word-break: break-all;
padding-left: 20px;
text-indent: -20px;
}
#sidebar .tags .tag-wrapper { #sidebar .tags .tag-wrapper {
max-width: 100%; max-width: 100%;
position: relative; position: relative;
display: inline-block; display: inline-block;
} }
#sidebar .tags li a { #sidebar .tags li a.tag-edit {
display: inline-block; margin-left: 20px;
padding-left: 1em; /* ? */ }
#sidebar .tags li .tag-name {
margin-right: 0.8em;
} }
#sidebar .tags li .usages { #sidebar .tags li .usages {
color: silver; color: silver;
padding-left: 0.5em;
} }
#sidebar .author-box img { #sidebar .author-box img {

View file

@ -73,10 +73,14 @@
<h1>Tags (<%= _.size(post.tags) %>)</h1> <h1>Tags (<%= _.size(post.tags) %>)</h1>
<ul class="tags"> <ul class="tags">
<% _.each(post.tags, function(tag) { %> <% _.each(post.tags, function(tag) { %>
<li class="tag-category-<%= tag.category %>"> <li class="tag-category-<%= tag.category %>"><!--
<a href="#/posts/query=<%= tag.name %>"> --><a class="tag-edit" href="#/tag/<%= tag.name %>"><!--
<%= tag.name %> --><i class="fa fa-tag"></i><!--
<span class="usages"><%= (tag.usages) %></span> --></a><!--
--><a class="post-search" href="#/posts/query=<%= tag.name %>"><!--
--><span class="tag-name"><%= tag.name %></span><!--
--><span class="usages"><%= (tag.usages) %></span>
</a> </a>
</li> </li>
<% }) %> <% }) %>