summaryrefslogtreecommitdiff
path: root/app/views/shared/empty_states
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-22 18:11:55 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-22 18:11:55 +0000
commit346ea4d53c1adf8b2e2d6eafbadc528eef5fd83a (patch)
treee8fedb430eb1888e4ba6af5f5fa79bc729a3e406 /app/views/shared/empty_states
parentf20364cefca2eebc958ce34fba46feeae9fdf59a (diff)
downloadgitlab-ce-346ea4d53c1adf8b2e2d6eafbadc528eef5fd83a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/shared/empty_states')
-rw-r--r--app/views/shared/empty_states/_wikis.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/shared/empty_states/_wikis.html.haml b/app/views/shared/empty_states/_wikis.html.haml
index 8304a2f18a0..57f1c9d381e 100644
--- a/app/views/shared/empty_states/_wikis.html.haml
+++ b/app/views/shared/empty_states/_wikis.html.haml
@@ -1,7 +1,8 @@
- layout_path = 'shared/empty_states/wikis_layout'
- messages = wiki_empty_state_messages(@wiki)
+- hide_create = local_assigns[:hide_create]
-- if can?(current_user, :create_wiki, @wiki.container)
+- if !hide_create && can?(current_user, :create_wiki, @wiki.container)
- create_path = wiki_page_path(@wiki, params[:id], view: 'create')
- create_link = link_to s_('WikiEmpty|Create your first page'), create_path, class: 'btn gl-button btn-confirm', title: s_('WikiEmpty|Create your first page'), data: { qa_selector: 'create_first_page_link' }