代码合理性整合

This commit is contained in:
huang 2017-07-19 15:13:12 +08:00
parent a8dee4247b
commit 4c73e71e5d
2 changed files with 1 additions and 2 deletions

View File

@ -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)

View File

@ -2,7 +2,7 @@
<li id="codetab_nav_1" class="blacktab_hover" onclick="HoverLi_new(1);">
<a href="javascript:void(0);" class="tab_type tab_color" >代码</a>
</li>
<% if @shixun.webssh %>
<% if @myshixun.shixun.try(:webssh) %>
<li id="codetab_nav_2">
<a href="javascript:void(0);" class="tab_type tab_color" >命令行</a>
</li>