From 7512af29fc5fd94da2ac74a3188eb76b9a366c2a Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Thu, 23 Feb 2017 15:27:01 +0000 Subject: Issue boards card in JS Moved the issue boards card template into the JS. This helps to improve the code coverage & will eventually make it easier to move this to .vue files --- app/views/projects/boards/_show.html.haml | 1 - app/views/projects/boards/components/_card.html.haml | 10 ---------- 2 files changed, 11 deletions(-) delete mode 100644 app/views/projects/boards/components/_card.html.haml (limited to 'app/views') diff --git a/app/views/projects/boards/_show.html.haml b/app/views/projects/boards/_show.html.haml index f5ca9607823..b3bc6010efb 100644 --- a/app/views/projects/boards/_show.html.haml +++ b/app/views/projects/boards/_show.html.haml @@ -8,7 +8,6 @@ %script#js-board-template{ type: "text/x-template" }= render "projects/boards/components/board" %script#js-board-list-template{ type: "text/x-template" }= render "projects/boards/components/board_list" - %script#js-board-list-card{ type: "text/x-template" }= render "projects/boards/components/card" = render "projects/issues/head" diff --git a/app/views/projects/boards/components/_card.html.haml b/app/views/projects/boards/components/_card.html.haml deleted file mode 100644 index 891c2c46251..00000000000 --- a/app/views/projects/boards/components/_card.html.haml +++ /dev/null @@ -1,10 +0,0 @@ -%li.card{ ":class" => '{ "user-can-drag": !disabled && issue.id, "is-disabled": disabled || !issue.id, "is-active": issueDetailVisible }', - ":index" => "index", - ":data-issue-id" => "issue.id", - "@mousedown" => "mouseDown", - "@mousemove" => "mouseMove", - "@mouseup" => "showIssue($event)" } - %issue-card-inner{ ":list" => "list", - ":issue" => "issue", - ":issue-link-base" => "issueLinkBase", - ":root-path" => "rootPath" } -- cgit v1.2.1