Skip to content
代码片段 群组 项目
提交 d632d2d8 编辑于 作者: Annabel Dunstone Gray's avatar Annabel Dunstone Gray
浏览文件

Use confirm variant for new wiki template

Changelog: changed
上级 8f521adf
No related branches found
No related tags found
无相关合并请求
- if @page&.persisted? - if @page&.persisted?
- if can?(current_user, :create_wiki, @wiki.container) - if can?(current_user, :create_wiki, @wiki.container)
- if @page.template? - if @page.template?
= link_button_to wiki_page_path(@wiki, "#{Wiki::TEMPLATES_DIR}/#{SecureRandom.uuid}", random_title: true), icon: 'plus' do = link_button_to wiki_page_path(@wiki, "#{Wiki::TEMPLATES_DIR}/#{SecureRandom.uuid}", random_title: true), variant: :confirm do
= s_("Wiki|New template") = s_("Wiki|New template")
- else - else
= link_button_to wiki_path(@wiki, action: :new), role: "button", data: { testid: 'new-page-button' }, variant: :confirm, category: :secondary do = link_button_to wiki_path(@wiki, action: :new), role: "button", data: { testid: 'new-page-button' }, variant: :confirm, category: :secondary do
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
= s_("Wiki|Wiki Templates") = s_("Wiki|Wiki Templates")
.nav-controls.pb-md-3.pb-lg-0 .nav-controls.pb-md-3.pb-lg-0
= link_button_to wiki_page_path(@wiki, "#{Wiki::TEMPLATES_DIR}/#{SecureRandom.uuid}", random_title: true), icon: 'plus' do = link_button_to wiki_page_path(@wiki, "#{Wiki::TEMPLATES_DIR}/#{SecureRandom.uuid}", random_title: true), variant: :confirm do
= s_("Wiki|New template") = s_("Wiki|New template")
.dropdown.inline.wiki-sort-dropdown .dropdown.inline.wiki-sort-dropdown
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册