From f95a8e450c37e89b2d03b1c7bd2ca609a1d288e7 Mon Sep 17 00:00:00 2001 From: Calin Seciu Date: Tue, 16 Feb 2016 13:13:47 +0200 Subject: Replace text field with textarea in 'New Tag' view and display tag message in `
`

---
 app/views/projects/tags/new.html.haml  | 2 +-
 app/views/projects/tags/show.html.haml | 7 +++----
 2 files changed, 4 insertions(+), 5 deletions(-)

(limited to 'app')

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
-         
-        = 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
-- 
cgit v1.2.3


From 1026f2ad0982493cb5465404ef4ebe71a0082bc0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9my=20Coutable?= 
Date: Wed, 20 Apr 2016 14:34:28 +0200
Subject: Add integration specs for tags
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Rémy Coutable 
---
 app/views/projects/tags/show.html.haml | 1 -
 1 file changed, 1 deletion(-)

(limited to 'app')

diff --git a/app/views/projects/tags/show.html.haml b/app/views/projects/tags/show.html.haml
index 0442b339582..9f1424aecc7 100644
--- a/app/views/projects/tags/show.html.haml
+++ b/app/views/projects/tags/show.html.haml
@@ -27,7 +27,6 @@
     %pre.body
       = strip_gpg_signature(@tag.message)
 
-
 .append-bottom-default.prepend-top-default
   - if @release.description.present?
     .description
-- 
cgit v1.2.3