2014-09-02 18:07:02 +05:30
|
|
|
- empty_repo = @project.empty_repo?
|
2015-12-23 02:04:40 +05:30
|
|
|
.project-home-panel.cover-block.clearfix{:class => ("empty-project" if empty_repo)}
|
2015-04-26 12:48:37 +05:30
|
|
|
.project-identicon-holder
|
2015-09-11 14:41:01 +05:30
|
|
|
= project_icon(@project, alt: '', class: 'project-avatar avatar s90')
|
2016-06-02 11:05:42 +05:30
|
|
|
.cover-title.project-home-desc
|
2016-04-02 18:10:28 +05:30
|
|
|
%h1
|
|
|
|
= @project.name
|
2016-06-02 11:05:42 +05:30
|
|
|
%span.visibility-icon.has-tooltip{data: { container: 'body' }, title: visibility_icon_description(@project)}
|
2016-04-02 18:10:28 +05:30
|
|
|
= visibility_level_icon(@project.visibility_level, fw: false)
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
- if @project.description.present?
|
|
|
|
.cover-desc.project-home-desc
|
2015-09-11 14:41:01 +05:30
|
|
|
= markdown(@project.description, pipeline: :description)
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
- if forked_from_project = @project.forked_from_project
|
|
|
|
.cover-desc
|
|
|
|
Forked from
|
|
|
|
= link_to project_path(forked_from_project) do
|
|
|
|
= forked_from_project.namespace.try(:name)
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
.cover-controls
|
|
|
|
- if current_user
|
|
|
|
= link_to namespace_project_path(@project.namespace, @project, format: :atom, private_token: current_user.private_token), class: 'btn btn-gray' do
|
|
|
|
= icon('rss')
|
2016-01-14 18:37:52 +05:30
|
|
|
- access = user_max_access_in_project(current_user.id, @project)
|
|
|
|
- can_edit = can?(current_user, :admin_project, @project)
|
|
|
|
- if access || can_edit
|
|
|
|
%span.dropdown.project-settings-dropdown
|
|
|
|
%a.dropdown-new.btn.btn-gray#project-settings-button{href: '#', 'data-toggle' => 'dropdown'}
|
|
|
|
= icon('cog')
|
|
|
|
= icon('angle-down')
|
|
|
|
%ul.dropdown-menu.dropdown-menu-right
|
|
|
|
- if can_edit
|
|
|
|
%li
|
|
|
|
= link_to edit_project_path(@project) do
|
|
|
|
Edit Project
|
|
|
|
- if access
|
|
|
|
%li
|
|
|
|
= link_to leave_namespace_project_project_members_path(@project.namespace, @project),
|
|
|
|
data: { confirm: leave_project_message(@project) }, method: :delete, title: 'Leave project' do
|
|
|
|
Leave Project
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
.project-repo-buttons
|
2016-01-14 18:37:52 +05:30
|
|
|
.split-one.count-buttons
|
2015-10-24 18:46:33 +05:30
|
|
|
= render 'projects/buttons/star'
|
2015-11-26 14:37:03 +05:30
|
|
|
= render 'projects/buttons/fork'
|
2015-10-24 18:46:33 +05:30
|
|
|
|
2016-01-19 16:12:03 +05:30
|
|
|
.clone-row
|
|
|
|
.project-clone-holder
|
|
|
|
= render "shared/clone_panel"
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2016-01-19 16:12:03 +05:30
|
|
|
.split-repo-buttons
|
|
|
|
.btn-group.pull-left
|
|
|
|
= render "projects/buttons/download"
|
|
|
|
= render 'projects/buttons/dropdown'
|
2015-11-26 14:37:03 +05:30
|
|
|
|
2016-01-19 16:12:03 +05:30
|
|
|
= render 'projects/buttons/notifications'
|
2016-01-14 18:37:52 +05:30
|
|
|
|
|
|
|
:javascript
|
|
|
|
new Star();
|