summaryrefslogtreecommitdiff
path: root/app/views/shared/_issues.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-06 21:12:01 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-06 21:12:01 +0300
commit512cd02335de9de22aab688743a01fa868229f0d (patch)
tree6996e941f796450bcb25150f502eb861bddeeaf4 /app/views/shared/_issues.html.haml
parent21c70354f609c292d302c433f9f9bcea31674ab9 (diff)
downloadgitlab-ce-512cd02335de9de22aab688743a01fa868229f0d.tar.gz
Dashboard/Group issues and mr pages refactoring
Diffstat (limited to 'app/views/shared/_issues.html.haml')
-rw-r--r--app/views/shared/_issues.html.haml19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/shared/_issues.html.haml b/app/views/shared/_issues.html.haml
new file mode 100644
index 00000000000..33f8f5f4ad1
--- /dev/null
+++ b/app/views/shared/_issues.html.haml
@@ -0,0 +1,19 @@
+- if @issues.any?
+ - @issues.group_by(&:project).each do |group|
+ %div.ui-box
+ - project = group[0]
+ .title
+ = link_to_project project
+ &nbsp;
+ %i.icon-angle-right
+ &nbsp;
+ = link_to 'issues', project_issues_path(project)
+
+ %ul.well-list.issues-list
+ - group[1].each do |issue|
+ = render 'projects/issues/issue', issue: issue
+ %hr
+ = paginate @issues, theme: "gitlab"
+- else
+ %p.nothing_here_message Nothing to show here
+