summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalin Seciu <calinseciu@gmail.com>2016-02-16 13:13:47 +0200
committerRémy Coutable <remy@rymai.me>2016-05-10 11:45:03 +0200
commitf95a8e450c37e89b2d03b1c7bd2ca609a1d288e7 (patch)
treec3ae534fa9dd0d261502386abd247fc05e0317a1
parentf96c34ec456deca5bb93ef27e578f078ece24aa3 (diff)
downloadgitlab-ce-f95a8e450c37e89b2d03b1c7bd2ca609a1d288e7.tar.gz
Replace text field with textarea in 'New Tag' view and display tag message in `<pre>`
-rw-r--r--app/views/projects/tags/new.html.haml2
-rw-r--r--app/views/projects/tags/show.html.haml7
2 files changed, 4 insertions, 5 deletions
diff --git a/app/views/projects/tags/new.html.haml b/app/views/projects/tags/new.html.haml
index b40a6e5cb2d..f9306453297 100644
--- a/app/views/projects/tags/new.html.haml
+++ b/app/views/projects/tags/new.html.haml
@@ -23,7 +23,7 @@
.form-group
= label_tag :message, nil, class: 'control-label'
.col-sm-10
- = text_field_tag :message, nil, required: false, tabindex: 3, class: 'form-control'
+ = text_area_tag :message, nil, required: false, tabindex: 3, class: 'form-control', rows: 5
.help-block Optionally, enter a message to create an annotated tag.
%hr
.form-group
diff --git a/app/views/projects/tags/show.html.haml b/app/views/projects/tags/show.html.haml
index 9c916fd02de..0442b339582 100644
--- a/app/views/projects/tags/show.html.haml
+++ b/app/views/projects/tags/show.html.haml
@@ -19,14 +19,13 @@
%i.fa.fa-trash-o
.title
%span.item-title= @tag.name
- - if @tag.message.present?
- %span.light
- &nbsp;
- = strip_gpg_signature(@tag.message)
- if @commit
= render 'projects/branches/commit', commit: @commit, project: @project
- else
Cant find HEAD commit for this tag
+ - if @tag.message.present?
+ %pre.body
+ = strip_gpg_signature(@tag.message)
.append-bottom-default.prepend-top-default