summaryrefslogtreecommitdiff
path: root/app/views/shared/projects/_edit_information.html.haml
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-02-28 09:06:18 +0100
committerBob Van Landuyt <bob@vanlanduyt.co>2018-03-07 16:55:34 +0100
commite74879280f0cbf48fa0dcf8031e711cc51c9183f (patch)
tree291ec858063ba12d569b5a2810215d67b62195ac /app/views/shared/projects/_edit_information.html.haml
parentc9557ad711c6cdf4465fb8c3c9b0dbaffcafa0e8 (diff)
downloadgitlab-ce-e74879280f0cbf48fa0dcf8031e711cc51c9183f.tar.gz
Allow maintainers to edit directly in a fork
Diffstat (limited to 'app/views/shared/projects/_edit_information.html.haml')
-rw-r--r--app/views/shared/projects/_edit_information.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/shared/projects/_edit_information.html.haml b/app/views/shared/projects/_edit_information.html.haml
new file mode 100644
index 00000000000..ec9dc8f62c2
--- /dev/null
+++ b/app/views/shared/projects/_edit_information.html.haml
@@ -0,0 +1,6 @@
+- unless can?(current_user, :push_code, @project)
+ .inline.prepend-left-10
+ - if @project.branch_allows_maintainer_push?(current_user, selected_branch)
+ = commit_in_single_accessible_branch
+ - else
+ = commit_in_fork_help