mirror of https://github.com/apache/lucene.git
Add templates to the plugin
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@579879 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d2ba024634
commit
8b242f76ee
|
@ -0,0 +1,11 @@
|
|||
<ul class="cookies">
|
||||
<%
|
||||
@values.each do |value|
|
||||
if value[1] > 0
|
||||
-%>
|
||||
<li class="cookie"><span class="informal"> </span><%=value[0]%><span class="informal"> (<%=value[1]%>)<br/></span></li>
|
||||
<%
|
||||
end
|
||||
end
|
||||
-%>
|
||||
</ul>
|
|
@ -0,0 +1,42 @@
|
|||
<div id="variables">
|
||||
<div class="clear">
|
||||
<%=link_to '[clear constraints]', :action => 'clear'%>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
Queries:
|
||||
<div id="queries">
|
||||
<% @flare.queries.each_with_index do |q,i| %>
|
||||
<%=link_to q[:negative] ? "-" : '+', :action => :invert_query, :index => i%>
|
||||
<span id="query_<%=i%>"><%=q[:query]%></span>
|
||||
<%= in_place_editor "query_#{i}", :url=> url_for(:action=>"update_query", :index=>i) %>
|
||||
<%=link_to image_tag("x-close.gif"), :action => :remove_query, :index => i %><br/>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
Filters:
|
||||
<div id="filters">
|
||||
<% @flare.filters.each_with_index do |filter, i| %>
|
||||
<%=link_to filter[:negative] ? "-" : "+", :action => :invert_filter, :index => i%>
|
||||
<%=filter[:field]%>:<%=filter[:value]%>
|
||||
<%=link_to image_tag("x-close.gif"), :action => :remove_filter, :index => i %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clear">
|
||||
<%=link_to '[clear constraints]', :action => 'clear'%>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<h1><%=params[:field]%></h1>
|
||||
<% @facets.each do |f| %>
|
||||
<% if f.name %>
|
||||
<%= link_to f.name, :action => 'add_filter', :field => params[:field], :value => f.name %> (<%=f.value%>)
|
||||
<% else %>
|
||||
<%= link_to '---- NO VALUE ----', :action => 'add_filter', :field => params[:field], :value => "[* TO *]", :negative => true %> (<%=f.value%>)
|
||||
<% end %>
|
||||
<% end%>
|
Loading…
Reference in New Issue