summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-05-26 00:04:14 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-05-28 17:17:40 +0800
commit6e0dd362e80e5786b067f941fa7df742a2e1c6bd (patch)
treec6e42bde4180f803e3e280a771d62828e3abed79 /app/views
parentcfdd80ec10c669a6f6811aef02b0df233a709881 (diff)
downloadgitlab-ce-6e0dd362e80e5786b067f941fa7df742a2e1c6bd.tar.gz
Unify app/views/shared/issuable/form/_title.html.haml
Diffstat (limited to 'app/views')
-rw-r--r--app/views/shared/issuable/form/_default_templates.html.haml4
-rw-r--r--app/views/shared/issuable/form/_title.html.haml5
2 files changed, 5 insertions, 4 deletions
diff --git a/app/views/shared/issuable/form/_default_templates.html.haml b/app/views/shared/issuable/form/_default_templates.html.haml
new file mode 100644
index 00000000000..49a5ce926b3
--- /dev/null
+++ b/app/views/shared/issuable/form/_default_templates.html.haml
@@ -0,0 +1,4 @@
+%p.form-text.text-muted
+ Add
+ = link_to 'description templates', help_page_path('user/project/description_templates'), tabindex: -1
+ to help your contributors communicate effectively!
diff --git a/app/views/shared/issuable/form/_title.html.haml b/app/views/shared/issuable/form/_title.html.haml
index c4f30f5f4d9..c35d0b3751f 100644
--- a/app/views/shared/issuable/form/_title.html.haml
+++ b/app/views/shared/issuable/form/_title.html.haml
@@ -30,7 +30,4 @@
merge request from being merged before it's ready.
- if no_issuable_templates && can?(current_user, :push_code, issuable.project)
- %p.form-text.text-muted
- Add
- = link_to 'description templates', help_page_path('user/project/description_templates'), tabindex: -1
- to help your contributors communicate effectively!
+ = render 'shared/issuable/form/default_templates'