Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
30a7a76f
Commit
30a7a76f
authored
Dec 16, 2016
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add empty koding state; check permissions for project buttons
parent
2f87703c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
16 deletions
+14
-16
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+5
-6
app/views/projects/buttons/_koding.html.haml
app/views/projects/buttons/_koding.html.haml
+3
-7
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+3
-0
changelogs/unreleased/leave-project-btn.yml
changelogs/unreleased/leave-project-btn.yml
+3
-3
No files found.
app/views/projects/_home_panel.html.haml
View file @
30a7a76f
...
...
@@ -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
app/views/projects/buttons/_koding.html.haml
View file @
30a7a76f
-
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)
app/views/projects/show.html.haml
View file @
30a7a76f
...
...
@@ -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
}
...
...
changelogs/unreleased/leave-project-btn.yml
View file @
30a7a76f
---
title
:
Move a
ccess project button to
header
merge_request
:
author
:
title
:
Move a
ll action buttons to project
header
merge_request
:
author
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment