49 lines
2.0 KiB
Plaintext
49 lines
2.0 KiB
Plaintext
<div class="autoscroll_new">
|
|
<table class="list entries mt5" id="browser" style="table-layout: fixed;">
|
|
<tbody style="line-height: 1.9;">
|
|
<% @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 style="padding-left: <%=18 * depth%>px;" 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},
|
|
: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>
|
|
<script>
|
|
var web_h = window.innerHeight;
|
|
$(document).ready(function(){
|
|
if($.browser.msie) {
|
|
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
|
|
}
|
|
else if($.browser.safari)
|
|
{
|
|
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
|
|
}
|
|
else if($.browser.mozilla)
|
|
{
|
|
$(".autoscroll_new").css("height", web_h * 0.595 + "px");
|
|
}
|
|
else if($.browser.opera) {
|
|
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
|
|
}else if($.browser.chrome){
|
|
if(window.navigator.userAgent.indexOf("MetaSr") == -1){
|
|
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
|
|
}else{
|
|
$(".autoscroll_new").css("height", web_h * 0.58 + "px");
|
|
}
|
|
}
|
|
});
|
|
|
|
</script>
|