保存修改-宽版
This commit is contained in:
parent
57a6b4d322
commit
6f00a89cfa
|
@ -0,0 +1,18 @@
|
|||
<div class="autoscroll_extend">
|
||||
<table class="filecontent syntaxhl mt5" style="width:100%">
|
||||
<tbody>
|
||||
<% line_num = 1 %>
|
||||
<% syntax_highlight_lines(filename, Redmine::CodesetUtil.to_utf8_by_setting(content)).each do |line| %>
|
||||
<tr>
|
||||
<th class="line-num" id="L<%= line_num %>" style="vertical-align: top;">
|
||||
<a href="#L<%= line_num %>" style="padding-top: 0px;"><%= line_num %></a>
|
||||
</th>
|
||||
<td class="line-code">
|
||||
<pre style="width:auto;overflow: auto; "><%= line.html_safe %></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<% line_num += 1 %>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
|
@ -15,4 +15,4 @@
|
|||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,22 @@
|
|||
<div class="autoscroll_extend" style="line-height: 1.9;">
|
||||
<table class="list entries" id="browser" style="table-layout: fixed;">
|
||||
<tbody>
|
||||
<% @entries.each do |entry| %>
|
||||
<% tr_id = Digest::MD5.hexdigest(entry.path)
|
||||
depth = params[:depth].to_i %>
|
||||
<% 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) %>
|
||||
|
||||
<tr id="<%= tr_id %>" class="<%= h params[:parent_id] %> entry <%= entry.kind %>">
|
||||
<td class="filename_no_report hidden">
|
||||
<%= link_to h(ent_name),
|
||||
{:action => (entry.is_dir? ? 'show' : 'entry'), :id => @game, :myshixun_id => @myshixun, :path => to_path_param(ent_path), :rev => @rev, :extend => extend },
|
||||
:remote => true,
|
||||
:class => (entry.is_dir? ? 'old-icon old-icon-folder' : "old-icon old-icon-file #{Redmine::MimeType.css_class_of(ent_name)}")%>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
|
@ -1,18 +1,21 @@
|
|||
<div class="panel-header clearfix" style="border: none">
|
||||
<h3 class="fl"><%= render :partial => 'myshixun_breadcrumbs', :locals => {:path => @path, :kind => 'dir', :revision => @rev} %></h3>
|
||||
<div class="fr mt5">
|
||||
<a href="#"><i class="fa fa-minus font-14 mr10 fl color-grey"></i></a>
|
||||
<% if params[:action] == "entry" %>
|
||||
<a href="javascript:void(0)" class="fl task-btn mb10 mr10" style="display: none" id="sava_edit_btn" onclick="file_edit_submit()">保存修改</a>
|
||||
<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>
|
||||
<% end %>
|
||||
<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-extend">
|
||||
<% if params[:action] == "entry" %>
|
||||
<div id="file_entry_content_inner">
|
||||
<%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content, :extend => true} %>
|
||||
<%= render :partial => 'common/extend_file', :locals => {:filename => @path, :content => @content, :extend => true} %>
|
||||
</div>
|
||||
<% else %>
|
||||
<% unless @entries.blank? %>
|
||||
<%= render :partial => 'tree', :locals => { :extend => true} %>
|
||||
<%= render :partial => 'extend_tree', :locals => { :extend => true} %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
@ -12,32 +12,38 @@
|
|||
$(".content-half-fix02").css("height", web_h - 85 + "px");
|
||||
$(".content-half-fix02").css("width", "86%");
|
||||
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
|
||||
$(".autoscroll_extend").css("height", web_h * 0.825 + "px");
|
||||
}
|
||||
else if($.browser.safari)
|
||||
{
|
||||
$(".content-half-fix02").css("height", web_h - 85 + "px");
|
||||
$(".content-half-fix02").css("width", "86%");
|
||||
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
|
||||
$(".autoscroll_extend").css("height", web_h * 0.825 + "px");
|
||||
}
|
||||
else if($.browser.mozilla)
|
||||
{
|
||||
$(".content-half-fix02").css("height", web_h - 85 + "px");
|
||||
$(".content-half-fix02").css("width", "86%");
|
||||
$(".autoscroll_new").css("height", web_h * 0.595 + "px");
|
||||
$(".autoscroll_extend").css("height", web_h * 0.825 + "px");
|
||||
}
|
||||
else if($.browser.opera) {
|
||||
$(".content-half-fix02").css("height", web_h - 85 + "px");
|
||||
$(".content-half-fix02").css("width", "86%");
|
||||
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
|
||||
$(".autoscroll_extend").css("height", web_h * 0.825 + "px");
|
||||
}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%");
|
||||
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
|
||||
$(".autoscroll_extend").css("height", web_h * 0.835 + "px");
|
||||
}else{
|
||||
$(".content-half-fix02").css("height", web_h - 80 + "px");
|
||||
$(".content-half-fix02").css("width", "85.7%");
|
||||
$(".autoscroll_new").css("height", web_h * 0.58 + "px");
|
||||
$(".autoscroll_extend").css("height", web_h * 0.825 + "px");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -169,3 +169,4 @@ input.knowledge_frame{height:30px;line-height:30px;border:none;background:#f3f5f
|
|||
.content-half-fix02{margin:0; position: absolute; top:65px; z-index:99; right:45px;}
|
||||
|
||||
.autoscroll_new{ overflow:auto; }
|
||||
.autoscroll_extend{ overflow:auto; }
|
||||
|
|
Loading…
Reference in New Issue