DJFacet / demoproject / apps / djfacet / templates / djfacet / components / control_bar.html

{% load djf_tags %}

<!-- result type starts -->
<div class="line resultType">
    <ul class="inline">
	
	
		<li>Searching for:&nbsp;&nbsp;<b class="activeResType">{{result_typeObj.label|capfirst}}</b>
			{% for test_result_type in result_types %}
				{% ifnotequal test_result_type.uniquename  result_typeObj.uniquename %}				
					 &nbsp;|&nbsp;				
				<a href="?resulttype={{test_result_type.uniquename}}{{newurl_stub}}" id="{{test_result_type.uniquename}}" title="Change the search perspective so to focus on {{test_result_type.label|capfirst}}" >{{test_result_type.label|capfirst}}</a>&nbsp;

				{% endifnotequal %}

			{% endfor %}
			
			&nbsp;&nbsp;(<a title="Changing the main type of object being searched for will update the available search filters. With DjFacet you can perform searches on multiple result-types, in a way that reflects your application data model.">?</a>)
		</li>
		
		
		{% if query_filtersBuffer %}
		
		<!-- CASE 2 :: SINGLE_FACET PAGE IN THE MIDDLE OF A SEARCH  -->
			{# &nbsp;&nbsp;&nbsp;&nbsp; #}
			{# <br /> #}
			
		    <li>Current filter{{ query_filtersBuffer|pluralize }}:

				{% for facetValue in  query_filtersBuffer %}

					<span class="activeFilter">
						{% if facetValue.father %}
							<a title="Select the parent filter" href="?resulttype={{result_typeObj.uniquename}}&amp;filter={{facetValue.father}}
								{% for fv in query_filtersBuffer %}
									{% ifnotequal fv.id  facetValue.id  %}
										&amp;filter={{fv.id}}
									{% endifnotequal %}
								{% endfor %}"		
							class="fatherfacet">{{facetValue|extract_father}}</a> &gt;&gt;
						{% endif %}
						<b>{{facetValue.displayname}}</b> ({{facetValue.facet.name}})</span>&nbsp;
						<a id="remove_button" title="Remove this filter" href="?resulttype={{result_typeObj.uniquename}}
							{% for fv in query_filtersBuffer %}
								{% ifnotequal fv.id  facetValue.id  %}
									&amp;filter={{fv.id}}
								{% endifnotequal %}
							{% endfor %}">[remove]</a>
					{% if not forloop.last %}
						<br />
						 &amp;&amp;  
					{% endif %}

				{% endfor %}
							
			</li>
		                                   
			
		{% endif  %}


	    </ul>       
	</div><!-- result type ends -->
	
	
	
	{# PREVIOUS VERSION #}
				
				
		{# {% if not djfacet_splashpage %} #}
		{# {% if djfacet_singlefacet %} #}
		{#  #}
		{# 	{% if not query_filtersBuffer %} #}
		{# 		<!-- CASE 1 :: IT'S THE SINGLE_FACET PAGE WITH NO ARGS  --> #}
		{# 	 #}
		{# 		<br /><br />	 #}
		{# 		<li>Select one of the options below or <a href="{{url_prefix}}?resulttype={{result_typeObj.uniquename}}&amp;ordering={{ordering}}{{newurl_stub}}">go back</a></li> #}
		{#  #}
		{# 	{% else %} #}
		{#  #}
		{# 		<!-- CASE 2 :: SINGLE_FACET PAGE IN THE MIDDLE OF A SEARCH  --> #}
		{# 			&nbsp;&nbsp;&nbsp;&nbsp; #}
		{# 		    <li>Current filter{{ query_filtersBuffer|pluralize }}: #}
		{#  #}
		{# 				{% for facetValue in  query_filtersBuffer %} #}
		{#  #}
		{# 					<span class="activeFilter"><b>{{facetValue.displayname}}</b> ({{facetValue.facet.name}})</span>&nbsp; #}
		{# 					{% if not forloop.last %} #}
		{# 						 &amp;&amp;   #}
		{# 					{% endif %} #}
		{#  #}
		{# 				{% endfor %} #}
		{# 							 #}
		{# 			</li> #}
		{# 		                                     #}
		{# 			 <br /><br /> #}
		{# 			<li>Add another filter by selecting one of the options below or <a href="{{url_prefix}}?resulttype={{result_typeObj.uniquename}}&amp;ordering={{ordering}}{{newurl_stub}}">go back</a>.</li>			                                       #}
		{#  #}
		{#  #}
		{# 	{% endif  %}		 #}
		{#  #}
		{# {% endif  %}	 #}	
		
	



        
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.