diff --git a/TODO b/TODO index 202fae28..7578087e 100644 --- a/TODO +++ b/TODO @@ -21,7 +21,6 @@ everything related to posts: - post listing - better thumbnail loading - - fav count - score - comment count - regard safety settings diff --git a/public_html/css/post-list.css b/public_html/css/post-list.css index 612150ec..c62146aa 100644 --- a/public_html/css/post-list.css +++ b/public_html/css/post-list.css @@ -40,6 +40,24 @@ opacity: .9; } +#post-list .posts li a .info { + display: none; + position: absolute; + bottom: 0; + left: 0; + right: 0; + background: #5da; + color: black; +} +#post-list .posts li a .info li { + display: inline-block; + margin: 0.1em 0.5em; +} +#post-list .posts li a:focus .info, +#post-list .posts li a:hover .info { + display: block; +} + #post-list .posts li:not(.post-type-image) a:before { display: block; content: ''; diff --git a/public_html/templates/post-list-item.tpl b/public_html/templates/post-list-item.tpl index 48d405c5..d31a2e99 100644 --- a/public_html/templates/post-list-item.tpl +++ b/public_html/templates/post-list-item.tpl @@ -4,5 +4,18 @@ href="#/post/<%= post.id %>"> + + <% if (post.favoriteCount) { %> +