diff options
author | Phil Hughes <me@iamphill.com> | 2017-03-15 12:31:15 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-03-15 12:31:15 +0300 |
commit | 49c920fbee09ef0af8427d85f8cea313e77c6857 (patch) | |
tree | ad065a6da6008ffee3ace86e04f57e3420238b0c /app/views/projects/boards | |
parent | 9226ce9e3090dcedcb5c9fa8595d75b5eb295726 (diff) |
Issue boards blank state template in JS file
Aim to eventually go to vue files
Diffstat (limited to 'app/views/projects/boards')
-rw-r--r-- | app/views/projects/boards/components/_blank_state.html.haml | 15 | ||||
-rw-r--r-- | app/views/projects/boards/components/_board.html.haml | 2 |
2 files changed, 1 insertions, 16 deletions
diff --git a/app/views/projects/boards/components/_blank_state.html.haml b/app/views/projects/boards/components/_blank_state.html.haml deleted file mode 100644 index 0af40ddf8fe..00000000000 --- a/app/views/projects/boards/components/_blank_state.html.haml +++ /dev/null @@ -1,15 +0,0 @@ -%board-blank-state{ "inline-template" => true, - "v-if" => 'list.id == "blank"' } - .board-blank-state - %p - Add the following default lists to your Issue Board with one click: - %ul.board-blank-state-list - %li{ "v-for" => "label in predefinedLabels" } - %span.label-color{ ":style" => "{ backgroundColor: label.color } " } - {{ label.title }} - %p - Starting out with the default set of lists will get you right on the way to making the most of your board. - %button.btn.btn-create.btn-inverted.btn-block{ type: "button", "@click.stop" => "addDefaultLists" } - Add default lists - %button.btn.btn-default.btn-block{ type: "button", "@click.stop" => "clearBlankState" } - Nevermind, I'll use my own diff --git a/app/views/projects/boards/components/_board.html.haml b/app/views/projects/boards/components/_board.html.haml index 72bce4049de..0bca6a786cb 100644 --- a/app/views/projects/boards/components/_board.html.haml +++ b/app/views/projects/boards/components/_board.html.haml @@ -32,4 +32,4 @@ ":root-path" => "rootPath", "ref" => "board-list" } - if can?(current_user, :admin_list, @project) - = render "projects/boards/components/blank_state" + %board-blank-state{ "v-if" => 'list.id == "blank"' } |