diff options
author | Patricio Cano <suprnova32@gmail.com> | 2015-09-17 03:52:57 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2015-09-17 03:52:57 +0300 |
commit | 1ef2ce95d507c3d21598f26dd8a0e77dfc3c33cf (patch) | |
tree | dc7a80b0f77f98e9f1a6898644f4961cac2c2d60 /app/views/projects/_home_panel.html.haml | |
parent | 4c98357f16b1acfa793d8a5b28c7147e21f20356 (diff) | |
parent | c99473e57ca90f95c4e31fc1582fb94731257442 (diff) |
Merge branch 'master' into notification-levels
Diffstat (limited to 'app/views/projects/_home_panel.html.haml')
-rw-r--r-- | app/views/projects/_home_panel.html.haml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml index 67a00b4ebef..6e53f55b0ab 100644 --- a/app/views/projects/_home_panel.html.haml +++ b/app/views/projects/_home_panel.html.haml @@ -7,6 +7,13 @@ - if @project.description.present? = markdown(@project.description, pipeline: :description) + - if forked_from_project = @project.forked_from_project + %p + Forked from + = link_to project_path(forked_from_project) do + = forked_from_project.namespace.try(:name) + + .project-repo-buttons = render 'projects/buttons/star' @@ -14,12 +21,6 @@ - unless empty_repo = render 'projects/buttons/fork' - - if forked_from_project = @project.forked_from_project - = link_to project_path(forked_from_project), class: 'btn' do - = icon("code-fork fw") - Forked from - = forked_from_project.namespace.try(:name) - - if can? current_user, :download_code, @project = link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: @ref, format: 'zip'), class: 'btn', rel: 'nofollow' do = icon('download fw') |