Commit d8f825ef009d10fe03674989239e3a26e21fff36
Exists in
master
and in
4 other branches
Merge pull request #2103 from tsigo/issue_project_link_rebase
Add a link to each project on the Issues dashboard
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
app/views/dashboard/issues.html.haml
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | - @issues.group_by(&:project).each do |group| | 13 | - @issues.group_by(&:project).each do |group| |
14 | %div.ui-box | 14 | %div.ui-box |
15 | - @project = group[0] | 15 | - @project = group[0] |
16 | - %h5= @project.name | 16 | + %h5= link_to(@project.name, project_path(@project)) |
17 | %ul.unstyled.issues_table | 17 | %ul.unstyled.issues_table |
18 | - group[1].each do |issue| | 18 | - group[1].each do |issue| |
19 | = render(partial: 'issues/show', locals: {issue: issue}) | 19 | = render(partial: 'issues/show', locals: {issue: issue}) |
features/steps/dashboard/dashboard_issues.rb
@@ -7,6 +7,7 @@ class DashboardIssues < Spinach::FeatureSteps | @@ -7,6 +7,7 @@ class DashboardIssues < Spinach::FeatureSteps | ||
7 | issues.each do |issue| | 7 | issues.each do |issue| |
8 | page.should have_content(issue.title[0..10]) | 8 | page.should have_content(issue.title[0..10]) |
9 | page.should have_content(issue.project.name) | 9 | page.should have_content(issue.project.name) |
10 | + page.should have_link(issue.project.name) | ||
10 | end | 11 | end |
11 | end | 12 | end |
12 | 13 |