Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-12-01 18:16:53 +0400
committergitlabhq <m@gitlabhq.com>2011-12-01 18:16:53 +0400
commit6a2c7d80cbfe33cca71c11339f3443d9c6a33069 (patch)
tree64decb201d5c037b8dd039b8cb53a51a0d7c45f6 /app
parent42ba6d04f84b722bc1212378633cd8c05a2c6ded (diff)
fixed image preview
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/projects.css.scss2
-rw-r--r--app/models/tree.rb1
-rw-r--r--app/views/refs/tree.js.haml4
3 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss
index 344190e6318..e93af8163d8 100644
--- a/app/assets/stylesheets/projects.css.scss
+++ b/app/assets/stylesheets/projects.css.scss
@@ -469,3 +469,5 @@ body.project-page table.no-borders td{
padding:40px;
display:none;
}
+
+#tree-content-holder { float:left; width:100%; }
diff --git a/app/models/tree.rb b/app/models/tree.rb
index 16b23a5e9d3..6b6b2d40a55 100644
--- a/app/models/tree.rb
+++ b/app/models/tree.rb
@@ -1,4 +1,5 @@
class Tree
+ include Utils::FileHelper
attr_accessor :path, :tree, :project, :ref
delegate :contents,
diff --git a/app/views/refs/tree.js.haml b/app/views/refs/tree.js.haml
index eb08adb1ddd..ef078caa7b2 100644
--- a/app/views/refs/tree.js.haml
+++ b/app/views/refs/tree.js.haml
@@ -1,5 +1,5 @@
: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);
});