From 9ab62bdde7eaebf7b7ba92c1c891ba1214c3dfb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Juli=C3=A1n?= Date: Fri, 4 Jul 2014 11:07:46 +0200 Subject: [PATCH] Fixed wrong structure in watchers template --- app/coffee/modules/issues/detail.coffee | 36 ++++++++++++------------- app/styles/components/watchers.scss | 3 +++ 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/app/coffee/modules/issues/detail.coffee b/app/coffee/modules/issues/detail.coffee index 6a4783a8..cb5ee826 100644 --- a/app/coffee/modules/issues/detail.coffee +++ b/app/coffee/modules/issues/detail.coffee @@ -217,25 +217,25 @@ WatchersDirective = ($rootscope, $confirm) -> <% } %> - <% _.each(watchers, function(watcher) { %> -
-
- - <%= watcher.full_name_display %> - -
- +
+ <% _.each(watchers, function(watcher) { %> +
+ - <% }); %> -
""") +
+ + <%= watcher.full_name_display %> + + <% if (editable) { %> + + <% } %> +
+ + <% }); %> + """) link = ($scope, $el, $attrs, $model) -> editable = $attrs.editable? diff --git a/app/styles/components/watchers.scss b/app/styles/components/watchers.scss index c341758f..35075cd9 100644 --- a/app/styles/components/watchers.scss +++ b/app/styles/components/watchers.scss @@ -15,6 +15,9 @@ right: 1rem; top: 4px; } + &.no-watchers { + border-bottom: 0; + } } .watcher-single { @include table-flex(center, center, flex, row, wrap, center);