Commit b1437d4c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

use link_to_project for Dashboard: Issues, MR

parent 20c8d6e6
...@@ -84,6 +84,10 @@ ...@@ -84,6 +84,10 @@
border-top: 1px solid #eaeaea; border-top: 1px solid #eaeaea;
border-bottom: 1px solid #bbb; border-bottom: 1px solid #bbb;
> a {
text-shadow: 0 1px 1px #fff;
}
&.small { &.small {
line-height: 28px; line-height: 28px;
font-size: 14px; font-size: 14px;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
- @issues.group_by(&:project).each do |group| - @issues.group_by(&:project).each do |group|
%div.ui-box %div.ui-box
- @project = group[0] - @project = group[0]
%h5= link_to(@project.name, project_path(@project)) %h5= link_to_project @project
%ul.unstyled.issues_table %ul.unstyled.issues_table
- group[1].each do |issue| - group[1].each do |issue|
= render(partial: 'issues/show', locals: {issue: issue}) = render(partial: 'issues/show', locals: {issue: issue})
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
- @merge_requests.group_by(&:project).each do |group| - @merge_requests.group_by(&:project).each do |group|
%ul.unstyled.ui-box %ul.unstyled.ui-box
- @project = group[0] - @project = group[0]
%h5= @project.name %h5= link_to_project @project
- group[1].each do |merge_request| - group[1].each do |merge_request|
= render(partial: 'merge_requests/merge_request', locals: {merge_request: merge_request}) = render(partial: 'merge_requests/merge_request', locals: {merge_request: merge_request})
%hr %hr
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment