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
Kazuhiko Shiozaki
gitlab-ce
Commits
6a2c7d80
Commit
6a2c7d80
authored
Dec 01, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed image preview
parent
42ba6d04
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+2
-0
app/models/tree.rb
app/models/tree.rb
+1
-0
app/views/refs/tree.js.haml
app/views/refs/tree.js.haml
+2
-2
No files found.
app/assets/stylesheets/projects.css.scss
View file @
6a2c7d80
...
...
@@ -469,3 +469,5 @@ body.project-page table.no-borders td{
padding
:
40px
;
display
:none
;
}
#tree-content-holder
{
float
:left
;
width
:
100%
;
}
app/models/tree.rb
View file @
6a2c7d80
class
Tree
include
Utils
::
FileHelper
attr_accessor
:path
,
:tree
,
:project
,
:ref
delegate
:contents
,
...
...
app/views/refs/tree.js.haml
View file @
6a2c7d80
:plain
$("#tree-
holder table
").hide("slide", { direction: "left" }, 150, function(){
$("#tree-
content-holder
").hide("slide", { direction: "left" }, 150, function(){
$("#tree-holder").html("
#{
escape_javascript
(
render
(
:partial
=>
"tree"
,
:locals
=>
{
:repo
=>
@repo
,
:commit
=>
@commit
,
:tree
=>
@tree
}))
}
");
$("#tree-
holder table
").show("slide", { direction: "right" }, 150);
$("#tree-
content-holder
").show("slide", { direction: "right" }, 150);
});
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