summaryrefslogtreecommitdiff
path: root/app/views/projects/buttons/_star.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/buttons/_star.html.haml')
-rw-r--r--app/views/projects/buttons/_star.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/buttons/_star.html.haml b/app/views/projects/buttons/_star.html.haml
index 58413e2fc52..e248676be0d 100644
--- a/app/views/projects/buttons/_star.html.haml
+++ b/app/views/projects/buttons/_star.html.haml
@@ -1,5 +1,5 @@
- if current_user
- = link_to toggle_star_namespace_project_path(@project.namespace, @project), { class: 'btn star-btn toggle-star', method: :post, remote: true } do
+ = link_to toggle_star_project_path(@project), { class: 'btn star-btn toggle-star', method: :post, remote: true } do
- if current_user.starred?(@project)
= icon('star')
%span.starred= _('Unstar')