use link_to_project for Dashboard: Issues, MR

This commit is contained in:
Dmitriy Zaporozhets 2012-12-10 06:24:05 +03:00
parent 20c8d6e644
commit b1437d4c8d
3 changed files with 7 additions and 3 deletions

View file

@ -65,7 +65,7 @@
border: 1px solid #eaeaea;
@include border-radius(4px);
border-color: #CCC;
@include solid-shade;
@ -84,6 +84,10 @@
border-top: 1px solid #eaeaea;
border-bottom: 1px solid #bbb;
> a {
text-shadow: 0 1px 1px #fff;
}
&.small {
line-height: 28px;
font-size: 14px;

View file

@ -13,7 +13,7 @@
- @issues.group_by(&:project).each do |group|
%div.ui-box
- @project = group[0]
%h5= link_to(@project.name, project_path(@project))
%h5= link_to_project @project
%ul.unstyled.issues_table
- group[1].each do |issue|
= render(partial: 'issues/show', locals: {issue: issue})

View file

@ -12,7 +12,7 @@
- @merge_requests.group_by(&:project).each do |group|
%ul.unstyled.ui-box
- @project = group[0]
%h5= @project.name
%h5= link_to_project @project
- group[1].each do |merge_request|
= render(partial: 'merge_requests/merge_request', locals: {merge_request: merge_request})
%hr