Use (+) (x) links on /tags page, link main tag object to info.
This commit is contained in:
		
							parent
							
								
									270dcadf4e
								
							
						
					
					
						commit
						97bb9da8a6
					
				
					 1 changed files with 22 additions and 19 deletions
				
			
		|  | @ -147,16 +147,17 @@ h2, h3 | ||||||
|             <ul id="parent_list"> |             <ul id="parent_list"> | ||||||
|             {% for ancestor in specific_tag.get_parents() %} |             {% for ancestor in specific_tag.get_parents() %} | ||||||
|             <li> |             <li> | ||||||
|                 {{tag_object.tag_object(ancestor, innertext='(?)', link='info')}} |                 {{tag_object.tag_object(ancestor, link="search_musts", innertext="(+)")}} | ||||||
|                 {{tag_object.tag_object(ancestor, innertext=ancestor.name, link=none, with_alt_description=True)}} | 
 | ||||||
|  |                 {{tag_object.tag_object(ancestor, link="search_forbids", innertext="(x)")}} | ||||||
|  | 
 | ||||||
|  |                 {{tag_object.tag_object(ancestor, link="info", innertext=ancestor.name, with_alt_description=True)}} | ||||||
|             </li> |             </li> | ||||||
|             {% endfor %} |             {% endfor %} | ||||||
|             </ul> |             </ul> | ||||||
|         </div> |         </div> | ||||||
|         {% endif %} |         {% endif %} <!-- if parents --> | ||||||
| 
 |         {% endif %} <!-- if specific tag --> | ||||||
|         {% else %} |  | ||||||
|         {% endif %} |  | ||||||
| 
 | 
 | ||||||
|         {% if tags or not specific_tag %} |         {% if tags or not specific_tag %} | ||||||
|         <div id="hierarchy_tags"> |         <div id="hierarchy_tags"> | ||||||
|  | @ -167,10 +168,13 @@ h2, h3 | ||||||
|             {% endif %} |             {% endif %} | ||||||
|             <ul id="tag_list"> |             <ul id="tag_list"> | ||||||
|             {% for (qualified_name, tag) in tags %} |             {% for (qualified_name, tag) in tags %} | ||||||
|                 {% if "." in qualified_name %} |  | ||||||
|                 <li> |                 <li> | ||||||
|                     {{tag_object.tag_object(tag, link='info', innertext='(?)')}} |                     {{tag_object.tag_object(tag, link="search_musts", innertext="(+)")}} | ||||||
|                     {{tag_object.tag_object(tag, link='search', innertext=qualified_name, with_alt_description=True)-}} | 
 | ||||||
|  |                     {{tag_object.tag_object(tag, link="search_forbids", innertext="(x)")}} | ||||||
|  | 
 | ||||||
|  |                     {{tag_object.tag_object(tag, link="info", innertext=qualified_name, with_alt_description=True)}} | ||||||
|  |                     {%- if "." in qualified_name -%} | ||||||
|                     <button |                     <button | ||||||
|                     class="remove_tag_button red_button button_with_confirm" |                     class="remove_tag_button red_button button_with_confirm" | ||||||
|                     data-onclick="return api.tags.remove_child('{{qualified_name.split('.')[-2]}}', '{{tag.name}}', tag_action_callback);" |                     data-onclick="return api.tags.remove_child('{{qualified_name.split('.')[-2]}}', '{{tag.name}}', tag_action_callback);" | ||||||
|  | @ -181,11 +185,7 @@ h2, h3 | ||||||
|                     > |                     > | ||||||
|                     Unlink |                     Unlink | ||||||
|                     </button> |                     </button> | ||||||
|                 </li> |                     {%- else -%} | ||||||
|                 {% else %} |  | ||||||
|                 <li> |  | ||||||
|                     {{tag_object.tag_object(tag, link='info', innertext='(?)')}} |  | ||||||
|                     {{tag_object.tag_object(tag, link='search', innertext=qualified_name, with_alt_description=True)-}} |  | ||||||
|                     <button |                     <button | ||||||
|                     class="remove_tag_button red_button button_with_confirm" |                     class="remove_tag_button red_button button_with_confirm" | ||||||
|                     data-onclick="return api.tags.delete('{{qualified_name}}', tag_action_callback);" |                     data-onclick="return api.tags.delete('{{qualified_name}}', tag_action_callback);" | ||||||
|  | @ -196,14 +196,17 @@ h2, h3 | ||||||
|                     > |                     > | ||||||
|                     Delete |                     Delete | ||||||
|                     </button> |                     </button> | ||||||
|  |                     {% endif %} | ||||||
|                 </li> |                 </li> | ||||||
|                 {% endif %} |  | ||||||
| 
 | 
 | ||||||
|                 {% if include_synonyms %} |                 {% if include_synonyms %} | ||||||
|                 {% for synonym in tag.get_synonyms() %} |                 {% for synonym in tag.get_synonyms() %} | ||||||
|                 <li> |                 <li> | ||||||
|                     {{tag_object.tag_object(tag, link=none, innertext='syn')}} |                     {{tag_object.tag_object(tag, link="search_musts", innertext="(+)")}} | ||||||
|                     {{tag_object.tag_object(tag, link='search', innertext=qualified_name + '+' + synonym)-}} | 
 | ||||||
|  |                     {{tag_object.tag_object(tag, link="search_forbids", innertext="(x)")}} | ||||||
|  | 
 | ||||||
|  |                     {{tag_object.tag_object(tag, link='info', innertext=qualified_name + '+' + synonym)-}} | ||||||
|                     <button |                     <button | ||||||
|                     class="remove_tag_button red_button button_with_confirm" |                     class="remove_tag_button red_button button_with_confirm" | ||||||
|                     data-onclick="return api.tags.remove_synonym('{{tag.name}}', '{{synonym}}', tag_action_callback);" |                     data-onclick="return api.tags.remove_synonym('{{tag.name}}', '{{synonym}}', tag_action_callback);" | ||||||
|  | @ -219,8 +222,8 @@ h2, h3 | ||||||
|                 {% endif %} |                 {% endif %} | ||||||
|             {% endfor %} |             {% endfor %} | ||||||
|             </ul> |             </ul> | ||||||
|         </div> |         </div> <!-- hierarchy_tags --> | ||||||
|         {% endif %} |         {% endif %} <!-- if tags or not specific tag --> | ||||||
|     </div> |     </div> | ||||||
| </div> | </div> | ||||||
| </body> | </body> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue