diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-02-22 20:39:36 -0500 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-03-04 22:37:03 -0500 |
commit | 70028d36bee51a9ed86d20fe5d6c895772cc476a (patch) | |
tree | 979a8a3e2b505aa25301af3090691f4f081c67bd /app/views/shared | |
parent | a056dfa9a077def4c3ffb958d3f86f7c9d7c2096 (diff) | |
download | gitlab-ce-70028d36bee51a9ed86d20fe5d6c895772cc476a.tar.gz |
Recator Issues Tab into a custom partial.
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/milestones/_issue.html.haml | 11 | ||||
-rw-r--r-- | app/views/shared/milestones/_issues.html.haml | 7 | ||||
-rw-r--r-- | app/views/shared/milestones/_issues_tab.html.haml | 7 |
3 files changed, 25 insertions, 0 deletions
diff --git a/app/views/shared/milestones/_issue.html.haml b/app/views/shared/milestones/_issue.html.haml new file mode 100644 index 00000000000..07880404c9a --- /dev/null +++ b/app/views/shared/milestones/_issue.html.haml @@ -0,0 +1,11 @@ +- project = issue.project +%li{ id: dom_id(issue, 'sortable'), class: 'issue-row', 'data-iid' => issue.iid, 'data-url' => issue_path(issue) } + %span + = link_to_gfm issue.title, [project.namespace.becomes(Namespace), project, issue], title: issue.title + .issue-detail + = link_to [project.namespace.becomes(Namespace), project, issue] do + %span.issue-number ##{issue.iid} + - issue.labels.each do |label| + = render_colored_label(label) + - if issue.assignee + = image_tag avatar_icon(issue.assignee, 16), class: "avatar s24", alt: '' diff --git a/app/views/shared/milestones/_issues.html.haml b/app/views/shared/milestones/_issues.html.haml new file mode 100644 index 00000000000..e1b5c2eb66c --- /dev/null +++ b/app/views/shared/milestones/_issues.html.haml @@ -0,0 +1,7 @@ +.panel.panel-default + .panel-heading + = title + .pull-right= issues.size + %ul{ class: "well-list issues-sortable-list", id: "issues-list-#{id}", "data-state" => id } + - issues.sort_by(&:position).each do |issue| + = render 'shared/milestones/issue', issue: issue diff --git a/app/views/shared/milestones/_issues_tab.html.haml b/app/views/shared/milestones/_issues_tab.html.haml new file mode 100644 index 00000000000..3e98a809ad5 --- /dev/null +++ b/app/views/shared/milestones/_issues_tab.html.haml @@ -0,0 +1,7 @@ +.row.prepend-top-default + .col-md-4 + = render('shared/milestones/issues', title: 'Unstarted Issues (open and unassigned)', issues: unassigned, id: 'unassigned') + .col-md-4 + = render('shared/milestones/issues', title: 'Ongoing Issues (open and assigned)', issues: assigned, id: 'ongoing') + .col-md-4 + = render('shared/milestones/issues', title: 'Completed Issues (closed)', issues: closed, id: 'closed') |