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
Boxiang Sun
gitlab-ce
Commits
beb324c1
Commit
beb324c1
authored
12 years ago
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed updir method. Fixed breadcrumbs for commits
parent
d8f7748d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
app/decorators/tree_decorator.rb
app/decorators/tree_decorator.rb
+4
-4
app/views/commits/show.html.haml
app/views/commits/show.html.haml
+2
-2
No files found.
app/decorators/tree_decorator.rb
View file @
beb324c1
...
...
@@ -6,7 +6,7 @@ class TreeDecorator < ApplicationDecorator
part_path
=
""
parts
=
path
.
split
(
"
\/
"
)
#parts = parts[0...-1] if is_blob?
#parts = parts[0...-1] if is_blob?
yield
(
h
.
link_to
(
".."
,
"#"
,
remote: :true
))
if
parts
.
count
>
max_links
...
...
@@ -21,7 +21,7 @@ class TreeDecorator < ApplicationDecorator
end
def
up_dir?
!!
path
path
.
present?
end
def
up_dir_path
...
...
@@ -36,8 +36,8 @@ class TreeDecorator < ApplicationDecorator
def
mb_size
size
=
(
tree
.
size
/
1024
)
if
size
<
1024
"
#{
size
}
KB"
else
"
#{
size
}
KB"
else
"
#{
size
/
1024
}
MB"
end
end
...
...
This diff is collapsed.
Click to expand it.
app/views/commits/show.html.haml
View file @
beb324c1
=
render
"head"
-
if
params
[
:path
]
-
if
@path
%ul
.breadcrumb
%li
%span
.arrow
...
...
@@ -9,7 +9,7 @@
%span
.divider
\/
%li
%a
{
href:
"#"
}=
params
[
:path
]
.
split
(
"/"
).
join
(
" / "
)
%a
{
href:
"#"
}=
@path
.
split
(
"/"
).
join
(
" / "
)
%div
{
id:
dom_id
(
@project
)}
#commits_list
=
render
"commits"
...
...
This diff is collapsed.
Click to expand it.
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