diff options
| author | Sytse Sijbrandij <sytse@dosire.com> | 2013-06-12 09:59:00 +0200 |
|---|---|---|
| committer | Sytse Sijbrandij <sytse@dosire.com> | 2013-06-12 09:59:00 +0200 |
| commit | 6637c1e475e1e5845edfb6817a9a8074036275b7 (patch) | |
| tree | 7877c6c3e234e8128db3d924cf60d1a899df2dc3 /app | |
| parent | 642f9f4a1cd66152846d0bc61fba2efd550edd33 (diff) | |
| download | gitlab-ce-6637c1e475e1e5845edfb6817a9a8074036275b7.tar.gz | |
Incorporated the two suggestions (h5 and named variables) and fixed the Spinach test.
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/milestones/_issues.html.haml | 6 | ||||
| -rw-r--r-- | app/views/milestones/show.html.haml | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/app/views/milestones/_issues.html.haml b/app/views/milestones/_issues.html.haml index bd4fef16551..8c42330a65d 100644 --- a/app/views/milestones/_issues.html.haml +++ b/app/views/milestones/_issues.html.haml @@ -1,10 +1,8 @@ .span6 .ui-box.milestone-issue-filter - .title - %ul.nav.nav-pills - %li=issues.first + %h5.title= title %ul.well-list - - issues.second.each do |issue| + - issues.each do |issue| %li{data: {closed: issue.closed?}} = link_to [@project, issue] do %span.badge.badge-info ##{issue.id} diff --git a/app/views/milestones/show.html.haml b/app/views/milestones/show.html.haml index fa13f556e64..36dbed45ddf 100644 --- a/app/views/milestones/show.html.haml +++ b/app/views/milestones/show.html.haml @@ -56,9 +56,9 @@ .row - =render(:partial => 'issues', :object => ['Unstarted Issues (open and unassigned)', @issues.opened.unassigned]) + =render(partial: 'issues', :locals => {title: 'Unstarted Issues (open and unassigned)', issues: @issues.opened.unassigned}) - =render(:partial => 'issues', :object => ['Ongoing Issues (open and assigned) ', @issues.opened.assigned]) + =render(partial: 'issues', :locals => {title: 'Ongoing Issues (open and assigned)', issues: @issues.opened.assigned}) .row .span6 @@ -75,7 +75,7 @@ – = link_to_gfm truncate(merge_request.title, length: 60), [@project, merge_request] - =render(:partial => 'issues', :object => ['Completed Issues (closed)', @issues.closed]) + =render(:partial => 'issues', :locals => {title: 'Completed Issues (closed)', issues: @issues.closed}) %hr %h6 Participants: |
