Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-26 06:34:16 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-26 06:34:16 +0300
commit1da71cc520dd09098d8f756de3f58b8e2f153fcd (patch)
tree4f78552d8e11d2e185f2c7e944f049459a507d90 /app/views/dashboard
parentcd6baa141528f6d4e676715c2d3995fdc05e9544 (diff)
Introduce shortcuts for routing helpers
Diffstat (limited to 'app/views/dashboard')
-rw-r--r--app/views/dashboard/_project.html.haml2
-rw-r--r--app/views/dashboard/projects.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/dashboard/_project.html.haml b/app/views/dashboard/_project.html.haml
index 3dd69df523d..fa9179cb249 100644
--- a/app/views/dashboard/_project.html.haml
+++ b/app/views/dashboard/_project.html.haml
@@ -1,4 +1,4 @@
-= link_to namespace_project_path(project.namespace, project), class: dom_class(project) do
+= link_to project_path(project), class: dom_class(project) do
.dash-project-avatar
= project_icon(project, alt: '', class: 'avatar project-avatar s40')
.dash-project-access-icon
diff --git a/app/views/dashboard/projects.html.haml b/app/views/dashboard/projects.html.haml
index e57e1e0939e..15db8592547 100644
--- a/app/views/dashboard/projects.html.haml
+++ b/app/views/dashboard/projects.html.haml
@@ -19,7 +19,7 @@
= project_icon("#{project.namespace.to_param}/#{project.to_param}", alt: '', class: 'avatar project-avatar s60')
.project-access-icon
= visibility_level_icon(project.visibility_level)
- = link_to namespace_project_path(project.namespace, project), class: dom_class(project) do
+ = link_to project_path(project), class: dom_class(project) do
%strong= project.name_with_namespace
- if project.forked_from_project