Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-04-06 18:07:26 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2018-04-11 11:51:16 +0300
commit1747a573dff40ab51ba892bf9f5293e3c9b794d6 (patch)
treedfa7525dde6c550e98e53c415d4f5e35b380feb1 /app/views
parentfe9389ba6c10e9addefc6e647f1476ff765236d9 (diff)
Hide `new merge request` button from index page
When a project is archived, don't show the button on the index page of merge requests
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/merge_requests/index.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/merge_requests/index.html.haml b/app/views/projects/merge_requests/index.html.haml
index f9ab0f5709b..623380c9c61 100644
--- a/app/views/projects/merge_requests/index.html.haml
+++ b/app/views/projects/merge_requests/index.html.haml
@@ -1,6 +1,6 @@
- @no_container = true
- @can_bulk_update = can?(current_user, :admin_merge_request, @project)
-- merge_project = can?(current_user, :create_merge_request_from, @project) ? @project : (current_user && current_user.fork_of(@project))
+- merge_project = merge_request_source_project_for_project(@project)
- new_merge_request_path = project_new_merge_request_path(merge_project) if merge_project
- page_title "Merge Requests"