diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index 7aa51563e..89dc7e8ea 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -96,7 +96,7 @@ <% end -%> <% container.attachments.each do |file| %> "> - <%= link_to_attachment file, :download => true, :title => file.description, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %> + <%= link_to_attachment file, :download => true, :title => file.filename+"\n"+file.description, :style => "width: 230px; overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %> <%= format_time(file.created_on) %> <%= number_to_human_size(file.filesize) %> <%= file.downloads %> diff --git a/app/views/stores/index.html.erb b/app/views/stores/index.html.erb index d349d0aa8..a1e08d5b6 100644 --- a/app/views/stores/index.html.erb +++ b/app/views/stores/index.html.erb @@ -45,6 +45,7 @@ } .line_block table thead tr{ /*background-color: #d1d1d1;*/ + text-align: center; } .line_block table td{ height: 2em; @@ -59,13 +60,59 @@ /*.filename a:after { content: "..."; }*/ + .blueinputbar{ + -o-transform-origin: 138px 46.5px; + -o-transition: background 0.2s cubic-bezier(0, 0, 1, 1); + -webkit-border-bottom-left-radius: 3px; + -webkit-border-bottom-right-radius: 3px; + -webkit-border-radius: 3px; + -webkit-border-top-left-radius: 3px; + -webkit-border-top-right-radius: 3px; + -webkit-box-shadow: rgba(0, 0, 0, 0.047) 0px 1px 3px 0px inset, rgba(82, 168, 236, 0.600) 0px 0px 8px 0px; + -webkit-transform-origin: 138px 46.5px; + -webkit-transition: background 0.2s cubic-bezier(0, 0, 1, 1); + -webkit-transition-delay: 0; + -webkit-transition-duration: 0.2s; + -webkit-transition-property: background; + -webkit-transition-timing-function: cubic-bezier(0, 0, 1, 1); + align-content: stretch; + align-items: stretch; + align-self: stretch; + background: #FFFFFF; + border-bottom: 1px solid #56B4EF; + border-left: 1px solid #56B4EF; + border-radius: 3px; + border-right: 1px solid #56B4EF; + border-top: 1px solid #56B4EF; + color: #333333; + justify-content: flex-start; + margin: 0px; + order: 0; + outline: #333333 0px; + overflow-wrap: break-word; + resize: none; + text-shadow: none; + transform-origin: 138px 46.5px; + transition: background 0.2s cubic-bezier(0, 0, 1, 1); + unicode-bidi: embed; + vertical-align: top; + word-wrap: break-word; + } + input.blueinputbar:focus { + box-shadow: rgba(0, 0, 0, 0.047) 0px 1px 3px 0px inset, rgba(82, 168, 236, 0.600) 0px 0px 5px 0px; + border-bottom: 1px solid #56B4EF; + border-left: 1px solid #56B4EF; + border-radius: 3px; + border-right: 1px solid #56B4EF; + border-top: 1px solid #56B4EF; + } <% content_for :top_field do%> -
+
<%= form_tag( search_stores_path, method: 'get') do %> - <%= text_field_tag 'name', nil, size:"100", placeholder:'请输入要搜索的关键字' %> - <%= submit_tag l(:label_search), class:"whiteButton m3p10 h30"%> + <%= text_field_tag 'name', nil, size:"100", placeholder:'请输入要搜索的关键字', :class => 'blueinputbar' %> + <%= submit_tag l(:label_search), class:"whiteButton", style: "padding: 0px 10px;"%> <% end %>
<% end %> @@ -79,17 +126,17 @@ - - - + + + <% k.each do |c1|%> - - + + <% end %> diff --git a/app/views/stores/search.html.erb b/app/views/stores/search.html.erb index 13aefcbee..35fac9017 100644 --- a/app/views/stores/search.html.erb +++ b/app/views/stores/search.html.erb @@ -1,7 +1,116 @@ + <% content_for :top_field do%>
<%= form_tag( search_stores_path, method: 'get') do %> - <%= text_field_tag 'name', nil, size:"100", placeholder:'请输入要搜索的关键字', :value => params[:name] %> + <%= text_field_tag 'name', nil, size:"100", placeholder:'请输入要搜索的关键字', :value => params[:name] , :class => 'blueinputbar'%> <%= submit_tag l(:label_search), class:"whiteButton m3p10 h30"%> <% end %>
文件名下载次数下载<%=l(:label_attachment)%><%=l(:field_downloads)%><%=l(:button_download)%>
<%= link_to c1.filename, (attachFromUrl c1), {:title => c1.filename, :target => "_blank"} %> <%= c1.downloads %> <%= link_to_attachment c1, {:text => "下载"}%><%= c1.downloads %> <%= link_to_attachment c1, {:text => "下载"}%>