From 6f00a89cfa04ffacbb524a20fc9ecabb3549130d Mon Sep 17 00:00:00 2001
From: daiao <358551898@qq.com>
Date: Thu, 23 Mar 2017 09:30:19 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E4=BF=AE=E6=94=B9-=E5=AE=BD?=
=?UTF-8?q?=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/common/_extend_file.html.erb | 18 +++++++++++++++
app/views/common/_file.html.erb | 2 +-
app/views/games/_extend_tree.html.erb | 22 +++++++++++++++++++
.../_myshixun_extend_repository.html.erb | 9 +++++---
app/views/games/_repository.html.erb | 6 +++++
public/stylesheets/css/taskstyle.css | 1 +
6 files changed, 54 insertions(+), 4 deletions(-)
create mode 100644 app/views/common/_extend_file.html.erb
create mode 100644 app/views/games/_extend_tree.html.erb
diff --git a/app/views/common/_extend_file.html.erb b/app/views/common/_extend_file.html.erb
new file mode 100644
index 000000000..2569a1fa5
--- /dev/null
+++ b/app/views/common/_extend_file.html.erb
@@ -0,0 +1,18 @@
+
<% if params[:action] == "entry" %>
- <%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content, :extend => true} %>
+ <%= render :partial => 'common/extend_file', :locals => {:filename => @path, :content => @content, :extend => true} %>
<% else %>
<% unless @entries.blank? %>
- <%= render :partial => 'tree', :locals => { :extend => true} %>
+ <%= render :partial => 'extend_tree', :locals => { :extend => true} %>
<% end %>
<% end %>
diff --git a/app/views/games/_repository.html.erb b/app/views/games/_repository.html.erb
index 9439e0529..2c60698d8 100644
--- a/app/views/games/_repository.html.erb
+++ b/app/views/games/_repository.html.erb
@@ -12,32 +12,38 @@
$(".content-half-fix02").css("height", web_h - 85 + "px");
$(".content-half-fix02").css("width", "86%");
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
+ $(".autoscroll_extend").css("height", web_h * 0.825 + "px");
}
else if($.browser.safari)
{
$(".content-half-fix02").css("height", web_h - 85 + "px");
$(".content-half-fix02").css("width", "86%");
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
+ $(".autoscroll_extend").css("height", web_h * 0.825 + "px");
}
else if($.browser.mozilla)
{
$(".content-half-fix02").css("height", web_h - 85 + "px");
$(".content-half-fix02").css("width", "86%");
$(".autoscroll_new").css("height", web_h * 0.595 + "px");
+ $(".autoscroll_extend").css("height", web_h * 0.825 + "px");
}
else if($.browser.opera) {
$(".content-half-fix02").css("height", web_h - 85 + "px");
$(".content-half-fix02").css("width", "86%");
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
+ $(".autoscroll_extend").css("height", web_h * 0.825 + "px");
}else if($.browser.chrome){
if(window.navigator.userAgent.indexOf("MetaSr") == -1){
$(".content-half-fix02").css("height", web_h - 85 + "px");
$(".content-half-fix02").css("width", "86%");
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
+ $(".autoscroll_extend").css("height", web_h * 0.835 + "px");
}else{
$(".content-half-fix02").css("height", web_h - 80 + "px");
$(".content-half-fix02").css("width", "85.7%");
$(".autoscroll_new").css("height", web_h * 0.58 + "px");
+ $(".autoscroll_extend").css("height", web_h * 0.825 + "px");
}
}
});
diff --git a/public/stylesheets/css/taskstyle.css b/public/stylesheets/css/taskstyle.css
index bcdf60494..259f364cf 100644
--- a/public/stylesheets/css/taskstyle.css
+++ b/public/stylesheets/css/taskstyle.css
@@ -169,3 +169,4 @@ input.knowledge_frame{height:30px;line-height:30px;border:none;background:#f3f5f
.content-half-fix02{margin:0; position: absolute; top:65px; z-index:99; right:45px;}
.autoscroll_new{ overflow:auto; }
+.autoscroll_extend{ overflow:auto; }