Commit 30a7a76f authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Add empty koding state; check permissions for project buttons

parent 2f87703c
...@@ -28,10 +28,9 @@ ...@@ -28,10 +28,9 @@
.project-clone-holder .project-clone-holder
= render "shared/clone_panel" = render "shared/clone_panel"
= render 'projects/buttons/download', project: @project, ref: @ref - if current_user && can?(current_user, :download_code, @project)
= render 'projects/buttons/dropdown' = render 'projects/buttons/download', project: @project, ref: @ref
= render 'shared/notifications/button', notification_setting: @notification_setting = render 'projects/buttons/dropdown'
= render 'shared/notifications/button', notification_setting: @notification_setting
- if current_user = render 'projects/buttons/koding'
= render "projects/buttons/koding"
= render 'shared/members/access_request_buttons', source: @project = render 'shared/members/access_request_buttons', source: @project
- if koding_enabled? && current_user && can_push_branch?(@project, @project.default_branch) - if koding_enabled? && current_user && @repository.koding_yml && 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
= link_to koding_project_url(@project), class: 'btn project-action-button inline', target: '_blank' do Run in IDE (Koding)
Run in IDE (Koding)
- else
= link_to add_koding_stack_path(@project), class: 'btn project-action-button inline' do
Set up Koding
...@@ -65,6 +65,9 @@ ...@@ -65,6 +65,9 @@
%li.missing %li.missing
= link_to add_special_file_path(@project, file_name: '.gitlab-ci.yml') do = link_to add_special_file_path(@project, file_name: '.gitlab-ci.yml') do
Set up CI 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 - if @repository.commit
.project-last-commit{ class: container_class } .project-last-commit{ class: container_class }
......
--- ---
title: Move access project button to header title: Move all action buttons to project header
merge_request: merge_request:
author: author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment