summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-28 08:39:44 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-28 08:39:44 -0800
commitd8f825ef009d10fe03674989239e3a26e21fff36 (patch)
treed5a9d22f5fb3d7dafe169a020cb19e7a567f8bd0
parent3d242a3154644bb1fea1b70d2661cee4f3db342c (diff)
parent4db362f5196710eab4c09fa394bc67b0d09f1ab8 (diff)
downloadgitlab-ce-d8f825ef009d10fe03674989239e3a26e21fff36.tar.gz
Merge pull request #2103 from tsigo/issue_project_link_rebase
Add a link to each project on the Issues dashboard
-rw-r--r--app/views/dashboard/issues.html.haml2
-rw-r--r--features/steps/dashboard/dashboard_issues.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/views/dashboard/issues.html.haml b/app/views/dashboard/issues.html.haml
index e038582078d..e3093bcfe2a 100644
--- a/app/views/dashboard/issues.html.haml
+++ b/app/views/dashboard/issues.html.haml
@@ -13,7 +13,7 @@
- @issues.group_by(&:project).each do |group|
%div.ui-box
- @project = group[0]
- %h5= @project.name
+ %h5= link_to(@project.name, project_path(@project))
%ul.unstyled.issues_table
- group[1].each do |issue|
= render(partial: 'issues/show', locals: {issue: issue})
diff --git a/features/steps/dashboard/dashboard_issues.rb b/features/steps/dashboard/dashboard_issues.rb
index e5caf905f95..5ace88023f0 100644
--- a/features/steps/dashboard/dashboard_issues.rb
+++ b/features/steps/dashboard/dashboard_issues.rb
@@ -7,6 +7,7 @@ class DashboardIssues < Spinach::FeatureSteps
issues.each do |issue|
page.should have_content(issue.title[0..10])
page.should have_content(issue.project.name)
+ page.should have_link(issue.project.name)
end
end