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 @@
.project-clone-holder
= render "shared/clone_panel"
- 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
- if current_user
= render "projects/buttons/koding"
= render 'projects/buttons/koding'
= render 'shared/members/access_request_buttons', source: @project
- if koding_enabled? && current_user && can_push_branch?(@project, @project.default_branch)
- if @repository.koding_yml
- 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)
- else
= link_to add_koding_stack_path(@project), class: 'btn project-action-button inline' do
Set up 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 }
......
---
title: Move access project button to header
title: Move all action buttons to project header
merge_request:
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