From f3049e5546bf949abc6f4d73d2561782eaa5f3be Mon Sep 17 00:00:00 2001 From: rr- Date: Tue, 21 Jun 2016 18:16:27 +0200 Subject: [PATCH] client/tags: add summary view, add tag description --- client/css/forms.styl | 1 + client/css/tags.styl | 24 +++++++ client/html/tag.tpl | 3 + client/html/tag_edit.tpl | 29 ++++++++ client/html/tag_summary.tpl | 62 +++++++++------- client/js/controllers/tag_controller.js | 5 ++ client/js/models/tag.js | 5 ++ client/js/util/views.js | 7 ++ client/js/views/tag_edit_view.js | 95 +++++++++++++++++++++++++ client/js/views/tag_summary_view.js | 69 +----------------- client/js/views/tag_view.js | 15 ++-- 11 files changed, 217 insertions(+), 98 deletions(-) create mode 100644 client/html/tag_edit.tpl create mode 100644 client/js/views/tag_edit_view.js diff --git a/client/css/forms.styl b/client/css/forms.styl index 1688dd1..72c809e 100644 --- a/client/css/forms.styl +++ b/client/css/forms.styl @@ -156,6 +156,7 @@ textarea, input[type=text], input[type=email], input[type=password] + vertical-align: top font-family: 'Droid Sans', sans-serif font-size: 100% line-height: 150% diff --git a/client/css/tags.styl b/client/css/tags.styl index 692b817..b91b47e 100644 --- a/client/css/tags.styl +++ b/client/css/tags.styl @@ -67,6 +67,30 @@ .tag-delete .messages, .buttons margin-left: 0 !important + .tag-edit + textarea + height: 10em + .tag-summary + section + &.description + margin: 1.5em 0 0 0 + &.details + vertical-align: top + padding-right: 0.5em + ul + margin: 0 + padding: 0 + list-style-type: none + li + display: inline + margin: 0 + padding: 0 + li:not(:last-of-type):after + content: ', ' + ul:empty:after + content: '(none)' + section + margin-bottom: 1em .content-wrapper.tag-categories width: 100% diff --git a/client/html/tag.tpl b/client/html/tag.tpl index 63bd9da..0e13cac 100644 --- a/client/html/tag.tpl +++ b/client/html/tag.tpl @@ -3,6 +3,9 @@