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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
34245ceb
Commit
34245ceb
authored
Jan 02, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix snippet form
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
a81002d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
19 deletions
+8
-19
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+0
-12
app/views/public/projects/index.html.haml
app/views/public/projects/index.html.haml
+3
-2
app/views/snippets/_form.html.haml
app/views/snippets/_form.html.haml
+5
-5
No files found.
app/assets/stylesheets/common.scss
View file @
34245ceb
...
@@ -119,18 +119,6 @@ p.time {
...
@@ -119,18 +119,6 @@ p.time {
margin
:
30px
3px
3px
2px
;
margin
:
30px
3px
3px
2px
;
}
}
.search-holder
{
label
,
input
{
height
:
30px
;
padding
:
0
;
font-size
:
14px
;
}
label
{
line-height
:
30px
;
color
:
#666
;
}
}
.highlight
{
.highlight
{
text-shadow
:
none
;
text-shadow
:
none
;
}
}
...
...
app/views/public/projects/index.html.haml
View file @
34245ceb
...
@@ -6,8 +6,9 @@
...
@@ -6,8 +6,9 @@
.clearfix
.clearfix
.pull-left
.pull-left
=
form_tag
public_projects_path
,
method: :get
,
class:
'form-inline form-tiny'
do
|
f
|
=
form_tag
public_projects_path
,
method: :get
,
class:
'form-inline form-tiny'
do
|
f
|
.search-holder
.form-group
=
search_field_tag
:search
,
params
[
:search
],
placeholder:
"Filter by name"
,
class:
"span4 search-text-input"
,
id:
"projects_search"
=
search_field_tag
:search
,
params
[
:search
],
placeholder:
"Filter by name"
,
class:
"form-control search-text-input"
,
id:
"projects_search"
.form-group
=
submit_tag
'Search'
,
class:
"btn btn-primary wide"
=
submit_tag
'Search'
,
class:
"btn btn-primary wide"
.pull-right
.pull-right
...
...
app/views/snippets/_form.html.haml
View file @
34245ceb
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
=
@snippet
.
new_record?
?
"New Snippet"
:
"Edit Snippet #
#{
@snippet
.
id
}
"
=
@snippet
.
new_record?
?
"New Snippet"
:
"Edit Snippet #
#{
@snippet
.
id
}
"
%hr
%hr
.snippet-form-holder
.snippet-form-holder
=
form_for
@snippet
,
as: :personal_snippet
,
url:
url
do
|
f
|
=
form_for
@snippet
,
as: :personal_snippet
,
url:
url
,
html:
{
class:
"form-horizontal snippet-form"
}
do
|
f
|
-
if
@snippet
.
errors
.
any?
-
if
@snippet
.
errors
.
any?
.alert.alert-danger
.alert.alert-danger
%ul
%ul
...
@@ -10,10 +10,10 @@
...
@@ -10,10 +10,10 @@
%li
=
msg
%li
=
msg
.form-group
.form-group
=
f
.
label
:title
=
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
,
placeholder:
"Example Snippet"
,
class:
'form-control'
,
required:
true
.form-group
.form-group
=
f
.
label
"Access"
=
f
.
label
"Access"
,
class:
'control-label'
.col-sm-10
.col-sm-10
=
f
.
label
:private_true
,
class:
'radio-label'
do
=
f
.
label
:private_true
,
class:
'radio-label'
do
=
f
.
radio_button
:private
,
true
=
f
.
radio_button
:private
,
true
...
@@ -29,11 +29,11 @@
...
@@ -29,11 +29,11 @@
.form-group
.form-group
.file-editor
.file-editor
=
f
.
label
:file_name
,
"File"
=
f
.
label
:file_name
,
"File"
,
class:
'control-label'
.col-sm-10
.col-sm-10
.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:
'
form-control
snippet-file-name'
,
required:
true
.file-content.code
.file-content.code
%pre
#editor
=
@snippet
.
content
%pre
#editor
=
@snippet
.
content
=
f
.
hidden_field
:content
,
class:
'snippet-file-content'
=
f
.
hidden_field
:content
,
class:
'snippet-file-content'
...
...
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