From 52d642b51b920a79e6fcd70f6e3db0d0ecf9f0d1 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 24 Mar 2017 12:30:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/games_controller.rb | 1 + app/views/games/_tree.html.erb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 90906a0c4..6f2f62143 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -18,6 +18,7 @@ class GamesController < ApplicationController # mushixun的版本库必须创建时就创建 def show + @rev = @rev.nil? ? "master" : @rev @git_url = git_repository_url(@myshixun, "Myshixun") @entries = @repository.entries(@path, @rev) @latest_output = @game.latest_output.try(:out_put) diff --git a/app/views/games/_tree.html.erb b/app/views/games/_tree.html.erb index 7dbc00a37..145592b17 100644 --- a/app/views/games/_tree.html.erb +++ b/app/views/games/_tree.html.erb @@ -7,7 +7,6 @@ <% sub_path = entry.path[0] == "/" ? entry.path.sub("/", "") : entry.path %> <% ent_path = Redmine::CodesetUtil.replace_invalid_utf8(sub_path) %> <% ent_name = Redmine::CodesetUtil.replace_invalid_utf8(entry.name) %> - <%= link_to h(ent_name),