use link_to_project for Dashboard: Issues, MR
This commit is contained in:
parent
20c8d6e644
commit
b1437d4c8d
|
@ -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;
|
||||
|
|
|
@ -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})
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue