summaryrefslogtreecommitdiff
path: root/app/views/projects/wikis/edit.html.haml
diff options
context:
space:
mode:
authorLuke Duncalfe <lduncalfe@eml.cc>2019-08-01 17:54:52 +1200
committerLuke Duncalfe <lduncalfe@eml.cc>2019-08-21 09:33:12 +1200
commit93a618f0e54b5ae28f7525b8861763130c692415 (patch)
tree366c54878db236f4011dc26de39b9c5c0c34d382 /app/views/projects/wikis/edit.html.haml
parent80c57bf6d13d6025a9568afb9cca36c279fac593 (diff)
downloadgitlab-ce-93a618f0e54b5ae28f7525b8861763130c692415.tar.gz
New wiki page redirects user to random slug46299-wiki-page-creation
Previously we asked a user to enter a new slug before taking them to the Create Page page. As a UX improvement, we now take them to a randomly generated URI so they can begin creating their new page. https://gitlab.com/gitlab-org/gitlab-ce/issues/46299
Diffstat (limited to 'app/views/projects/wikis/edit.html.haml')
-rw-r--r--app/views/projects/wikis/edit.html.haml11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/views/projects/wikis/edit.html.haml b/app/views/projects/wikis/edit.html.haml
index e8b59a3b8c4..815b4a51261 100644
--- a/app/views/projects/wikis/edit.html.haml
+++ b/app/views/projects/wikis/edit.html.haml
@@ -13,14 +13,11 @@
%h2.wiki-page-title
- if @page.persisted?
= link_to @page.human_title, project_wiki_path(@project, @page)
- - else
- = @page.human_title
- %span.light
- &middot;
- - if @page.persisted?
+ %span.light
+ &middot;
= s_("Wiki|Edit Page")
- - else
- = s_("Wiki|Create Page")
+ - else
+ = s_("Wiki|Create New Page")
.nav-controls
- if @page.persisted?