修复版本库显示问题
This commit is contained in:
parent
5bcc22a8cf
commit
4ce4ef7252
|
|
@ -39,7 +39,7 @@ class GamesController < ApplicationController
|
|||
@content = Base64.decode64(file_content) unless file_content.blank?
|
||||
end
|
||||
if @content.nil? || @type == "root"
|
||||
@path = @type == "root" ? "" : @path
|
||||
@path = ""
|
||||
@entries = @repository.entries(@path, @rev)
|
||||
end
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ class GamesController < ApplicationController
|
|||
# @had_done 1 已通关
|
||||
(@myshixun.games.count == @game_challenge.position && @game.status ==2) ? @had_done = 1 : @had_done = 0
|
||||
# 异常结果
|
||||
@latest_output = @error_position.try(out_put)
|
||||
@latest_output = error_position.try(:out_put)
|
||||
# @latest_output = @game.latest_output.try(:expect_output)
|
||||
respond_to do |format|
|
||||
format.html
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<div class="-layout-v -fit">
|
||||
<div class="-flex -scroll">
|
||||
<div class="content-editor-inner">
|
||||
<% if @content.nil? || @type != "root" %>
|
||||
<% if !@content.nil? && @type != "root" %>
|
||||
<div id="file_entry_content">
|
||||
<%= render :partial => 'games/file_edit_form', :locals => {:filename => @path, :content => @content} %>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue