summaryrefslogtreecommitdiff
path: root/app/views/projects/buttons/_fork.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-07-31 13:56:15 +0200
committerDouwe Maan <douwe@gitlab.com>2015-07-31 13:56:15 +0200
commit7ba765201939bafb1d433cfa315779ab5b6d92b1 (patch)
tree84ec17a9bb38d8ea1eab59484e1caf5e5c76123d /app/views/projects/buttons/_fork.html.haml
parent1e4b3264637a5b66a9bfb04fe9444bcf1f7e18ed (diff)
downloadgitlab-ce-7ba765201939bafb1d433cfa315779ab5b6d92b1.tar.gz
Tweak project page buttons.
Diffstat (limited to 'app/views/projects/buttons/_fork.html.haml')
-rw-r--r--app/views/projects/buttons/_fork.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/buttons/_fork.html.haml b/app/views/projects/buttons/_fork.html.haml
index f0483c79edc..854c154824d 100644
--- a/app/views/projects/buttons/_fork.html.haml
+++ b/app/views/projects/buttons/_fork.html.haml
@@ -1,13 +1,13 @@
- if current_user && can?(current_user, :fork_project, @project)
- if current_user.already_forked?(@project) && current_user.manageable_namespaces.size < 2
= link_to namespace_project_path(current_user, current_user.fork_of(@project)), title: 'Go to your fork', class: 'btn' do
- = icon('code-fork')
+ = icon('code-fork fw')
Fork
%span.count
= @project.forks_count
- else
= link_to new_namespace_project_fork_path(@project.namespace, @project), title: "Fork project", class: 'btn' do
- = icon('code-fork')
+ = icon('code-fork fw')
Fork
%span.count
= @project.forks_count