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
Léo-Paul Géneau
gitlab-ce
Commits
44d33db1
Commit
44d33db1
authored
Feb 22, 2018
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify use of can_current_user_push_code Presenter
parent
3956bb55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/views/projects/buttons/_koding.html.haml
app/views/projects/buttons/_koding.html.haml
+1
-1
app/views/projects/empty.html.haml
app/views/projects/empty.html.haml
+1
-1
No files found.
app/views/projects/buttons/_koding.html.haml
View file @
44d33db1
-
if
koding_enabled?
&&
current_user
&&
@repository
.
koding_yml
&&
@project
.
user_can_push_to_branch?
(
current_user
,
@project
.
default_branch
)
-
if
koding_enabled?
&&
current_user
&&
@repository
.
koding_yml
&&
@project
.
can_current_user_push_code?
=
link_to
koding_project_url
(
@project
),
class:
'btn project-action-button inline'
,
target:
'_blank'
,
rel:
'noopener noreferrer'
do
=
link_to
koding_project_url
(
@project
),
class:
'btn project-action-button inline'
,
target:
'_blank'
,
rel:
'noopener noreferrer'
do
_('Run in IDE (Koding)')
_('Run in IDE (Koding)')
app/views/projects/empty.html.haml
View file @
44d33db1
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
%h4
%h4
=
_
(
'The repository for this project is empty'
)
=
_
(
'The repository for this project is empty'
)
-
if
can?
(
current_user
,
:push_code
,
@project
)
-
if
@project
.
can_current_user_push_code?
%p
%p
-
link_to_cli
=
link_to
_
(
'command line instructions'
),
'#repo-command-line-instructions'
-
link_to_cli
=
link_to
_
(
'command line instructions'
),
'#repo-command-line-instructions'
=
_
(
'If you already have files you can push them using the %{link_to_cli} below.'
).
html_safe
%
{
link_to_cli:
link_to_cli
}
=
_
(
'If you already have files you can push them using the %{link_to_cli} below.'
).
html_safe
%
{
link_to_cli:
link_to_cli
}
...
...
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