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
Tatuya Kamada
gitlab-ce
Commits
a70c5078
Commit
a70c5078
authored
Dec 02, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only use input placeholders when they add value
parent
da48fdc2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
11 deletions
+13
-11
app/views/projects/blob/_new_dir.html.haml
app/views/projects/blob/_new_dir.html.haml
+1
-1
app/views/projects/branches/new.html.haml
app/views/projects/branches/new.html.haml
+3
-2
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+3
-3
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+1
-1
app/views/projects/tags/new.html.haml
app/views/projects/tags/new.html.haml
+3
-3
app/views/shared/snippets/_form.html.haml
app/views/shared/snippets/_form.html.haml
+2
-1
No files found.
app/views/projects/blob/_new_dir.html.haml
View file @
a70c5078
...
...
@@ -9,7 +9,7 @@
.form-group
=
label_tag
:dir_name
,
'Directory name'
,
class:
'control-label'
.col-sm-10
=
text_field_tag
:dir_name
,
params
[
:dir_name
],
placeholder:
"Directory name"
,
required:
true
,
class:
'form-control'
=
text_field_tag
:dir_name
,
params
[
:dir_name
],
required:
true
,
class:
'form-control'
=
render
'shared/new_commit_form'
,
placeholder:
"Add new directory"
...
...
app/views/projects/branches/new.html.haml
View file @
a70c5078
...
...
@@ -13,11 +13,12 @@
.form-group
=
label_tag
:branch_name
,
nil
,
class:
'control-label'
.col-sm-10
=
text_field_tag
:branch_name
,
params
[
:branch_name
],
placeholder:
'enter new branch name'
,
required:
true
,
tabindex:
1
,
class:
'form-control'
=
text_field_tag
:branch_name
,
params
[
:branch_name
],
required:
true
,
tabindex:
1
,
autofocus:
true
,
class:
'form-control'
.form-group
=
label_tag
:ref
,
'Create from'
,
class:
'control-label'
.col-sm-10
=
text_field_tag
:ref
,
params
[
:ref
],
placeholder:
'existing branch name, tag or commit SHA'
,
required:
true
,
tabindex:
2
,
class:
'form-control'
=
text_field_tag
:ref
,
params
[
:ref
]
||
@project
.
default_branch
,
required:
true
,
tabindex:
2
,
class:
'form-control'
.help-block
Existing branch name, tag, or commit SHA
.form-actions
=
button_tag
'Create branch'
,
class:
'btn btn-create'
,
tabindex:
3
=
link_to
'Cancel'
,
namespace_project_branches_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-cancel'
...
...
app/views/projects/edit.html.haml
View file @
a70c5078
...
...
@@ -14,7 +14,7 @@
=
f
.
label
:name
,
class:
'control-label'
do
Project name
.col-sm-10
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"form-control"
,
id:
"project_name_edit"
=
f
.
text_field
:name
,
class:
"form-control"
,
id:
"project_name_edit"
.form-group
...
...
@@ -22,7 +22,7 @@
Project description
%span
.light
(optional)
.col-sm-10
=
f
.
text_area
:description
,
placeholder:
"Awesome project"
,
class:
"form-control"
,
rows:
3
,
maxlength:
250
=
f
.
text_area
:description
,
class:
"form-control"
,
rows:
3
,
maxlength:
250
-
if
@project
.
repository
.
exists?
&&
@project
.
repository
.
branch_names
.
any?
.form-group
...
...
@@ -164,7 +164,7 @@
Project name
.col-sm-9
.form-group
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"form-control"
=
f
.
text_field
:name
,
class:
"form-control"
.form-group
=
f
.
label
:path
,
class:
'control-label'
do
%span
Path
...
...
app/views/projects/new.html.haml
View file @
a70c5078
...
...
@@ -95,7 +95,7 @@
Description
%span
.light
(optional)
.col-sm-10
=
f
.
text_area
:description
,
placeholder:
"Awesome project"
,
class:
"form-control"
,
rows:
3
,
maxlength:
250
,
tabindex:
3
=
f
.
text_area
:description
,
class:
"form-control"
,
rows:
3
,
maxlength:
250
,
tabindex:
3
=
render
'shared/visibility_level'
,
f:
f
,
visibility_level:
default_project_visibility
,
can_change_visibility_level:
true
,
form_model:
@project
.form-actions
...
...
app/views/projects/tags/new.html.haml
View file @
a70c5078
...
...
@@ -14,16 +14,16 @@
.form-group
=
label_tag
:tag_name
,
nil
,
class:
'control-label'
.col-sm-10
=
text_field_tag
:tag_name
,
params
[
:tag_name
],
placeholder:
'v3.0.1'
,
required:
true
,
tabindex:
1
,
class:
'form-control'
=
text_field_tag
:tag_name
,
params
[
:tag_name
],
required:
true
,
tabindex:
1
,
autofocus:
true
,
class:
'form-control'
.form-group
=
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'
=
text_field_tag
:ref
,
params
[
:ref
]
||
@project
.
default_branch
,
required:
true
,
tabindex:
2
,
class:
'form-control'
.help-block
Branch name or commit SHA
.form-group
=
label_tag
:message
,
nil
,
class:
'control-label'
.col-sm-10
=
text_field_tag
:message
,
nil
,
placeholder:
'Enter message.'
,
required:
false
,
tabindex:
3
,
class:
'form-control'
=
text_field_tag
:message
,
nil
,
required:
false
,
tabindex:
3
,
class:
'form-control'
.help-block
Optionally, enter a message to create an annotated tag.
%hr
.form-group
...
...
app/views/shared/snippets/_form.html.haml
View file @
a70c5078
...
...
@@ -8,7 +8,8 @@
.form-group
=
f
.
label
:title
,
class:
'control-label'
.col-sm-10
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'form-control'
,
required:
true
.col-sm-10
=
f
.
text_field
:title
,
class:
'form-control'
,
required:
true
,
autofocus:
true
=
render
'shared/visibility_level'
,
f:
f
,
visibility_level:
visibility_level
,
can_change_visibility_level:
true
,
form_model:
@snippet
...
...
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