Small UI improvements to new git tag page

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-11-06 15:05:19 +01:00
parent b60ad399ac
commit 962b57df5a
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
2 changed files with 11 additions and 7 deletions

View file

@ -3,7 +3,9 @@
.gray-content-block
.oneline
Release notes for #{@tag.name}
.title
Release notes for tag
%strong #{@tag.name}
.prepend-top-default
= form_for(@release, method: :put, url: namespace_project_tag_release_path(@project.namespace, @project, @tag.name), html: { class: 'form-horizontal gfm-form release-form' }) do |f|

View file

@ -5,9 +5,11 @@
.alert.alert-danger
%button{ type: "button", class: "close", "data-dismiss" => "alert"} &times;
= @error
%h3.page-title
%i.fa.fa-code-fork
New tag
New git tag
%hr
= form_tag namespace_project_tags_path, method: :post, id: "new-tag-form", class: "form-horizontal tag-form" do
.form-group
= label_tag :tag_name, 'Name for new tag', class: 'control-label'
@ -17,15 +19,15 @@
= label_tag :ref, 'Create from', class: 'control-label'
.col-sm-10
= text_field_tag :ref, params[:ref], placeholder: 'master', required: true, tabindex: 2, class: 'form-control'
.light Branch name or commit SHA
.help-block Branch name or commit SHA
.form-group
= label_tag :message, 'Message', class: 'control-label'
.col-sm-10
= text_field_tag :message, nil, placeholder: 'Enter message.', required: false, tabindex: 3, class: 'form-control'
.light (Optional) Entering a message will create an annotated tag.
.help-block (Optional) Entering a message will create an annotated tag.
%hr
.form-group
= label_tag :release_description, 'Release description', class: 'control-label'
= label_tag :release_description, 'Release notes', class: 'control-label'
.col-sm-10
= render layout: 'projects/md_preview', locals: { preview_class: "md-preview", referenced_users: true } do
.zennable
@ -39,7 +41,7 @@
= icon('compress')
= render 'projects/notes/hints'
.help-block You can add release description to your tag. It will be stored in GitLab database and displayed on tags page
.help-block (Optional) You can add release notes to your tag. It will be stored in GitLab database and displayed on tags page
.form-actions
= button_tag 'Create tag', class: 'btn btn-create', tabindex: 3
= link_to 'Cancel', namespace_project_tags_path(@project.namespace, @project), class: 'btn btn-cancel'