From 2b4e61c2bcd153a24bb7a8ef359347cd9d666ba2 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 21 Mar 2017 14:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/common/_file.html.erb | 2 +- app/views/games/_game_show.html.erb | 53 ++++++++++++++++++++++++++++ app/views/games/_repository.html.erb | 6 ++++ app/views/games/_tree.html.erb | 29 ++------------- 4 files changed, 62 insertions(+), 28 deletions(-) diff --git a/app/views/common/_file.html.erb b/app/views/common/_file.html.erb index 7aafff19a..4fc335b73 100644 --- a/app/views/common/_file.html.erb +++ b/app/views/common/_file.html.erb @@ -1,4 +1,4 @@ -
+
<% line_num = 1 %> diff --git a/app/views/games/_game_show.html.erb b/app/views/games/_game_show.html.erb index d9daf129a..fea530a17 100644 --- a/app/views/games/_game_show.html.erb +++ b/app/views/games/_game_show.html.erb @@ -45,3 +45,56 @@ <%= render :partial => 'exec_results' %> + \ No newline at end of file diff --git a/app/views/games/_repository.html.erb b/app/views/games/_repository.html.erb index 7c0d827ce..3d409f4d6 100644 --- a/app/views/games/_repository.html.erb +++ b/app/views/games/_repository.html.erb @@ -44,27 +44,33 @@ if($.browser.msie) { $(".content-half-fix02").css("height", web_h - 85 + "px"); $(".content-half-fix02").css("width", "86%"); + $(".autoscroll_new").css("height", web_h * 0.61 + "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"); } 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"); } 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"); }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"); }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"); } } }); diff --git a/app/views/games/_tree.html.erb b/app/views/games/_tree.html.erb index 15220f438..4c782ae8a 100644 --- a/app/views/games/_tree.html.erb +++ b/app/views/games/_tree.html.erb @@ -1,6 +1,6 @@
- + <% @entries.each do |entry| %> <% tr_id = Digest::MD5.hexdigest(entry.path) depth = params[:depth].to_i %> @@ -9,7 +9,7 @@ <% ent_name = Redmine::CodesetUtil.replace_invalid_utf8(entry.name) %> -
-