2017-03-21 09:17:35 +08:00
|
|
|
<div class=" col-width fl ml15 mt15 content-half-fix02 undis">
|
|
|
|
<div class="panel-header clearfix">
|
|
|
|
<h3 class="fl">测试输出</h3>
|
|
|
|
<div class="fr mt5">
|
|
|
|
<a href="#"><i class="fa fa-minus font-14 mr10 fl color-grey"></i></a>
|
|
|
|
<a href="javascript:void(0)" onclick="close_big_repository()"><i class="fa fa-compress font-14 fl color-grey"></i></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="content-history-inner">
|
|
|
|
Thor position=(32,4).Light position={32,4}<br/>
|
|
|
|
Engryg=74
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="content-editor col-width fl">
|
2017-03-14 14:56:08 +08:00
|
|
|
<div class="panel-header clearfix">
|
|
|
|
<h3 class="fl">
|
|
|
|
<%= render :partial => 'myshixun_breadcrumbs', :locals => {:path => @path, :kind => 'dir', :revision => @rev} %>
|
|
|
|
</h3>
|
|
|
|
<div class="fr mt5 ">
|
|
|
|
<% if params[:action] == "entry" %>
|
2017-03-21 08:56:00 +08:00
|
|
|
<a href="<%= file_edit_myshixun_game_path(@game, :myshixun_id => @myshixun, :path => params[:path]) %>" data-remote="true"><i class="fa fa-edit font-18 fl color-grey mr10"></i></a>
|
2017-03-14 14:56:08 +08:00
|
|
|
<% end %>
|
2017-03-21 09:58:46 +08:00
|
|
|
<a href="javascript:void(0)" onclick="extend_repository();"><i class="fa fa-expand font-18 fl color-grey"></i></a>
|
2017-03-14 14:56:08 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="content-editor-inner">
|
|
|
|
<% if params[:action] == "entry" %>
|
2017-03-21 08:56:00 +08:00
|
|
|
<div id="file_entry_content">
|
|
|
|
<%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %>
|
|
|
|
</div>
|
2017-03-13 17:39:27 +08:00
|
|
|
<% else %>
|
2017-03-14 14:56:08 +08:00
|
|
|
<% if !@entries.blank? %>
|
|
|
|
<%= render :partial => 'tree' %>
|
|
|
|
<% else %>
|
2017-03-20 14:35:40 +08:00
|
|
|
|
2017-03-14 14:56:08 +08:00
|
|
|
<% end %>
|
2017-03-13 17:39:27 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-14 14:56:08 +08:00
|
|
|
<div class="cl"></div>
|
2017-03-21 09:17:35 +08:00
|
|
|
<script>
|
|
|
|
var web_h = window.innerHeight;
|
|
|
|
$(document).ready(function(){
|
|
|
|
if($.browser.msie) {
|
|
|
|
$(".content-half-fix02").css("height", web_h - 85 + "px");
|
|
|
|
$(".content-half-fix02").css("width", "86%");
|
|
|
|
}
|
|
|
|
else if($.browser.safari)
|
|
|
|
{
|
|
|
|
$(".content-half-fix02").css("height", web_h - 85 + "px");
|
|
|
|
$(".content-half-fix02").css("width", "86%");
|
|
|
|
}
|
|
|
|
else if($.browser.mozilla)
|
|
|
|
{
|
|
|
|
$(".content-half-fix02").css("height", web_h - 85 + "px");
|
|
|
|
$(".content-half-fix02").css("width", "86%");
|
|
|
|
}
|
|
|
|
else if($.browser.opera) {
|
|
|
|
$(".content-half-fix02").css("height", web_h - 85 + "px");
|
|
|
|
$(".content-half-fix02").css("width", "86%");
|
|
|
|
}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%");
|
|
|
|
}else{
|
|
|
|
$(".content-half-fix02").css("height", web_h - 80 + "px");
|
|
|
|
$(".content-half-fix02").css("width", "85.7%");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
function close_big_repository(){
|
|
|
|
$(".content-half-fix02").hide()
|
|
|
|
}
|
|
|
|
function extend_repository(){
|
|
|
|
$(".content-half-fix02").show()
|
|
|
|
}
|
2017-03-21 09:17:56 +08:00
|
|
|
</script>
|