Skip to content
Snippets Groups Projects
Commit f95a8e45 authored by Calin's avatar Calin Committed by Rémy Coutable
Browse files

Replace text field with textarea in 'New Tag' view and display tag message in `<pre>`

parent f96c34ec
No related branches found
No related tags found
1 merge request!389CE upstream
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment