From 4c73e71e5dee68bbcd3e982595dbfd84bdf1e5e8 Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 19 Jul 2017 15:13:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=90=88=E7=90=86=E6=80=A7?= =?UTF-8?q?=E6=95=B4=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/games_controller.rb | 1 - app/views/games/_repository.html.erb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index aa66c1c6f..b53d6979e 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -101,7 +101,6 @@ class GamesController < ApplicationController # 代码预览 def entry # entry_and_raw(false) - @shixun = @myshixun.shixun file_content = @g.files(@myshixun.gpid, @path, @rev).content @content = Base64.urlsafe_decode64(file_content) unless file_content.blank? # @content = @repository.cat(@path, @rev) diff --git a/app/views/games/_repository.html.erb b/app/views/games/_repository.html.erb index 90c67d708..8e60e8224 100644 --- a/app/views/games/_repository.html.erb +++ b/app/views/games/_repository.html.erb @@ -2,7 +2,7 @@
  • 代码
  • - <% if @shixun.webssh %> + <% if @myshixun.shixun.try(:webssh) %>
  • 命令行