parent
81f54e44b4
commit
8edaa9d2bd
@ -1,7 +1,7 @@
|
|||||||
<%= form_tag( url_for(:controller => 'users',:action => 'resource_search',:id=>user.id),
|
<%= form_tag( url_for(:controller => 'users', :action => 'resource_search', :id => user.id),
|
||||||
:remote=>true ,:method => 'get',:class=>'resourcesSearchloadBox',:id=>'resource_search_form') do %>
|
:remote => true , :method => 'get', :class => 'resourcesSearchloadBox mt10', :id => 'resource_search_form') do %>
|
||||||
<input type="text" name="search" placeholder="输入资源关键词进行搜索" class="searchResource" />
|
<input type="text" name="search" placeholder="输入资源关键词进行搜索" class="searchResource" />
|
||||||
<%= hidden_field_tag(:type,type.nil? ? 1 : type) %>
|
<%= hidden_field_tag(:type,type.nil? ? 1 : type) %>
|
||||||
<%= submit_tag '',:class=>'homepageSearchIcon',:onfocus=>'this.blur();',:style=>'border-style:none' %>
|
<%= submit_tag '', :class => 'homepageSearchIcon', :onfocus => 'this.blur();', :style => 'border-style:none' %>
|
||||||
<!--<a href="javascript:void(0);" onclick='this.parent.submit();return false;' class="searchIcon"></a>-->
|
<!--<a href="javascript:void(0);" onclick='this.parent.submit();return false;' class="searchIcon"></a>-->
|
||||||
<% end %>
|
<% end %>
|
@ -1,27 +1,28 @@
|
|||||||
|
|
||||||
<% if attachments.nil? || attachments.empty? %>
|
<% if attachments.nil? || attachments.empty? %>
|
||||||
<!--<p class="nodata">-->
|
<!--<p class="nodata">-->
|
||||||
<!--<%#= l(:label_no_data) %>-->
|
<!--<%#= l(:label_no_data) %>-->
|
||||||
<!--</p>-->
|
<!--</p>-->
|
||||||
<% else %>
|
<% else %>
|
||||||
<% attachments.each do |attach| %>
|
<% attachments.each do |attach| %>
|
||||||
<ul class="resourcesList" onmouseover="if($('#contextMenu').css('display') != 'block')$(this).children().css('background-color', '#e1e1e1')" onmouseout=" if($('#contextMenu').css('display') == 'none')$(this).children().css('background-color', 'white')">
|
<ul class="resource-list" onmouseover="if($('#contextMenu').css('display') != 'block')$(this).children().css('background-color', '#e1e1e1')" onmouseout=" if($('#contextMenu').css('display') == 'none')$(this).children().css('background-color', 'white')">
|
||||||
<li class="resourcesListCheckbox fl">
|
<li class="resource-list-checkbox fl">
|
||||||
<input name="checkbox1[]" type="checkbox" data-has-history="<%= attach.attachment_histories.count == 0 ? 'N' : 'Y' %>" data-deleteble="<%= User.current.id ==attach.author_id ? 'Y' : 'N' %>" onclick="checkAllBox($(this));" value="<%= attach.id%>" class="resourcesCheckbox" />
|
<input name="checkbox1[]" type="checkbox" data-has-history="<%= attach.attachment_histories.count == 0 ? 'N' : 'Y' %>" data-deleteble="<%= User.current.id ==attach.author_id ? 'Y' : 'N' %>" onclick="checkAllBox($(this));" value="<%= attach.id%>" class="resourcesCheckbox" />
|
||||||
|
<!--<input name="checkbox2" type="checkbox" value="" class="resourcesCheckbox" />-->
|
||||||
</li>
|
</li>
|
||||||
<li class="resourcesListName fl">
|
<li class="resource-list-name fl hidden">
|
||||||
<!--<a href="javascript:void(0);" class="resourcesBlack"><%#=truncate(attach.filename,:length=>18)%></a>-->
|
<%= link_to truncate(attach.filename, :length => 30), download_named_attachment_path(attach.id, attach.filename), :title => attach.filename, :class => 'resourcesBlack' %>
|
||||||
<%= link_to truncate(attach.filename,:length=>30), download_named_attachment_path(attach.id, attach.filename),
|
|
||||||
:title => attach.filename,:class=>'resourcesBlack'%>
|
|
||||||
</li>
|
</li>
|
||||||
<li class="resourcesListSize fl"><%= number_to_human_size(attach.filesize) %></li>
|
<li class="resource-list-time fr"><%= format_date(attach.created_on) %></li>
|
||||||
<li class="resourcesListType fl"><%= get_resource_type(attach.container_type)%></li>
|
<li style="display: none"><%= attach.id %></li>
|
||||||
<li class="resourcesListUploader fl"><%=User.find(attach.author_id).realname.blank? ? User.find(attach.author_id).nickname : User.find(attach.author_id).realname %></li>
|
<li class="resource-list-uploader fr hidden"><%=User.find(attach.author_id).realname.blank? ? User.find(attach.author_id).nickname : User.find(attach.author_id).realname %></li>
|
||||||
<li style="display: none"><%= attach.author_id %></li>
|
<li style="display: none"><%= attach.author_id %></li>
|
||||||
<li class="resourcesListTime fl"><%= format_date(attach.created_on) %></li>
|
<li class="resource-list-type fr"><%= get_resource_type(attach.container_type)%></li>
|
||||||
|
<li style="display: none"><%= attach.id %></li>
|
||||||
|
<li class="resource-list-size fr"><%= number_to_human_size(attach.filesize) %></li>
|
||||||
|
<li style="display: none"><%= attach.id %></li>
|
||||||
|
<li class="resource-list-from fr hidden" title="<%= get_resource_origin(attach) %>"><%= get_resource_origin(attach) %></li>
|
||||||
<li style="display: none"><%= attach.id %></li>
|
<li style="display: none"><%= attach.id %></li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="resourcesListDashLine"></ul>
|
<div class="cl"></div>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
Reference in new issue