Improve html & Jinja indentation.
This commit is contained in:
		
							parent
							
								
									b02374136f
								
							
						
					
					
						commit
						f4756d97e4
					
				
					 1 changed files with 37 additions and 37 deletions
				
			
		|  | @ -146,13 +146,13 @@ form | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| <body> | <body> | ||||||
|     {{header.make_header(session=session)}} | {{header.make_header(session=session)}} | ||||||
|     <div id="error_message_area"> | <div id="error_message_area"> | ||||||
|         {% for warning in warnings %} |     {% for warning in warnings %} | ||||||
|         <span class="search_warning">{{warning}}</span> |         <span class="search_warning">{{warning}}</span> | ||||||
|         {% endfor %} |     {% endfor %} | ||||||
|     </div> | </div> | ||||||
|     <div id="content_body"> | <div id="content_body"> | ||||||
|     <div id="left"> |     <div id="left"> | ||||||
|         {% for tagtype in ["musts", "mays", "forbids"] %} |         {% for tagtype in ["musts", "mays", "forbids"] %} | ||||||
|         <div id="search_builder_{{tagtype}}" {% if search_kwargs["tag_expression"]%}style="display:none"{%endif%}> |         <div id="search_builder_{{tagtype}}" {% if search_kwargs["tag_expression"]%}style="display:none"{%endif%}> | ||||||
|  | @ -160,13 +160,13 @@ form | ||||||
|             <ul class="search_builder_tagger"> |             <ul class="search_builder_tagger"> | ||||||
|                 {% set key="tag_" + tagtype %} |                 {% set key="tag_" + tagtype %} | ||||||
|                 {% if search_kwargs[key] %} |                 {% if search_kwargs[key] %} | ||||||
|                 {% for tagname in search_kwargs[key] %} |                     {% for tagname in search_kwargs[key] %} | ||||||
|                 <li class="search_builder_{{tagtype}}_inputted"> |                         <li class="search_builder_{{tagtype}}_inputted"> | ||||||
|                     <span class="tag_object">{{tagname}}</span>{{-''-}} |                             <span class="tag_object">{{tagname}}</span>{{-''-}} | ||||||
|                     <button class="remove_tag_button red_button" |                             <button class="remove_tag_button red_button" | ||||||
|                     onclick="remove_searchtag(this, '{{tagname}}', inputted_{{tagtype}});"></button> |                             onclick="remove_searchtag(this, '{{tagname}}', inputted_{{tagtype}});"></button> | ||||||
|                 </li> |                         </li> | ||||||
|                 {% endfor %} |                     {% endfor %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 <li><input id="search_builder_{{tagtype}}_input" type="text"></li> |                 <li><input id="search_builder_{{tagtype}}_input" type="text"></li> | ||||||
|             </ul> |             </ul> | ||||||
|  | @ -184,12 +184,12 @@ form | ||||||
|             <span>Order by</span> |             <span>Order by</span> | ||||||
|             <ul id="search_builder_orderby_ul"> |             <ul id="search_builder_orderby_ul"> | ||||||
|                 {% if "orderby" in search_kwargs and search_kwargs["orderby"] %} |                 {% if "orderby" in search_kwargs and search_kwargs["orderby"] %} | ||||||
|                 {% for orderby in search_kwargs["orderby"] %} |                     {% for orderby in search_kwargs["orderby"] %} | ||||||
|                     {% set column, sorter=orderby.split("-") %} |                         {% set column, sorter=orderby.split("-") %} | ||||||
|                     {{ create_orderby_li(selected_column=column, selected_sorter=sorter) }} |                         {{ create_orderby_li(selected_column=column, selected_sorter=sorter) }} | ||||||
|                 {% endfor %} |                     {% endfor %} | ||||||
|                 {% else %} |                 {% else %} | ||||||
|                 {{ create_orderby_li(selected_column=0, selected_sorter=0) }} |                     {{ create_orderby_li(selected_column=0, selected_sorter=0) }} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 <li id="search_builder_orderby_newrow"><button class="green_button" onclick="add_new_orderby()">+</button></li> |                 <li id="search_builder_orderby_newrow"><button class="green_button" onclick="add_new_orderby()">+</button></li> | ||||||
|             </ul> |             </ul> | ||||||
|  | @ -252,12 +252,12 @@ form | ||||||
|                     {% do limit_options.sort() %} |                     {% do limit_options.sort() %} | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|                 {% for limit_option in limit_options %} |                 {% for limit_option in limit_options %} | ||||||
|                 <option{{-' '-}} |                     <option{{-' '-}} | ||||||
|                 value="{{limit_option}}"{{-''-}} |                     value="{{limit_option}}"{{-''-}} | ||||||
|                 {{-" selected" if search_kwargs['limit'] == limit_option else ""-}} |                     {{-" selected" if search_kwargs['limit'] == limit_option else ""-}} | ||||||
|                 > |                     > | ||||||
|                 {{- limit_option }} items{{-''-}} |                     {{- limit_option }} items{{-''-}} | ||||||
|                 </option> |                     </option> | ||||||
|                 {% endfor %} |                 {% endfor %} | ||||||
|             </select> |             </select> | ||||||
|             <select name="has_tags" class="basic_param"> |             <select name="has_tags" class="basic_param"> | ||||||
|  | @ -275,14 +275,14 @@ form | ||||||
|         <span>Tags on this page (click to join query):</span> |         <span>Tags on this page (click to join query):</span> | ||||||
|         <ul> |         <ul> | ||||||
|             {% for tag in total_tags %} |             {% for tag in total_tags %} | ||||||
|             <li>{{-tag_object.tag_object( |                 <li>{{-tag_object.tag_object( | ||||||
|                 tag, |                     tag, | ||||||
|                 extra_classes="tags_on_this_page", |                     extra_classes="tags_on_this_page", | ||||||
|                 link='void', |                     link='void', | ||||||
|                 qualified_name=False, |                     qualified_name=False, | ||||||
|                 with_alt_qualified_name=True, |                     with_alt_qualified_name=True, | ||||||
|                 with_alt_description=True, |                     with_alt_description=True, | ||||||
|             )-}}</li> |                 )-}}</li> | ||||||
|             {% endfor %} |             {% endfor %} | ||||||
|         </ul> |         </ul> | ||||||
|         {% endif %} |         {% endif %} | ||||||
|  | @ -291,15 +291,15 @@ form | ||||||
|         <p>You got {{photos|length}} items</p> |         <p>You got {{photos|length}} items</p> | ||||||
|         {{prev_next_buttons()}} |         {{prev_next_buttons()}} | ||||||
|         <div id="search_results_holder"> |         <div id="search_results_holder"> | ||||||
|         {% for photo in photos %} |             {% for photo in photos %} | ||||||
|         {{photo_card.create_photo_card(photo, view=search_kwargs["view"])}} |                 {{photo_card.create_photo_card(photo, view=search_kwargs["view"])}} | ||||||
|         {% endfor %} |             {% endfor %} | ||||||
|         </div> |         </div> | ||||||
| 
 | 
 | ||||||
|         {{prev_next_buttons()}} |         {{prev_next_buttons()}} | ||||||
|     </div> |     </div> | ||||||
|     {{clipboard_tray.clipboard_tray()}} | </div> | ||||||
|     </div> | {{clipboard_tray.clipboard_tray()}} | ||||||
| </body> | </body> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue