diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-14 10:09:01 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-14 10:09:01 +0200 |
commit | 23e338852c6030e199608517315c5d4fad6b27d8 (patch) | |
tree | 6f5d41d15f0a521a545e3761f7b8f1fec01ae57c /app/views/shared/_merge_requests.html.haml | |
parent | f716c0a1dd175527e688709cbbd71c121a43586e (diff) | |
download | gitlab-ce-23e338852c6030e199608517315c5d4fad6b27d8.tar.gz |
Dont set @project variable in list. Remove a bit of duplication in dash and group
Diffstat (limited to 'app/views/shared/_merge_requests.html.haml')
-rw-r--r-- | app/views/shared/_merge_requests.html.haml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/shared/_merge_requests.html.haml b/app/views/shared/_merge_requests.html.haml new file mode 100644 index 00000000000..85391a34316 --- /dev/null +++ b/app/views/shared/_merge_requests.html.haml @@ -0,0 +1,14 @@ +- if @merge_requests.any? + - @merge_requests.group_by(&:project).each do |group| + .ui-box + - project = group[0] + %h5.title + = link_to_project project + %ul.well-list + - group[1].each do |merge_request| + = render(partial: 'merge_requests/merge_request', locals: {merge_request: merge_request}) + %hr + = paginate @merge_requests, theme: "gitlab" + +- else + %h3.nothing_here_message Nothing to show here |