diff options
author | Simon Knox <psimyn@gmail.com> | 2017-09-06 15:50:13 +1000 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2017-09-06 15:50:13 +1000 |
commit | f1d92cd232d1f4877a18a6ae7839440540124a7a (patch) | |
tree | a5c5c664efa9566d07e7709192b7f19a3b2f89bb /app/views/shared/boards/components/_sidebar.html.haml | |
parent | c28d52a3a5e745d20981151b89bfcad07c68fa9c (diff) | |
download | gitlab-ce-f1d92cd232d1f4877a18a6ae7839440540124a7a.tar.gz |
move templates from projects to shared
Diffstat (limited to 'app/views/shared/boards/components/_sidebar.html.haml')
-rw-r--r-- | app/views/shared/boards/components/_sidebar.html.haml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/views/shared/boards/components/_sidebar.html.haml b/app/views/shared/boards/components/_sidebar.html.haml new file mode 100644 index 00000000000..ba5f681c804 --- /dev/null +++ b/app/views/shared/boards/components/_sidebar.html.haml @@ -0,0 +1,27 @@ +%board-sidebar{ "inline-template" => true, + ":current-user" => "#{current_user ? current_user.to_json(only: [:username, :id, :name], methods: [:avatar_url]) : {}}" } + %transition{ name: "boards-sidebar-slide" } + %aside.right-sidebar.right-sidebar-expanded.issue-boards-sidebar{ "v-show" => "showSidebar" } + .issuable-sidebar + .block.issuable-sidebar-header + %span.issuable-header-text.hide-collapsed.pull-left + %strong + {{ issue.title }} + %br/ + %span + = precede "#" do + {{ issue.id }} + %a.gutter-toggle.pull-right{ role: "button", + href: "#", + "@click.prevent" => "closeSidebar", + "aria-label" => "Toggle sidebar" } + = custom_icon("icon_close", size: 15) + .js-issuable-update + = render "shared/boards/components/sidebar/assignee" + = render "shared/boards/components/sidebar/milestone" + = render "shared/boards/components/sidebar/due_date" + = render "shared/boards/components/sidebar/labels" + = render "shared/boards/components/sidebar/notifications" + %remove-btn{ ":issue" => "issue", + ":list" => "list", + "v-if" => "canRemove" } |