OSDN Git Service

Add a link to each project on the Issues dashboard
authorRobert Speicher <rspeicher@gmail.com>
Tue, 20 Nov 2012 04:49:25 +0000 (23:49 -0500)
committerRobert Speicher <rspeicher@gmail.com>
Wed, 28 Nov 2012 16:00:02 +0000 (11:00 -0500)
app/views/dashboard/issues.html.haml
features/steps/dashboard/dashboard_issues.rb

index e038582..e3093bc 100644 (file)
@@ -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})
index e5caf90..5ace880 100644 (file)
@@ -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