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
2e0a3734
Commit
2e0a3734
authored
Aug 07, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'improve/proper_form_classes' of /home/git/repositories/gitlab/gitlabhq
parents
89d0d75c
b2152847
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
159 additions
and
177 deletions
+159
-177
app/assets/stylesheets/gitlab_bootstrap/forms.scss
app/assets/stylesheets/gitlab_bootstrap/forms.scss
+0
-18
app/views/admin/groups/edit.html.haml
app/views/admin/groups/edit.html.haml
+9
-9
app/views/admin/groups/new.html.haml
app/views/admin/groups/new.html.haml
+6
-6
app/views/admin/hooks/index.html.haml
app/views/admin/hooks/index.html.haml
+2
-2
app/views/admin/users/_form.html.haml
app/views/admin/users/_form.html.haml
+27
-27
app/views/groups/_new_group_member.html.haml
app/views/groups/_new_group_member.html.haml
+4
-4
app/views/groups/edit.html.haml
app/views/groups/edit.html.haml
+6
-6
app/views/groups/new.html.haml
app/views/groups/new.html.haml
+8
-8
app/views/profiles/account.html.haml
app/views/profiles/account.html.haml
+9
-9
app/views/profiles/keys/_form.html.haml
app/views/profiles/keys/_form.html.haml
+5
-5
app/views/profiles/passwords/new.html.haml
app/views/profiles/passwords/new.html.haml
+6
-6
app/views/projects/compare/_form.html.haml
app/views/projects/compare/_form.html.haml
+2
-2
app/views/projects/deploy_keys/_form.html.haml
app/views/projects/deploy_keys/_form.html.haml
+5
-5
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+11
-11
app/views/projects/hooks/index.html.haml
app/views/projects/hooks/index.html.haml
+2
-2
app/views/projects/issues/_form.html.haml
app/views/projects/issues/_form.html.haml
+13
-13
app/views/projects/merge_requests/_form.html.haml
app/views/projects/merge_requests/_form.html.haml
+5
-5
app/views/projects/milestones/_form.html.haml
app/views/projects/milestones/_form.html.haml
+1
-1
app/views/projects/network/_head.html.haml
app/views/projects/network/_head.html.haml
+1
-1
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+12
-12
app/views/projects/snippets/_form.html.haml
app/views/projects/snippets/_form.html.haml
+6
-6
app/views/projects/team_members/_form.html.haml
app/views/projects/team_members/_form.html.haml
+5
-5
app/views/projects/team_members/import.html.haml
app/views/projects/team_members/import.html.haml
+2
-2
app/views/projects/wikis/_form.html.haml
app/views/projects/wikis/_form.html.haml
+4
-4
app/views/public/projects/index.html.haml
app/views/public/projects/index.html.haml
+1
-1
app/views/search/show.html.haml
app/views/search/show.html.haml
+1
-1
app/views/snippets/_form.html.haml
app/views/snippets/_form.html.haml
+6
-6
No files found.
app/assets/stylesheets/gitlab_bootstrap/forms.scss
View file @
2e0a3734
form
{
form
{
@extend
.form-horizontal
;
@extend
.form-horizontal
;
.actions
{
@extend
.form-actions
;
}
.clearfix
{
@extend
.control-group
;
}
.input
{
@extend
.controls
;
}
label
{
label
{
@extend
.control-label
;
@extend
.control-label
;
}
}
.xlarge
{
@extend
.input-xlarge
;
}
.xxlarge
{
@extend
.input-xxlarge
;
}
}
}
input
{
input
{
...
...
app/views/admin/groups/edit.html.haml
View file @
2e0a3734
...
@@ -4,22 +4,22 @@
...
@@ -4,22 +4,22 @@
-
if
@group
.
errors
.
any?
-
if
@group
.
errors
.
any?
.alert.alert-error
.alert.alert-error
%span
=
@group
.
errors
.
full_messages
.
first
%span
=
@group
.
errors
.
full_messages
.
first
.c
learfix
.group_name_holder
.c
ontrol-group
.group_name_holder
=
f
.
label
:name
do
=
f
.
label
:name
do
Group name is
Group name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Example Group"
,
class:
"xxlarge"
=
f
.
text_field
:name
,
placeholder:
"Example Group"
,
class:
"
input-
xxlarge"
.c
learfix
.group-description-holder
.c
ontrol-group
.group-description-holder
=
f
.
label
:description
,
"Details"
=
f
.
label
:description
,
"Details"
.
input
.
controls
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"xxlarge js-gfm-input"
,
rows:
4
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"
input-
xxlarge js-gfm-input"
,
rows:
4
.c
learfix
.group_name_holder
.c
ontrol-group
.group_name_holder
=
f
.
label
:path
do
=
f
.
label
:path
do
%span
.cred
Group path is
%span
.cred
Group path is
.
input
.
controls
=
f
.
text_field
:path
,
placeholder:
"example-group"
,
class:
"xxlarge danger"
=
f
.
text_field
:path
,
placeholder:
"example-group"
,
class:
"
input-
xxlarge danger"
%ul
.cred
%ul
.cred
%li
Changing group path can have unintended side effects.
%li
Changing group path can have unintended side effects.
%li
Renaming group path will rename directory for all related projects
%li
Renaming group path will rename directory for all related projects
...
...
app/views/admin/groups/new.html.haml
View file @
2e0a3734
...
@@ -4,15 +4,15 @@
...
@@ -4,15 +4,15 @@
-
if
@group
.
errors
.
any?
-
if
@group
.
errors
.
any?
.alert.alert-error
.alert.alert-error
%span
=
@group
.
errors
.
full_messages
.
first
%span
=
@group
.
errors
.
full_messages
.
first
.c
learfix
.c
ontrol-group
=
f
.
label
:name
do
=
f
.
label
:name
do
Group name is
Group name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"xxlarge left"
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"
input-
xxlarge left"
.c
learfix
.group-description-holder
.c
ontrol-group
.group-description-holder
=
f
.
label
:description
,
"Details"
=
f
.
label
:description
,
"Details"
.
input
.
controls
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"xxlarge js-gfm-input"
,
rows:
4
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"
input-
xxlarge js-gfm-input"
,
rows:
4
.form-actions
.form-actions
=
f
.
submit
'Create group'
,
class:
"btn btn-create"
=
f
.
submit
'Create group'
,
class:
"btn btn-create"
...
...
app/views/admin/hooks/index.html.haml
View file @
2e0a3734
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
.alert.alert-error
.alert.alert-error
-
@hook
.
errors
.
full_messages
.
each
do
|
msg
|
-
@hook
.
errors
.
full_messages
.
each
do
|
msg
|
%p
=
msg
%p
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:url
,
"URL:"
=
f
.
label
:url
,
"URL:"
.
input
.
controls
=
f
.
text_field
:url
,
class:
"text_field xxlarge input-xpadding"
=
f
.
text_field
:url
,
class:
"text_field xxlarge input-xpadding"
=
f
.
submit
"Add System Hook"
,
class:
"btn btn-create"
=
f
.
submit
"Add System Hook"
,
class:
"btn btn-create"
...
...
app/views/admin/users/_form.html.haml
View file @
2e0a3734
...
@@ -8,28 +8,28 @@
...
@@ -8,28 +8,28 @@
%fieldset
%fieldset
%legend
Account
%legend
Account
.c
learfix
.c
ontrol-group
=
f
.
label
:name
=
f
.
label
:name
.
input
.
controls
=
f
.
text_field
:name
,
required:
true
,
autocomplete:
"off"
=
f
.
text_field
:name
,
required:
true
,
autocomplete:
"off"
%span
.help-inline
* required
%span
.help-inline
* required
.c
learfix
.c
ontrol-group
=
f
.
label
:username
=
f
.
label
:username
.
input
.
controls
=
f
.
text_field
:username
,
required:
true
,
autocomplete:
"off"
=
f
.
text_field
:username
,
required:
true
,
autocomplete:
"off"
%span
.help-inline
* required
%span
.help-inline
* required
.c
learfix
.c
ontrol-group
=
f
.
label
:email
=
f
.
label
:email
.
input
.
controls
=
f
.
text_field
:email
,
required:
true
,
autocomplete:
"off"
=
f
.
text_field
:email
,
required:
true
,
autocomplete:
"off"
%span
.help-inline
* required
%span
.help-inline
* required
-
if
@user
.
new_record?
-
if
@user
.
new_record?
%fieldset
%fieldset
%legend
Password
%legend
Password
.c
learfix
.c
ontrol-group
=
f
.
label
:password
=
f
.
label
:password
.
input
.
controls
%strong
%strong
A temporary password will be generated and sent to user.
A temporary password will be generated and sent to user.
%br
%br
...
@@ -37,33 +37,33 @@
...
@@ -37,33 +37,33 @@
-
else
-
else
%fieldset
%fieldset
%legend
Password
%legend
Password
.c
learfix
.c
ontrol-group
=
f
.
label
:password
=
f
.
label
:password
.
input
=
f
.
password_field
:password
,
disabled:
f
.
object
.
force_random_password
.
controls
=
f
.
password_field
:password
,
disabled:
f
.
object
.
force_random_password
.c
learfix
.c
ontrol-group
=
f
.
label
:password_confirmation
=
f
.
label
:password_confirmation
.
input
=
f
.
password_field
:password_confirmation
,
disabled:
f
.
object
.
force_random_password
.
controls
=
f
.
password_field
:password_confirmation
,
disabled:
f
.
object
.
force_random_password
%fieldset
%fieldset
%legend
Access
%legend
Access
.row
.row
.span8
.span8
.c
learfix
.c
ontrol-group
=
f
.
label
:projects_limit
=
f
.
label
:projects_limit
.
input
=
f
.
number_field
:projects_limit
.
controls
=
f
.
number_field
:projects_limit
.c
learfix
.c
ontrol-group
=
f
.
label
:can_create_group
=
f
.
label
:can_create_group
.
input
=
f
.
check_box
:can_create_group
.
controls
=
f
.
check_box
:can_create_group
.c
learfix
.c
ontrol-group
=
f
.
label
:can_create_team
=
f
.
label
:can_create_team
.
input
=
f
.
check_box
:can_create_team
.
controls
=
f
.
check_box
:can_create_team
.c
learfix
.c
ontrol-group
=
f
.
label
:admin
do
=
f
.
label
:admin
do
%strong
.cred
Administrator
%strong
.cred
Administrator
.
input
=
f
.
check_box
:admin
.
controls
=
f
.
check_box
:admin
.span4
.span4
-
unless
@user
.
new_record?
-
unless
@user
.
new_record?
.alert.alert-error
.alert.alert-error
...
@@ -75,17 +75,17 @@
...
@@ -75,17 +75,17 @@
=
link_to
'Block User'
,
block_admin_user_path
(
@user
),
confirm:
'USER WILL BE BLOCKED! Are you sure?'
,
method: :put
,
class:
"btn btn-small btn-remove"
=
link_to
'Block User'
,
block_admin_user_path
(
@user
),
confirm:
'USER WILL BE BLOCKED! Are you sure?'
,
method: :put
,
class:
"btn btn-small btn-remove"
%fieldset
%fieldset
%legend
Profile
%legend
Profile
.c
learfix
.c
ontrol-group
=
f
.
label
:skype
=
f
.
label
:skype
.
input
=
f
.
text_field
:skype
.
controls
=
f
.
text_field
:skype
.c
learfix
.c
ontrol-group
=
f
.
label
:linkedin
=
f
.
label
:linkedin
.
input
=
f
.
text_field
:linkedin
.
controls
=
f
.
text_field
:linkedin
.c
learfix
.c
ontrol-group
=
f
.
label
:twitter
=
f
.
label
:twitter
.
input
=
f
.
text_field
:twitter
.
controls
=
f
.
text_field
:twitter
.actions
.
form-
actions
-
if
@user
.
new_record?
-
if
@user
.
new_record?
=
f
.
submit
'Create user'
,
class:
"btn btn-create"
=
f
.
submit
'Create user'
,
class:
"btn btn-create"
=
link_to
'Cancel'
,
admin_users_path
,
class:
"btn btn-cancel"
=
link_to
'Cancel'
,
admin_users_path
,
class:
"btn btn-cancel"
...
...
app/views/groups/_new_group_member.html.haml
View file @
2e0a3734
...
@@ -6,14 +6,14 @@
...
@@ -6,14 +6,14 @@
group
group
%p
1. Choose users you want in the group
%p
1. Choose users you want in the group
.c
learfix
.c
ontrol-group
=
f
.
label
:user_ids
,
"People"
=
f
.
label
:user_ids
,
"People"
.
input
=
users_select_tag
(
:user_ids
,
multiple:
true
,
class:
'input-large'
)
.
controls
=
users_select_tag
(
:user_ids
,
multiple:
true
,
class:
'input-large'
)
%p
2. Set access level for them
%p
2. Set access level for them
.c
learfix
.c
ontrol-group
=
f
.
label
:group_access
,
"Group Access"
=
f
.
label
:group_access
,
"Group Access"
.
input
=
select_tag
:group_access
,
options_for_select
(
UsersGroup
.
group_access_roles
,
@users_group
.
group_access
),
class:
"project-access-select chosen"
.
controls
=
select_tag
:group_access
,
options_for_select
(
UsersGroup
.
group_access_roles
,
@users_group
.
group_access
),
class:
"project-access-select chosen"
.form-actions
.form-actions
=
f
.
submit
'Add users into group'
,
class:
"btn btn-create"
=
f
.
submit
'Add users into group'
,
class:
"btn btn-create"
...
...
app/views/groups/edit.html.haml
View file @
2e0a3734
...
@@ -26,16 +26,16 @@
...
@@ -26,16 +26,16 @@
-
if
@group
.
errors
.
any?
-
if
@group
.
errors
.
any?
.alert.alert-error
.alert.alert-error
%span
=
@group
.
errors
.
full_messages
.
first
%span
=
@group
.
errors
.
full_messages
.
first
.c
learfix
.c
ontrol-group
=
f
.
label
:name
do
=
f
.
label
:name
do
Group name is
Group name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"xxlarge left"
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"
input-
xxlarge left"
.c
learfix
.group-description-holder
.c
ontrol-group
.group-description-holder
=
f
.
label
:description
,
"Details"
=
f
.
label
:description
,
"Details"
.
input
.
controls
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"xxlarge js-gfm-input"
,
rows:
4
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"
input-
xxlarge js-gfm-input"
,
rows:
4
.form-actions
.form-actions
=
f
.
submit
'Save group'
,
class:
"btn btn-save"
=
f
.
submit
'Save group'
,
class:
"btn btn-save"
...
...
app/views/groups/new.html.haml
View file @
2e0a3734
...
@@ -2,19 +2,19 @@
...
@@ -2,19 +2,19 @@
-
if
@group
.
errors
.
any?
-
if
@group
.
errors
.
any?
.alert.alert-error
.alert.alert-error
%span
=
@group
.
errors
.
full_messages
.
first
%span
=
@group
.
errors
.
full_messages
.
first
.c
learfix
.c
ontrol-group
=
f
.
label
:name
do
=
f
.
label
:name
do
Group name is
Group name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"xxlarge left"
=
f
.
text_field
:name
,
placeholder:
"Ex. OpenSource"
,
class:
"
input-
xxlarge left"
.c
learfix
.group-description-holder
.c
ontrol-group
.group-description-holder
=
f
.
label
:description
,
"Details"
=
f
.
label
:description
,
"Details"
.
input
.
controls
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"xxlarge js-gfm-input"
,
rows:
4
=
f
.
text_area
:description
,
maxlength:
250
,
class:
"
input-
xxlarge js-gfm-input"
,
rows:
4
.c
learfix
.c
ontrol-group
.
input
.
controls
%ul
%ul
%li
Group is kind of directory for several projects
%li
Group is kind of directory for several projects
%li
All created groups are private
%li
All created groups are private
...
...
app/views/profiles/account.html.haml
View file @
2e0a3734
...
@@ -27,15 +27,15 @@
...
@@ -27,15 +27,15 @@
-
@user
.
errors
.
full_messages
.
each
do
|
msg
|
-
@user
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:password
=
f
.
label
:password
.
input
=
f
.
password_field
:password
,
required:
true
.
controls
=
f
.
password_field
:password
,
required:
true
.c
learfix
.c
ontrol-group
=
f
.
label
:password_confirmation
=
f
.
label
:password_confirmation
.
input
.
controls
=
f
.
password_field
:password_confirmation
,
required:
true
=
f
.
password_field
:password_confirmation
,
required:
true
.c
learfix
.c
ontrol-group
.
input
.
controls
=
f
.
submit
'Save password'
,
class:
"btn btn-save"
=
f
.
submit
'Save password'
,
class:
"btn btn-save"
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
It can be used for atom feed or API
It can be used for atom feed or API
%p
.cgray
%p
.cgray
-
if
current_user
.
private_token
-
if
current_user
.
private_token
=
text_field_tag
"token"
,
current_user
.
private_token
,
class:
"xxlarge large_text"
=
text_field_tag
"token"
,
current_user
.
private_token
,
class:
"
input-
xxlarge large_text"
=
f
.
submit
'Reset'
,
confirm:
"Are you sure?"
,
class:
"btn btn-primary btn-build-token"
=
f
.
submit
'Reset'
,
confirm:
"Are you sure?"
,
class:
"btn btn-primary btn-build-token"
-
else
-
else
%span
You don`t have one yet. Click generate to fix it.
%span
You don`t have one yet. Click generate to fix it.
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
=
form_for
@user
,
url:
update_username_profile_path
,
method: :put
,
remote:
true
do
|
f
|
=
form_for
@user
,
url:
update_username_profile_path
,
method: :put
,
remote:
true
do
|
f
|
.padded
.padded
=
f
.
label
:username
=
f
.
label
:username
.
input
.
controls
=
f
.
text_field
:username
,
required:
true
=
f
.
text_field
:username
,
required:
true
%span
.loading-gif.hide
=
image_tag
"ajax_loader.gif"
%span
.loading-gif.hide
=
image_tag
"ajax_loader.gif"
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
%ul
.cred
%ul
.cred
%li
It will change web url for personal projects.
%li
It will change web url for personal projects.
%li
It will change the git path to repositories for personal projects.
%li
It will change the git path to repositories for personal projects.
.
input
.
controls
=
f
.
submit
'Save username'
,
class:
"btn btn-save"
=
f
.
submit
'Save username'
,
class:
"btn btn-save"
-
if
gitlab_config
.
signup_enabled
-
if
gitlab_config
.
signup_enabled
...
...
app/views/profiles/keys/_form.html.haml
View file @
2e0a3734
...
@@ -6,18 +6,18 @@
...
@@ -6,18 +6,18 @@
-
@key
.
errors
.
full_messages
.
each
do
|
msg
|
-
@key
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:title
=
f
.
label
:title
.
input
=
f
.
text_field
:title
.
controls
=
f
.
text_field
:title
.c
learfix
.c
ontrol-group
=
f
.
label
:key
=
f
.
label
:key
.
input
.
controls
%p
.light
%p
.light
Paste your public key here. Read more about how generate it
#{
link_to
"here"
,
help_ssh_path
}
Paste your public key here. Read more about how generate it
#{
link_to
"here"
,
help_ssh_path
}
=
f
.
text_area
:key
,
class:
[
:xxlarge
,
:thin_area
]
=
f
.
text_area
:key
,
class:
[
:xxlarge
,
:thin_area
]
.actions
.
form-
actions
=
f
.
submit
'Add key'
,
class:
"btn btn-create"
=
f
.
submit
'Add key'
,
class:
"btn btn-create"
=
link_to
"Cancel"
,
profile_keys_path
,
class:
"btn btn-cancel"
=
link_to
"Cancel"
,
profile_keys_path
,
class:
"btn btn-cancel"
app/views/profiles/passwords/new.html.haml
View file @
2e0a3734
...
@@ -10,13 +10,13 @@
...
@@ -10,13 +10,13 @@
-
@user
.
errors
.
full_messages
.
each
do
|
msg
|
-
@user
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:password
=
f
.
label
:password
.
input
=
f
.
password_field
:password
,
required:
true
.
controls
=
f
.
password_field
:password
,
required:
true
.c
learfix
.c
ontrol-group
=
f
.
label
:password_confirmation
=
f
.
label
:password_confirmation
.
input
.
controls
=
f
.
password_field
:password_confirmation
,
required:
true
=
f
.
password_field
:password_confirmation
,
required:
true
.c
learfix
.c
ontrol-group
.
input
.
controls
=
f
.
submit
'Set new password'
,
class:
"btn btn-create"
=
f
.
submit
'Set new password'
,
class:
"btn btn-create"
app/views/projects/compare/_form.html.haml
View file @
2e0a3734
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
.pull-left
.pull-left
-
if
params
[
:to
]
&&
params
[
:from
]
-
if
params
[
:to
]
&&
params
[
:from
]
=
link_to
'switch'
,
{
from:
params
[
:to
],
to:
params
[
:from
]},
{
class:
'commits-compare-switch has_tooltip'
,
title:
'Switch base of comparison'
}
=
link_to
'switch'
,
{
from:
params
[
:to
],
to:
params
[
:from
]},
{
class:
'commits-compare-switch has_tooltip'
,
title:
'Switch base of comparison'
}
=
text_field_tag
:from
,
params
[
:from
],
placeholder:
"master"
,
class:
"xlarge input-xpadding"
=
text_field_tag
:from
,
params
[
:from
],
placeholder:
"master"
,
class:
"
input-
xlarge input-xpadding"
=
"..."
=
"..."
=
text_field_tag
:to
,
params
[
:to
],
placeholder:
"aa8b4ef"
,
class:
"xlarge input-xpadding"
=
text_field_tag
:to
,
params
[
:to
],
placeholder:
"aa8b4ef"
,
class:
"
input-
xlarge input-xpadding"
.pull-left
.pull-left
=
submit_tag
"Compare"
,
class:
"btn btn-create commits-compare-btn"
=
submit_tag
"Compare"
,
class:
"btn btn-create commits-compare-btn"
...
...
app/views/projects/deploy_keys/_form.html.haml
View file @
2e0a3734
...
@@ -6,18 +6,18 @@
...
@@ -6,18 +6,18 @@
-
@key
.
errors
.
full_messages
.
each
do
|
msg
|
-
@key
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:title
=
f
.
label
:title
.
input
=
f
.
text_field
:title
.
controls
=
f
.
text_field
:title
.c
learfix
.c
ontrol-group
=
f
.
label
:key
=
f
.
label
:key
.
input
.
controls
=
f
.
text_area
:key
,
class:
[
:xxlarge
,
:thin_area
]
=
f
.
text_area
:key
,
class:
[
:xxlarge
,
:thin_area
]
%p
.hint
%p
.hint
Paste a machine public key here. Read more about how generate it
Paste a machine public key here. Read more about how generate it
=
link_to
"here"
,
help_ssh_path
=
link_to
"here"
,
help_ssh_path
.actions
.
form-
actions
=
f
.
submit
'Create'
,
class:
"btn-create btn"
=
f
.
submit
'Create'
,
class:
"btn-create btn"
=
link_to
"Cancel"
,
project_deploy_keys_path
(
@project
),
class:
"btn btn-cancel"
=
link_to
"Cancel"
,
project_deploy_keys_path
(
@project
),
class:
"btn btn-cancel"
app/views/projects/edit.html.haml
View file @
2e0a3734
...
@@ -8,24 +8,24 @@
...
@@ -8,24 +8,24 @@
.form-holder
.form-holder
=
form_for
(
@project
,
remote:
true
)
do
|
f
|
=
form_for
(
@project
,
remote:
true
)
do
|
f
|
%fieldset
%fieldset
.c
learfix
.project_name_holder
.c
ontrol-group
.project_name_holder
=
f
.
label
:name
do
=
f
.
label
:name
do
Project name is
Project name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"span5"
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"span5"
.c
learfix
.c
ontrol-group
=
f
.
label
:description
do
=
f
.
label
:description
do
Project description
Project description
%span
.light
(optional)
%span
.light
(optional)
.
input
.
controls
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
-
if
@project
.
repository
.
exists?
&&
@project
.
repository
.
branch_names
.
any?
-
if
@project
.
repository
.
exists?
&&
@project
.
repository
.
branch_names
.
any?
.c
learfix
.c
ontrol-group
=
f
.
label
:default_branch
,
"Default Branch"
=
f
.
label
:default_branch
,
"Default Branch"
.
input
=
f
.
select
(
:default_branch
,
@repository
.
branch_names
,
{},
{
class:
'chosen'
})
.
controls
=
f
.
select
(
:default_branch
,
@repository
.
branch_names
,
{},
{
class:
'chosen'
})
-
if
can?
(
current_user
,
:change_public_mode
,
@project
)
-
if
can?
(
current_user
,
:change_public_mode
,
@project
)
...
@@ -66,11 +66,11 @@
...
@@ -66,11 +66,11 @@
-
if
Project
.
issues_tracker
.
values
.
count
>
1
-
if
Project
.
issues_tracker
.
values
.
count
>
1
.control-group
.control-group
=
f
.
label
:issues_tracker
,
"Issues tracker"
,
class:
'control-label'
=
f
.
label
:issues_tracker
,
"Issues tracker"
,
class:
'control-label'
.
input
=
f
.
select
(
:issues_tracker
,
Project
.
issues_tracker
.
values
,
{},
{
disabled:
!
@project
.
issues_enabled
})
.
controls
=
f
.
select
(
:issues_tracker
,
Project
.
issues_tracker
.
values
,
{},
{
disabled:
!
@project
.
issues_enabled
})
.c
learfix
.c
ontrol-group
=
f
.
label
:issues_tracker_id
,
"Project name or id in issues tracker"
,
class:
'control-label'
=
f
.
label
:issues_tracker_id
,
"Project name or id in issues tracker"
,
class:
'control-label'
.
input
=
f
.
text_field
:issues_tracker_id
,
disabled:
!
@project
.
can_have_issues_tracker_id?
.
controls
=
f
.
text_field
:issues_tracker_id
,
disabled:
!
@project
.
can_have_issues_tracker_id?
.control-group
.control-group
=
f
.
label
:merge_requests_enabled
,
"Merge Requests"
,
class:
'control-label'
=
f
.
label
:merge_requests_enabled
,
"Merge Requests"
,
class:
'control-label'
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
=
f
.
label
:namespace_id
do
=
f
.
label
:namespace_id
do
%span
Namespace
%span
Namespace
.controls
.controls
.c
learfix
.c
ontrol-group
=
f
.
select
:namespace_id
,
namespaces_options
(
@project
.
namespace_id
),
{
prompt:
'Choose a project namespace'
},
{
class:
'chosen'
}
=
f
.
select
:namespace_id
,
namespaces_options
(
@project
.
namespace_id
),
{
prompt:
'Choose a project namespace'
},
{
class:
'chosen'
}
%ul
%ul
%li
Be careful. Changing project namespace can have unintended side effects
%li
Be careful. Changing project namespace can have unintended side effects
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
=
f
.
label
:path
do
=
f
.
label
:path
do
%span
Path
%span
Path
.controls
.controls
.c
learfix
.c
ontrol-group
=
f
.
text_field
:path
=
f
.
text_field
:path
%ul
%ul
%li
Be careful. Rename of project repo can have unintended side effects
%li
Be careful. Rename of project repo can have unintended side effects
...
...
app/views/projects/hooks/index.html.haml
View file @
2e0a3734
...
@@ -11,9 +11,9 @@
...
@@ -11,9 +11,9 @@
.alert.alert-error
.alert.alert-error
-
@hook
.
errors
.
full_messages
.
each
do
|
msg
|
-
@hook
.
errors
.
full_messages
.
each
do
|
msg
|
%p
=
msg
%p
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:url
,
"URL:"
=
f
.
label
:url
,
"URL:"
.
input
.
controls
=
f
.
text_field
:url
,
class:
"text_field xxlarge input-xpadding"
,
placeholder:
'http://example.com/trigger-ci.json'
=
f
.
text_field
:url
,
class:
"text_field xxlarge input-xpadding"
,
placeholder:
'http://example.com/trigger-ci.json'
=
f
.
submit
"Add Web Hook"
,
class:
"btn btn-create"
=
f
.
submit
"Add Web Hook"
,
class:
"btn btn-create"
...
...
app/views/projects/issues/_form.html.haml
View file @
2e0a3734
...
@@ -8,18 +8,18 @@
...
@@ -8,18 +8,18 @@
%br
%br
.ui-box.ui-box-show
.ui-box.ui-box-show
.ui-box-head
.ui-box-head
.c
learfix
.c
ontrol-group
=
f
.
label
:title
do
=
f
.
label
:title
do
%strong
=
"Subject *"
%strong
=
"Subject *"
.
input
.
controls
=
f
.
text_field
:title
,
maxlength:
255
,
class:
"xxlarge js-gfm-input"
,
autofocus:
true
,
required:
true
=
f
.
text_field
:title
,
maxlength:
255
,
class:
"
input-
xxlarge js-gfm-input"
,
autofocus:
true
,
required:
true
.ui-box-body
.ui-box-body
.c
learfix
.c
ontrol-group
.issue_assignee.pull-left
.issue_assignee.pull-left
=
f
.
label
:assignee_id
do
=
f
.
label
:assignee_id
do
%i
.icon-user
%i
.icon-user
Assign to
Assign to
.
input
.
controls
.pull-left
.pull-left
=
f
.
select
(
:assignee_id
,
@project
.
team
.
members
.
sort_by
(
&
:name
).
map
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
include_blank:
"Select a user"
},
{
class:
'chosen'
})
=
f
.
select
(
:assignee_id
,
@project
.
team
.
members
.
sort_by
(
&
:name
).
map
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
include_blank:
"Select a user"
},
{
class:
'chosen'
})
.pull-right
.pull-right
...
@@ -29,25 +29,25 @@
...
@@ -29,25 +29,25 @@
=
f
.
label
:milestone_id
do
=
f
.
label
:milestone_id
do
%i
.icon-time
%i
.icon-time
Milestone
Milestone
.
input
=
f
.
select
(
:milestone_id
,
@project
.
milestones
.
active
.
all
.
collect
{
|
p
|
[
p
.
title
,
p
.
id
]
},
{
include_blank:
"Select milestone"
},
{
class:
'chosen'
})
.
controls
=
f
.
select
(
:milestone_id
,
@project
.
milestones
.
active
.
all
.
collect
{
|
p
|
[
p
.
title
,
p
.
id
]
},
{
include_blank:
"Select milestone"
},
{
class:
'chosen'
})
.ui-box-bottom
.ui-box-bottom
.c
learfix
.c
ontrol-group
=
f
.
label
:label_list
do
=
f
.
label
:label_list
do
%i
.icon-tag
%i
.icon-tag
Labels
Labels
.
input
.
controls
=
f
.
text_field
:label_list
,
maxlength:
2000
,
class:
"xxlarge"
=
f
.
text_field
:label_list
,
maxlength:
2000
,
class:
"
input-
xxlarge"
%p
.hint
Separate labels with commas.
%p
.hint
Separate labels with commas.
.c
learfix
.c
ontrol-group
=
f
.
label
:description
,
"Details"
=
f
.
label
:description
,
"Details"
.
input
.
controls
=
f
.
text_area
:description
,
class:
"xxlarge js-gfm-input"
,
rows:
14
=
f
.
text_area
:description
,
class:
"
input-
xxlarge js-gfm-input"
,
rows:
14
%p
.hint
Issues are parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
%p
.hint
Issues are parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
.actions
.
form-
actions
-
if
@issue
.
new_record?
-
if
@issue
.
new_record?
=
f
.
submit
'Submit new issue'
,
class:
"btn btn-create"
=
f
.
submit
'Submit new issue'
,
class:
"btn btn-create"
-
else
-
else
...
...
app/views/projects/merge_requests/_form.html.haml
View file @
2e0a3734
...
@@ -31,21 +31,21 @@
...
@@ -31,21 +31,21 @@
%i
.icon-paper-clip
%i
.icon-paper-clip
Details
Details
.merge-request-form-info
.merge-request-form-info
.c
learfix
.c
ontrol-group
=
f
.
label
:title
do
=
f
.
label
:title
do
%strong
=
"Title *"
%strong
=
"Title *"
.
input
=
f
.
text_field
:title
,
class:
"input-xxlarge pad js-gfm-input"
,
maxlength:
255
,
rows:
5
,
required:
true
.
controls
=
f
.
text_field
:title
,
class:
"input-xxlarge pad js-gfm-input"
,
maxlength:
255
,
rows:
5
,
required:
true
.c
learfix
.c
ontrol-group
.left
.left
=
f
.
label
:assignee_id
do
=
f
.
label
:assignee_id
do
%i
.icon-user
%i
.icon-user
Assign to
Assign to
.
input
=
f
.
select
(
:assignee_id
,
@project
.
team
.
members
.
sort_by
(
&
:name
).
map
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
include_blank:
"Select user"
},
{
class:
'chosen span3'
})
.
controls
=
f
.
select
(
:assignee_id
,
@project
.
team
.
members
.
sort_by
(
&
:name
).
map
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
include_blank:
"Select user"
},
{
class:
'chosen span3'
})
.left
.left
=
f
.
label
:milestone_id
do
=
f
.
label
:milestone_id
do
%i
.icon-time
%i
.icon-time
Milestone
Milestone
.
input
=
f
.
select
(
:milestone_id
,
@project
.
milestones
.
active
.
all
.
map
{
|
p
|
[
p
.
title
,
p
.
id
]
},
{
include_blank:
"Select milestone"
},
{
class:
'chosen'
})
.
controls
=
f
.
select
(
:milestone_id
,
@project
.
milestones
.
active
.
all
.
map
{
|
p
|
[
p
.
title
,
p
.
id
]
},
{
include_blank:
"Select milestone"
},
{
class:
'chosen'
})
.form-actions
.form-actions
...
...
app/views/projects/milestones/_form.html.haml
View file @
2e0a3734
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
.span6
.span6
.control-group
.control-group
=
f
.
label
:due_date
,
"Due Date"
,
class:
"control-label"
=
f
.
label
:due_date
,
"Due Date"
,
class:
"control-label"
.
input
=
f
.
hidden_field
:due_date
.
controls
=
f
.
hidden_field
:due_date
.controls
.controls
.datepicker
.datepicker
...
...
app/views/projects/network/_head.html.haml
View file @
2e0a3734
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
.control-group
.control-group
=
label_tag
:search
,
"Looking for commit:"
,
class:
'control-label light'
=
label_tag
:search
,
"Looking for commit:"
,
class:
'control-label light'
.controls
.controls
=
text_field_tag
:q
,
@options
[
:q
],
placeholder:
"Input SHA"
,
class:
"search-input xlarge"
=
text_field_tag
:q
,
@options
[
:q
],
placeholder:
"Input SHA"
,
class:
"search-input
input-
xlarge"
=
button_tag
type:
'submit'
,
class:
'btn vtop'
do
=
button_tag
type:
'submit'
,
class:
'btn vtop'
do
%i
.icon-search
%i
.icon-search
-
@options
.
each
do
|
key
,
value
|
-
@options
.
each
do
|
key
,
value
|
...
...
app/views/projects/new.html.haml
View file @
2e0a3734
...
@@ -3,36 +3,36 @@
...
@@ -3,36 +3,36 @@
=
render
'projects/errors'
=
render
'projects/errors'
.project-edit-content
.project-edit-content
=
form_for
@project
,
remote:
true
do
|
f
|
=
form_for
@project
,
remote:
true
do
|
f
|
.c
learfix
.project_name_holder
.c
ontrol-group
.project_name_holder
=
f
.
label
:name
do
=
f
.
label
:name
do
Project name is
Project name is
.
input
.
controls
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"xxlarge"
,
tabindex:
1
,
autofocus:
true
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"
input-
xxlarge"
,
tabindex:
1
,
autofocus:
true
-
if
current_user
.
can_select_namespace?
-
if
current_user
.
can_select_namespace?
.c
learfix
.c
ontrol-group
=
f
.
label
:namespace_id
do
=
f
.
label
:namespace_id
do
%span
Namespace
%span
Namespace
.
input
.
controls
=
f
.
select
:namespace_id
,
namespaces_options
(
params
[
:namespace_id
]
||
:current_user
),
{},
{
class:
'chosen'
,
tabindex:
2
}
=
f
.
select
:namespace_id
,
namespaces_options
(
params
[
:namespace_id
]
||
:current_user
),
{},
{
class:
'chosen'
,
tabindex:
2
}
.c
learfix
.c
ontrol-group
.
input
.
controls
=
link_to
"#"
,
class:
'appear-link'
do
=
link_to
"#"
,
class:
'appear-link'
do
%i
.icon-upload-alt
%i
.icon-upload-alt
%span
Import existing repository?
%span
Import existing repository?
.c
learfix
.appear-data.import-url-data
.c
ontrol-group
.appear-data.import-url-data
=
f
.
label
:import_url
do
=
f
.
label
:import_url
do
%span
Import existing repo
%span
Import existing repo
.
input
.
controls
=
f
.
text_field
:import_url
,
class:
'xlarge'
,
placeholder:
'https://github.com/randx/six.git'
=
f
.
text_field
:import_url
,
class:
'xlarge'
,
placeholder:
'https://github.com/randx/six.git'
.light
.light
URL must be cloneable
URL must be cloneable
.c
learfix
.c
ontrol-group
=
f
.
label
:description
do
=
f
.
label
:description
do
Description
Description
%span
.light
(optional)
%span
.light
(optional)
.
input
.
controls
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
,
tabindex:
3
=
f
.
text_area
:description
,
placeholder:
"awesome project"
,
class:
"span5"
,
rows:
3
,
maxlength:
250
,
tabindex:
3
%p
.padded
%p
.padded
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
-
if
current_user
.
can_create_group?
-
if
current_user
.
can_create_group?
.pull-right
.pull-right
.
input
.light
.
controls
.light
Need a group for several dependent projects?
Need a group for several dependent projects?
=
link_to
new_group_path
,
class:
"btn btn-tiny"
do
=
link_to
new_group_path
,
class:
"btn btn-tiny"
do
Create a group
Create a group
...
...
app/views/projects/snippets/_form.html.haml
View file @
2e0a3734
...
@@ -9,16 +9,16 @@
...
@@ -9,16 +9,16 @@
-
@snippet
.
errors
.
full_messages
.
each
do
|
msg
|
-
@snippet
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:title
=
f
.
label
:title
.
input
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'input-xlarge'
,
required:
true
.
controls
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'input-xlarge'
,
required:
true
.c
learfix
.c
ontrol-group
=
f
.
label
"Lifetime"
=
f
.
label
"Lifetime"
.
input
=
f
.
select
:expires_at
,
lifetime_select_options
,
{},
{
class:
'chosen span2'
}
.
controls
=
f
.
select
:expires_at
,
lifetime_select_options
,
{},
{
class:
'chosen span2'
}
.c
learfix
.c
ontrol-group
.file-editor
.file-editor
=
f
.
label
:file_name
,
"File"
=
f
.
label
:file_name
,
"File"
.
input
.
controls
.file-holder.snippet
.file-holder.snippet
.file-title
.file-title
=
f
.
text_field
:file_name
,
placeholder:
"example.rb"
,
class:
'snippet-file-name'
,
required:
true
=
f
.
text_field
:file_name
,
placeholder:
"example.rb"
,
class:
'snippet-file-name'
,
required:
true
...
...
app/views/projects/team_members/_form.html.haml
View file @
2e0a3734
...
@@ -9,16 +9,16 @@
...
@@ -9,16 +9,16 @@
%li
=
msg
%li
=
msg
%h6
1. Choose people you want in the team
%h6
1. Choose people you want in the team
.c
learfix
.c
ontrol-group
=
f
.
label
:user_ids
,
"People"
=
f
.
label
:user_ids
,
"People"
.
input
.
controls
=
users_select_tag
(
:user_ids
,
multiple:
true
)
=
users_select_tag
(
:user_ids
,
multiple:
true
)
%h6
2. Set access level for them
%h6
2. Set access level for them
.c
learfix
.c
ontrol-group
=
f
.
label
:project_access
,
"Project Access"
=
f
.
label
:project_access
,
"Project Access"
.
input
=
select_tag
:project_access
,
options_for_select
(
Project
.
access_options
,
@user_project_relation
.
project_access
),
class:
"project-access-select chosen"
.
controls
=
select_tag
:project_access
,
options_for_select
(
Project
.
access_options
,
@user_project_relation
.
project_access
),
class:
"project-access-select chosen"
.actions
.
form-
actions
=
f
.
submit
'Add users'
,
class:
"btn btn-create"
=
f
.
submit
'Add users'
,
class:
"btn btn-create"
=
link_to
"Cancel"
,
project_team_index_path
(
@project
),
class:
"btn btn-cancel"
=
link_to
"Cancel"
,
project_team_index_path
(
@project
),
class:
"btn btn-cancel"
app/views/projects/team_members/import.html.haml
View file @
2e0a3734
...
@@ -6,9 +6,9 @@
...
@@ -6,9 +6,9 @@
=
form_tag
apply_import_project_team_members_path
(
@project
),
method:
'post'
do
=
form_tag
apply_import_project_team_members_path
(
@project
),
method:
'post'
do
.padded
.padded
=
label_tag
:source_project_id
,
"Project"
=
label_tag
:source_project_id
,
"Project"
.
input
=
select_tag
(
:source_project_id
,
options_from_collection_for_select
(
current_user
.
authorized_projects
,
:id
,
:name_with_namespace
),
prompt:
"Select project"
,
class:
"chosen xxlarge"
,
required:
true
)
.
controls
=
select_tag
(
:source_project_id
,
options_from_collection_for_select
(
current_user
.
authorized_projects
,
:id
,
:name_with_namespace
),
prompt:
"Select project"
,
class:
"chosen xxlarge"
,
required:
true
)
.actions
.
form-
actions
=
submit_tag
'Import project members'
,
class:
"btn btn-create"
=
submit_tag
'Import project members'
,
class:
"btn btn-create"
=
link_to
"Cancel"
,
project_team_index_path
(
@project
),
class:
"btn btn-cancel"
=
link_to
"Cancel"
,
project_team_index_path
(
@project
),
class:
"btn btn-cancel"
app/views/projects/wikis/_form.html.haml
View file @
2e0a3734
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
=
f
.
select
:format
,
options_for_select
(
GollumWiki
::
MARKUPS
,
{
selected:
@wiki
.
format
}),
{},
class:
"pull-right input-medium"
=
f
.
select
:format
,
options_for_select
(
GollumWiki
::
MARKUPS
,
{
selected:
@wiki
.
format
}),
{},
class:
"pull-right input-medium"
=
f
.
label
:format
,
class:
"pull-right"
,
style:
"padding-right: 20px;"
=
f
.
label
:format
,
class:
"pull-right"
,
style:
"padding-right: 20px;"
.ui-box-body
.ui-box-body
.
input
.
controls
%span
.cgray
%span
.cgray
Wiki content is parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
Wiki content is parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
To link to a (new) page you can just type
To link to a (new) page you can just type
...
@@ -24,11 +24,11 @@
...
@@ -24,11 +24,11 @@
.ui-box-bottom
.ui-box-bottom
=
f
.
label
:content
=
f
.
label
:content
.
input
=
f
.
text_area
:content
,
class:
'span8 js-gfm-input'
.
controls
=
f
.
text_area
:content
,
class:
'span8 js-gfm-input'
.ui-box-bottom
.ui-box-bottom
=
f
.
label
:commit_message
=
f
.
label
:commit_message
.
input
=
f
.
text_field
:message
,
class:
'span8'
.
controls
=
f
.
text_field
:message
,
class:
'span8'
.actions
.
form-
actions
-
if
@wiki
&&
@wiki
.
persisted?
-
if
@wiki
&&
@wiki
.
persisted?
=
f
.
submit
'Save changes'
,
class:
"btn-save btn"
=
f
.
submit
'Save changes'
,
class:
"btn-save btn"
=
link_to
"Cancel"
,
project_wiki_path
(
@project
,
@wiki
),
class:
"btn btn-cancel"
=
link_to
"Cancel"
,
project_wiki_path
(
@project
,
@wiki
),
class:
"btn btn-cancel"
...
...
app/views/public/projects/index.html.haml
View file @
2e0a3734
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
.pull-right
.pull-right
=
form_tag
public_projects_path
,
method: :get
,
class:
'form-inline'
do
|
f
|
=
form_tag
public_projects_path
,
method: :get
,
class:
'form-inline'
do
|
f
|
.search-holder
.search-holder
.
input
.
controls
=
search_field_tag
:search
,
params
[
:search
],
placeholder:
"gitlab-ci"
,
class:
"span3 search-text-input"
,
id:
"projects_search"
=
search_field_tag
:search
,
params
[
:search
],
placeholder:
"gitlab-ci"
,
class:
"span3 search-text-input"
,
id:
"projects_search"
=
submit_tag
'Search'
,
class:
"btn btn-primary wide"
=
submit_tag
'Search'
,
class:
"btn btn-primary wide"
...
...
app/views/search/show.html.haml
View file @
2e0a3734
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
.search-holder
.search-holder
=
label_tag
:search
do
=
label_tag
:search
do
%span
Looking for
%span
Looking for
.
input
.
controls
=
search_field_tag
:search
,
params
[
:search
],
placeholder:
"issue 143"
,
class:
"input-xxlarge search-text-input"
,
id:
"dashboard_search"
=
search_field_tag
:search
,
params
[
:search
],
placeholder:
"issue 143"
,
class:
"input-xxlarge search-text-input"
,
id:
"dashboard_search"
=
hidden_field_tag
:project_id
,
params
[
:project_id
]
=
hidden_field_tag
:project_id
,
params
[
:project_id
]
=
hidden_field_tag
:group_id
,
params
[
:group_id
]
=
hidden_field_tag
:group_id
,
params
[
:group_id
]
...
...
app/views/snippets/_form.html.haml
View file @
2e0a3734
...
@@ -9,16 +9,16 @@
...
@@ -9,16 +9,16 @@
-
@snippet
.
errors
.
full_messages
.
each
do
|
msg
|
-
@snippet
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%li
=
msg
.c
learfix
.c
ontrol-group
=
f
.
label
:title
=
f
.
label
:title
.
input
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'input-xlarge'
,
required:
true
.
controls
=
f
.
text_field
:title
,
placeholder:
"Example Snippet"
,
class:
'input-xlarge'
,
required:
true
.c
learfix
.c
ontrol-group
=
f
.
label
"Private?"
=
f
.
label
"Private?"
.
input
=
f
.
check_box
:private
,
{
class:
''
}
.
controls
=
f
.
check_box
:private
,
{
class:
''
}
.c
learfix
.c
ontrol-group
.file-editor
.file-editor
=
f
.
label
:file_name
,
"File"
=
f
.
label
:file_name
,
"File"
.
input
.
controls
.file-holder.snippet
.file-holder.snippet
.file-title
.file-title
=
f
.
text_field
:file_name
,
placeholder:
"example.rb"
,
class:
'snippet-file-name'
,
required:
true
=
f
.
text_field
:file_name
,
placeholder:
"example.rb"
,
class:
'snippet-file-name'
,
required:
true
...
...
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