Enable multi-level site-tree
* Remove the outdated compiled javascript once again * Update the sitetree_header template to use more detail. The extra detail here is taken from the menu_bootstrap3.html template distributed with django-sitetree
This commit is contained in:
		
							parent
							
								
									6a479055a0
								
							
						
					
					
						commit
						f058ed7d71
					
				
					 2 changed files with 8 additions and 6 deletions
				
			
		|  | @ -20,7 +20,3 @@ | |||
|     </div> | ||||
|   {% endblock %} | ||||
| {% endblock %} | ||||
| 
 | ||||
| {% block extra_script %} | ||||
|   <script src="{% static 'js/site-92ae8d0d6c.js' %}" type="text/javascript"></script> | ||||
| {% endblock %} | ||||
|  |  | |||
|  | @ -17,8 +17,14 @@ | |||
|         <div id="navbar" class="navbar-collapse collapse"> | ||||
|         <ul class="nav navbar-nav"> | ||||
|       {% endif %} | ||||
|       <li class="{% if item.is_current or item.in_current_branch %}active{% endif %}"> | ||||
|         <a href="{% sitetree_url for item %}">{{ item.title_resolved }}</a> | ||||
|       <li class="{% if item.has_children %}dropdown{% endif %} {% if item.is_current or item.in_current_branch %}active{% endif %}"> | ||||
|         <a href="{% if item.has_children %}#{% else %}{% sitetree_url for item %}{% endif %}" {% if item.has_children %}class="dropdown-toggle" data-toggle="dropdown"{% endif %}> | ||||
|           {{ item.title_resolved }} | ||||
|           {% if item.has_children %}<b class="caret"></b>{% endif %} | ||||
|         </a> | ||||
|         {% if item.has_children %} | ||||
|         {% sitetree_children of item for menu template "sitetree/menu_bootstrap3_dropdown.html" %} | ||||
|         {% endif %} | ||||
|       </li> | ||||
|     {% endif %} | ||||
|   {% endfor %} | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 James Polley
						James Polley