Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
97842cea
Commit
97842cea
authored
Nov 19, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 'Attach a file' link in new tag form
parent
347f1362
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
16 deletions
+9
-16
app/views/projects/_zen.html.haml
app/views/projects/_zen.html.haml
+6
-3
app/views/projects/releases/edit.html.haml
app/views/projects/releases/edit.html.haml
+1
-2
app/views/projects/tags/new.html.haml
app/views/projects/tags/new.html.haml
+2
-11
No files found.
app/views/projects/_zen.html.haml
View file @
97842cea
...
...
@@ -2,9 +2,12 @@
%input
#zen-toggle-comment
.zen-toggle-comment
(
tabindex=
"-1"
type=
"checkbox"
)
.zen-backdrop
-
classes
<<
' js-gfm-input markdown-area'
-
if
defined?
(
f
)
&&
f
=
f
.
text_area
attr
,
class:
classes
,
placeholder:
''
-
else
=
text_area_tag
attr
,
nil
,
class:
classes
,
placeholder:
''
%a
.zen-enter-link
(
tabindex=
"-1"
href=
"#"
)
%i
.fa.fa-expand
=
icon
(
'expand'
)
Edit in fullscreen
%a
.zen-leave-link
(
href=
"#"
)
%i
.fa.fa-compress
=
icon
(
'compress'
)
app/views/projects/releases/edit.html.haml
View file @
97842cea
...
...
@@ -11,10 +11,9 @@
.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
|
=
render
layout:
'projects/md_preview'
,
locals:
{
preview_class:
"md-preview"
,
referenced_users:
true
}
do
=
render
'projects/zen'
,
f:
f
,
attr: :description
,
classes:
'description js-quick-submit'
=
render
'projects/zen'
,
f:
f
,
attr: :description
,
classes:
'description js-quick-submit
form-control
'
=
render
'projects/notes/hints'
.error-alert
.prepend-top-default
=
f
.
submit
'Save changes'
,
class:
'btn btn-save'
=
link_to
"Cancel"
,
namespace_project_tag_path
(
@project
.
namespace
,
@project
,
@tag
.
name
),
class:
"btn btn-default btn-cancel"
app/views/projects/tags/new.html.haml
View file @
97842cea
...
...
@@ -10,7 +10,7 @@
New git tag
%hr
=
form_tag
namespace_project_tags_path
,
method: :post
,
id:
"new-tag-form"
,
class:
"form-horizontal tag-form"
do
=
form_tag
namespace_project_tags_path
,
method: :post
,
id:
"new-tag-form"
,
class:
"form-horizontal
gfm-form
tag-form"
do
.form-group
=
label_tag
:tag_name
,
'Name for new tag'
,
class:
'control-label'
.col-sm-10
...
...
@@ -30,16 +30,7 @@
=
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
%input
#zen-toggle-comment
.zen-toggle-comment
(
tabindex=
"-1"
type=
"checkbox"
)
.zen-backdrop
=
text_area_tag
:release_description
,
nil
,
class:
'js-gfm-input markdown-area description js-quick-submit form-control'
,
placeholder:
''
%a
.zen-enter-link
(
tabindex=
"-1"
href=
"#"
)
=
icon
(
'expand'
)
Edit in fullscreen
%a
.zen-leave-link
(
href=
"#"
)
=
icon
(
'compress'
)
=
render
'projects/zen'
,
attr: :release_description
,
classes:
'description js-quick-submit form-control'
=
render
'projects/notes/hints'
.help-block
(Optional) You can add release notes to your tag. It will be stored in the GitLab database and shown on the tags page
.form-actions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment