summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/projects/_home_panel.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml
index 9eeaa9d0968..1627a61d236 100644
--- a/app/views/projects/_home_panel.html.haml
+++ b/app/views/projects/_home_panel.html.haml
@@ -17,13 +17,13 @@
.fork-buttons
- if current_user && can?(current_user, :fork_project, @project) && @project.namespace != current_user.namespace
- if current_user.already_forked?(@project)
- = link_to project_path(current_user.fork_of(@project)) do
+ = link_to project_path(current_user.fork_of(@project)), title: 'Got to my fork' do
%i.icon-code-fork
Fork
%span.count
= @project.forks_count
- else
- = link_to fork_project_path(@project), title: "Fork", class: "btn btn-block", method: "POST" do
+ = link_to fork_project_path(@project), title: "Fork project", method: "POST" do
%i.icon-code-fork
Fork
%span.count