Add empty koding state; check permissions for project buttons
This commit is contained in:
parent
2f87703cff
commit
30a7a76f3b
|
@ -28,10 +28,9 @@
|
|||
.project-clone-holder
|
||||
= render "shared/clone_panel"
|
||||
|
||||
= render 'projects/buttons/download', project: @project, ref: @ref
|
||||
= render 'projects/buttons/dropdown'
|
||||
= render 'shared/notifications/button', notification_setting: @notification_setting
|
||||
|
||||
- if current_user
|
||||
= render "projects/buttons/koding"
|
||||
- if current_user && can?(current_user, :download_code, @project)
|
||||
= render 'projects/buttons/download', project: @project, ref: @ref
|
||||
= render 'projects/buttons/dropdown'
|
||||
= render 'shared/notifications/button', notification_setting: @notification_setting
|
||||
= render 'projects/buttons/koding'
|
||||
= render 'shared/members/access_request_buttons', source: @project
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
- if koding_enabled? && current_user && can_push_branch?(@project, @project.default_branch)
|
||||
- if @repository.koding_yml
|
||||
= link_to koding_project_url(@project), class: 'btn project-action-button inline', target: '_blank' do
|
||||
Run in IDE (Koding)
|
||||
- else
|
||||
= link_to add_koding_stack_path(@project), class: 'btn project-action-button inline' do
|
||||
Set up Koding
|
||||
- if koding_enabled? && current_user && @repository.koding_yml && can_push_branch?(@project, @project.default_branch)
|
||||
= link_to koding_project_url(@project), class: 'btn project-action-button inline', target: '_blank' do
|
||||
Run in IDE (Koding)
|
||||
|
|
|
@ -65,6 +65,9 @@
|
|||
%li.missing
|
||||
= link_to add_special_file_path(@project, file_name: '.gitlab-ci.yml') do
|
||||
Set up CI
|
||||
- if koding_enabled? && @repository.koding_yml.blank?
|
||||
%li.missing
|
||||
= link_to 'Set Up Koding', add_koding_stack_path(@project)
|
||||
|
||||
- if @repository.commit
|
||||
.project-last-commit{ class: container_class }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
title: Move access project button to header
|
||||
merge_request:
|
||||
author:
|
||||
title: Move all action buttons to project header
|
||||
merge_request:
|
||||
author:
|
||||
|
|
Loading…
Reference in New Issue