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
46bebac9
Commit
46bebac9
authored
Nov 21, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit restyle
parent
3f35cccf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
39 deletions
+43
-39
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+0
-10
app/views/commits/_diff.html.haml
app/views/commits/_diff.html.haml
+2
-1
app/views/commits/_diff_head.html.haml
app/views/commits/_diff_head.html.haml
+28
-23
app/views/commits/show.html.haml
app/views/commits/show.html.haml
+13
-5
No files found.
app/assets/stylesheets/projects.css.scss
View file @
46bebac9
...
@@ -28,17 +28,7 @@
...
@@ -28,17 +28,7 @@
/** File stat **/
/** File stat **/
.file_stats
{
.file_stats
{
margin-bottom
:
10px
;
@include
round-borders-all
(
4px
);
span
{
span
{
border-top
:
1px
solid
#eaeaea
;
padding
:
5px
5px
;
display
:block
;
&
:first-child
{
border-top
:none
;
}
img
{
img
{
width
:
18px
;
width
:
18px
;
float
:left
;
float
:left
;
...
...
app/views/commits/_diff.html.haml
View file @
46bebac9
.file_stats
=
render
"commits/diff_head"
.file_stats
=
render
"commits/diff_head"
-
@commit
.
diffs
.
each
do
|
diff
|
-
@commit
.
diffs
.
each
do
|
diff
|
-
next
if
diff
.
diff
.
empty?
-
next
if
diff
.
diff
.
empty?
...
...
app/views/commits/_diff_head.html.haml
View file @
46bebac9
-
@commit
.
diffs
.
each
do
|
diff
|
%table
-
if
diff
.
deleted_file
%thead
%span
.removed_file
%th
Files
%a
{
:href
=>
"##{diff.a_path}"
}
-
@commit
.
diffs
.
each
do
|
diff
|
=
diff
.
a_path
%tr
=
image_tag
"blueprint_delete.png"
%td
-
elsif
diff
.
renamed_file
-
if
diff
.
deleted_file
%span
.moved_file
%span
.removed_file
%a
{
:href
=>
"##{diff.b_path}"
}
%a
{
:href
=>
"##{diff.a_path}"
}
=
diff
.
a_path
=
diff
.
a_path
=
"->"
=
image_tag
"blueprint_delete.png"
=
diff
.
b_path
-
elsif
diff
.
renamed_file
=
image_tag
"blueprint_notice.png"
%span
.moved_file
-
elsif
diff
.
new_file
%a
{
:href
=>
"##{diff.b_path}"
}
%span
.new_file
=
diff
.
a_path
%a
{
:href
=>
"##{diff.b_path}"
}
=
"->"
=
diff
.
b_path
=
diff
.
b_path
=
image_tag
"blueprint_add.png"
=
image_tag
"blueprint_notice.png"
-
else
-
elsif
diff
.
new_file
%span
.edit_file
%span
.new_file
%a
{
:href
=>
"##{diff.b_path}"
}
%a
{
:href
=>
"##{diff.b_path}"
}
=
diff
.
b_path
=
diff
.
b_path
=
image_tag
"blueprint_info.png"
=
image_tag
"blueprint_add.png"
-
else
%span
.edit_file
%a
{
:href
=>
"##{diff.b_path}"
}
=
diff
.
b_path
=
image_tag
"blueprint_info.png"
app/views/commits/show.html.haml
View file @
46bebac9
%h3
-
content_for
(
:body_class
,
"project-page commits-page"
)
=
"[
#{
@commit
.
author_name
}
]
#{
truncate
(
@commit
.
safe_message
,
:length
=>
70
)
}
"
-#%a.right.button{:href => "#"} Download
-#-if can? current_user, :admin_project, @project
%a.right.button.blue{:href => "#"} EDIT
%h2
.icon
%span
%d
=
"
#{
truncate
(
@commit
.
safe_message
,
:length
=>
50
)
}
"
.right
=
link_to
'Browse Code'
,
tree_project_ref_path
(
@project
,
@commit
.
id
),
:class
=>
"button"
-#= link_to 'Back', project_commits_path(@project), :class => "button"
-#= link_to 'Back', project_commits_path(@project), :class => "button"
%table
.round-borders
%table
.round-borders
%thead
%th
{
:colspan
=>
2
}
Details
%tr
%tr
%td
ID
%td
ID
%td
=
@commit
.
id
%td
=
@commit
.
id
...
@@ -16,9 +27,6 @@
...
@@ -16,9 +27,6 @@
%td
%td
%pre
.commit_message
%pre
.commit_message
=
preserve
@commit
.
safe_message
=
preserve
@commit
.
safe_message
%tr
%td
Tree
%td
=
link_to
'Browse Code'
,
tree_project_ref_path
(
@project
,
@commit
.
id
)
.clear
.clear
%br
%br
...
...
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