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
3805797c
Commit
3805797c
authored
Jul 13, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scss: rename file_content to file-content etc
parent
399d0bdd
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
71 additions
and
71 deletions
+71
-71
app/assets/javascripts/admin.js.coffee
app/assets/javascripts/admin.js.coffee
+1
-1
app/assets/stylesheets/gitlab_bootstrap/files.scss
app/assets/stylesheets/gitlab_bootstrap/files.scss
+3
-3
app/assets/stylesheets/sections/snippets.scss
app/assets/stylesheets/sections/snippets.scss
+2
-2
app/views/admin/logs/show.html.haml
app/views/admin/logs/show.html.haml
+12
-12
app/views/help/api.html.haml
app/views/help/api.html.haml
+3
-3
app/views/help/raketasks.html.haml
app/views/help/raketasks.html.haml
+15
-15
app/views/projects/blame/show.html.haml
app/views/projects/blame/show.html.haml
+3
-3
app/views/projects/blob/_blob.html.haml
app/views/projects/blob/_blob.html.haml
+2
-2
app/views/projects/blob/_download.html.haml
app/views/projects/blob/_download.html.haml
+1
-1
app/views/projects/blob/_image.html.haml
app/views/projects/blob/_image.html.haml
+1
-1
app/views/projects/blob/_text.html.haml
app/views/projects/blob/_text.html.haml
+3
-3
app/views/projects/edit_tree/show.html.haml
app/views/projects/edit_tree/show.html.haml
+5
-5
app/views/projects/snippets/_blob.html.haml
app/views/projects/snippets/_blob.html.haml
+3
-3
app/views/projects/snippets/_form.html.haml
app/views/projects/snippets/_form.html.haml
+3
-3
app/views/projects/tree/_readme.html.haml
app/views/projects/tree/_readme.html.haml
+3
-3
app/views/projects/wikis/show.html.haml
app/views/projects/wikis/show.html.haml
+2
-2
app/views/search/_blob.html.haml
app/views/search/_blob.html.haml
+3
-3
app/views/snippets/_blob.html.haml
app/views/snippets/_blob.html.haml
+3
-3
app/views/snippets/_form.html.haml
app/views/snippets/_form.html.haml
+3
-3
No files found.
app/assets/javascripts/admin.js.coffee
View file @
3805797c
...
...
@@ -14,7 +14,7 @@ class Admin
$
(
'.log-bottom'
).
click
(
e
)
->
e
.
preventDefault
()
visible_log
=
$
(
".file
_
content:visible"
)
visible_log
=
$
(
".file
-
content:visible"
)
visible_log
.
animate
({
scrollTop
:
visible_log
.
find
(
'ol'
).
height
()
},
"fast"
)
modal
=
$
(
'.change-owner-holder'
)
...
...
app/assets/stylesheets/gitlab_bootstrap/files.scss
View file @
3805797c
...
...
@@ -2,12 +2,12 @@
* File content holder
*
*/
.file
_
holder
{
.file
-
holder
{
border
:
1px
solid
#BBB
;
margin-bottom
:
1em
;
@include
solid-shade
;
.file
_
title
{
.file
-
title
{
border-bottom
:
1px
solid
#bbb
;
@include
bg-dark-gray-gradient
;
margin
:
0
;
...
...
@@ -33,7 +33,7 @@
}
}
}
.file
_
content
{
.file
-
content
{
background
:
#fff
;
font-size
:
11px
;
...
...
app/assets/stylesheets/sections/snippets.scss
View file @
3805797c
.snippet.file
_
holder
{
.file
_
title
{
.snippet.file
-
holder
{
.file
-
title
{
.snippet-file-name
{
position
:
relative
;
top
:
-4px
;
...
...
app/views/admin/logs/show.html.haml
View file @
3805797c
...
...
@@ -11,57 +11,57 @@
%p
.light
To prevent performance issues admin logs output the last 2000 lines
.tab-content
.tab-pane.active
#githost
.file
_
holder
#README
.file
_
title
.file
-
holder
#README
.file
-
title
%i
.icon-file
githost.log
.pull-right
=
link_to
'#'
,
class:
'log-bottom'
do
%i
.icon-arrow-down
Scroll down
.file
_
content.logs
.file
-
content.logs
%ol
-
Gitlab
::
GitLogger
.
read_latest
.
each
do
|
line
|
%li
%p
=
line
.tab-pane
#application
.file
_
holder
#README
.file
_
title
.file
-
holder
#README
.file
-
title
%i
.icon-file
application.log
.pull-right
=
link_to
'#'
,
class:
'log-bottom'
do
%i
.icon-arrow-down
Scroll down
.file
_
content.logs
.file
-
content.logs
%ol
-
Gitlab
::
AppLogger
.
read_latest
.
each
do
|
line
|
%li
%p
=
line
.tab-pane
#production
.file
_
holder
#README
.file
_
title
.file
-
holder
#README
.file
-
title
%i
.icon-file
production.log
.pull-right
=
link_to
'#'
,
class:
'log-bottom'
do
%i
.icon-arrow-down
Scroll down
.file
_
content.logs
.file
-
content.logs
%ol
-
Gitlab
::
Logger
.
read_latest_for
(
'production.log'
).
each
do
|
line
|
%li
%p
=
line
.tab-pane
#sidekiq
.file
_
holder
#README
.file
_
title
.file
-
holder
#README
.file
-
title
%i
.icon-file
sidekiq.log
.pull-right
=
link_to
'#'
,
class:
'log-bottom'
do
%i
.icon-arrow-down
Scroll down
.file
_
content.logs
.file
-
content.logs
%ol
-
Gitlab
::
Logger
.
read_latest_for
(
'sidekiq.log'
).
each
do
|
line
|
%li
...
...
app/views/help/api.html.haml
View file @
3805797c
...
...
@@ -6,10 +6,10 @@
=
@category
.
titleize
%br
.file
_
holder
.file
_
title
.file
-
holder
.file
-
title
%i
.icon-file
=
@category
.file
_
content.wiki
.file
-
content.wiki
=
preserve
do
=
markdown
File
.
read
(
Rails
.
root
.
join
(
"doc"
,
"api"
,
"
#{
@category
}
.md"
))
app/views/help/raketasks.html.haml
View file @
3805797c
...
...
@@ -19,46 +19,46 @@
.tab-content
.tab-pane.active
#features
.file
_
holder
.file
_
title
.file
-
holder
.file
-
title
%i
.icon-file
Features
.file
_
content.wiki
.file
-
content.wiki
=
preserve
do
=
markdown
File
.
read
(
Rails
.
root
.
join
(
"doc"
,
"raketasks"
,
"features.md"
))
.tab-pane
#maintenance
.file
_
holder
.file
_
title
.file
-
holder
.file
-
title
%i
.icon-file
Maintenance
.file
_
content.wiki
.file
-
content.wiki
=
preserve
do
=
markdown
File
.
read
(
Rails
.
root
.
join
(
"doc"
,
"raketasks"
,
"maintenance.md"
))
.tab-pane
#user_management
.file
_
holder
.file
_
title
.file
-
holder
.file
-
title
%i
.icon-file
User Management
.file
_
content.wiki
.file
-
content.wiki
=
preserve
do
=
markdown
File
.
read
(
Rails
.
root
.
join
(
"doc"
,
"raketasks"
,
"user_management.md"
))
.tab-pane
#cleanup
.file
_
holder
.file
_
title
.file
-
holder
.file
-
title
%i
.icon-file
Cleanup
.file
_
content.wiki
.file
-
content.wiki
=
preserve
do
=
markdown
File
.
read
(
Rails
.
root
.
join
(
"doc"
,
"raketasks"
,
"cleanup.md"
))
.tab-pane
#backup_restore
.file
_
holder
.file
_
title
.file
-
holder
.file
-
title
%i
.icon-file
Backup
&
Restore
.file
_
content.wiki
.file
-
content.wiki
=
preserve
do
=
markdown
File
.
read
(
Rails
.
root
.
join
(
"doc"
,
"raketasks"
,
"backup_restore.md"
))
app/views/projects/blame/show.html.haml
View file @
3805797c
...
...
@@ -11,14 +11,14 @@
%li
=
link
.clear
.file
_
holder
.file
_
title
.file
-
holder
.file
-
title
%i
.icon-file
%span
.file_name
=
@blob
.
name
%small
=
number_to_human_size
@blob
.
size
%span
.options
=
render
"projects/blob/actions"
.file
_
content.blame
.file
-
content.blame
%table
-
current_line
=
1
-
@blame
.
each
do
|
commit
,
lines
|
...
...
app/views/projects/blob/_blob.html.haml
View file @
3805797c
...
...
@@ -17,8 +17,8 @@
=
link_to
title
,
'#'
%div
#tree-content-holder
.tree-content-holder
.file
_
holder
.file
_
title
.file
-
holder
.file
-
title
%i
.icon-file
%span
.file_name
=
blob
.
name
...
...
app/views/projects/blob/_download.html.haml
View file @
3805797c
.file
_
content.blob_file
.file
-
content.blob_file
%center
=
link_to
project_blob_path
(
@project
,
@id
)
do
%div
.padded
...
...
app/views/projects/blob/_image.html.haml
View file @
3805797c
.file
_
content.image_file
.file
-
content.image_file
%img
{
src:
"data:#{blob.mime_type};base64,#{Base64.encode64(blob.data)}"
}
app/views/projects/blob/_text.html.haml
View file @
3805797c
-
if
gitlab_markdown?
(
blob
.
name
)
.file
_
content.wiki
.file
-
content.wiki
=
preserve
do
=
markdown
(
blob
.
data
)
-
elsif
markup?
(
blob
.
name
)
.file
_
content.wiki
.file
-
content.wiki
=
raw
GitHub
::
Markup
.
render
(
blob
.
name
,
blob
.
data
)
-
else
.file
_
content.code
.file
-
content.code
-
unless
blob
.
empty?
%div
{
class:
user_color_scheme_class
}
=
raw
blob
.
colorize
(
formatter: :gitlab
)
...
...
app/views/projects/edit_tree/show.html.haml
View file @
3805797c
.file-editor
=
form_tag
(
project_edit_tree_path
(
@project
,
@id
),
method: :put
,
class:
"form-horizontal"
)
do
.file
_
holder
.file
_
title
.file
-
holder
.file
-
title
%i
.icon-file
%span
.file_name
=
@path
...
...
@@ -11,7 +11,7 @@
%span
.options
.btn-group.tree-btn-group
=
link_to
"Cancel"
,
project_blob_path
(
@project
,
@id
),
class:
"btn btn-tiny btn-cancel"
,
confirm:
leave_edit_message
.file
_
content.code
.file
-
content.code
%pre
#editor
=
@blob
.
data
.control-group.commit_message-group
...
...
@@ -21,7 +21,7 @@
=
text_area_tag
'commit_message'
,
''
,
placeholder:
"Update
#{
@blob
.
name
}
"
,
required:
true
,
rows:
3
.form-actions
=
hidden_field_tag
'last_commit'
,
@last_commit
=
hidden_field_tag
'content'
,
''
,
id: :file
_
content
=
hidden_field_tag
'content'
,
''
,
id: :file
-
content
.commit-button-annotation
=
button_tag
"Commit changes"
,
class:
'btn commit-btn js-commit-button btn-primary'
.message
...
...
@@ -40,6 +40,6 @@
disableButtonIfEmptyField
(
"
#commit_message
"
,
"
.js-commit-button
"
);
$
(
"
.js-commit-button
"
).
click
(
function
(){
$
(
"
#file
_
content
"
).
val
(
editor
.
getValue
());
$
(
"
#file
-
content
"
).
val
(
editor
.
getValue
());
$
(
"
.file-editor form
"
).
submit
();
});
app/views/projects/snippets/_blob.html.haml
View file @
3805797c
.file
_
holder
.file
_
title
.file
-
holder
.file
-
title
%i
.icon-file
%strong
=
@snippet
.
file_name
%span
.options
...
...
@@ -7,7 +7,7 @@
-
if
can?
(
current_user
,
:admin_project_snippet
,
@project
)
||
@snippet
.
author
==
current_user
=
link_to
"Edit"
,
edit_project_snippet_path
(
@project
,
@snippet
),
class:
"btn btn-tiny"
,
title:
'Edit Snippet'
=
link_to
"raw"
,
raw_project_snippet_path
(
@project
,
@snippet
),
class:
"btn btn-tiny"
,
target:
"_blank"
.file
_
content.code
.file
-
content.code
-
unless
@snippet
.
content
.
empty?
%div
{
class:
user_color_scheme_class
}
=
raw
@snippet
.
colorize
(
formatter: :gitlab
)
...
...
app/views/projects/snippets/_form.html.haml
View file @
3805797c
...
...
@@ -19,10 +19,10 @@
.file-editor
=
f
.
label
:file_name
,
"File"
.input
.file
_
holder.snippet
.file
_
title
.file
-
holder.snippet
.file
-
title
=
f
.
text_field
:file_name
,
placeholder:
"example.rb"
,
class:
'snippet-file-name'
,
required:
true
.file
_
content.code
.file
-
content.code
%pre
#editor
=
@snippet
.
content
=
f
.
hidden_field
:content
,
class:
'snippet-file-content'
...
...
app/views/projects/tree/_readme.html.haml
View file @
3805797c
.file
_
holder
#README
.file
_
title
.file
-
holder
#README
.file
-
title
%i
.icon-file
=
readme
.
name
.file
_
content.wiki
.file
-
content.wiki
-
if
gitlab_markdown?
(
readme
.
name
)
=
preserve
do
=
markdown
(
readme
.
data
)
...
...
app/views/projects/wikis/show.html.haml
View file @
3805797c
...
...
@@ -8,8 +8,8 @@
This is an old version of this page.
You can view the
#{
link_to
"most recent version"
,
project_wiki_path
(
@project
,
@wiki
)
}
or browse the
#{
link_to
"history"
,
history_project_wiki_path
(
@project
,
@wiki
)
}
.
.file
_
holder
.file
_
content.wiki
.file
-
holder
.file
-
content.wiki
=
preserve
do
=
render_wiki_content
(
@wiki
)
...
...
app/views/search/_blob.html.haml
View file @
3805797c
%li
.file
_
holder
.file
_
title
.file
-
holder
.file
-
title
=
link_to
project_blob_path
(
@project
,
tree_join
(
blob
.
ref
,
blob
.
filename
),
:anchor
=>
"L"
+
blob
.
startline
.
to_s
)
do
%i
.icon-file
%strong
=
blob
.
filename
.file
_
content.code.term
.file
-
content.code.term
%div
{
class:
user_color_scheme_class
}
=
raw
blob
.
colorize
(
formatter: :gitlab
,
options:
{
first_line_number:
blob
.
startline
}
)
app/views/snippets/_blob.html.haml
View file @
3805797c
.file
_
holder
.file
_
title
.file
-
holder
.file
-
title
%i
.icon-file
%strong
=
@snippet
.
file_name
%span
.options
...
...
@@ -8,7 +8,7 @@
=
link_to
"Edit"
,
edit_snippet_path
(
@snippet
),
class:
"btn btn-tiny"
,
title:
'Edit Snippet'
=
link_to
"Delete"
,
snippet_path
(
@snippet
),
method: :delete
,
confirm:
"Are you sure?"
,
class:
"btn btn-tiny"
,
title:
'Delete Snippet'
=
link_to
"Raw"
,
raw_snippet_path
(
@snippet
),
class:
"btn btn-tiny"
,
target:
"_blank"
.file
_
content.code
.file
-
content.code
-
unless
@snippet
.
content
.
empty?
%div
{
class:
user_color_scheme_class
}
=
raw
@snippet
.
colorize
(
formatter: :gitlab
)
...
...
app/views/snippets/_form.html.haml
View file @
3805797c
...
...
@@ -22,10 +22,10 @@
.file-editor
=
f
.
label
:file_name
,
"File"
.input
.file
_
holder.snippet
.file
_
title
.file
-
holder.snippet
.file
-
title
=
f
.
text_field
:file_name
,
placeholder:
"example.rb"
,
class:
'snippet-file-name'
,
required:
true
.file
_
content.code
.file
-
content.code
%pre
#editor
=
@snippet
.
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