Update navbar.html
change default url to `/` from `datacenterlight:index`
This commit is contained in:
		
					parent
					
						
							
								389d16931b
							
						
					
				
			
			
				commit
				
					
						f9bedf20e0
					
				
			
		
					 1 changed files with 4 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -10,13 +10,12 @@
 | 
			
		|||
      <span class="icon-bar"></span>
 | 
			
		||||
      <span class="icon-bar"></span>
 | 
			
		||||
    </button>
 | 
			
		||||
    {% url 'datacenterlight:index' as default_logo_url %}
 | 
			
		||||
    {% if instance.logo_dark or instance.logo_light %}
 | 
			
		||||
      <a href="{{ instance.logo_url|default:default_logo_url }}" id="logoBlack" class="navbar-brand topnav"><img src="{{ instance.get_logo_dark }}"></a>
 | 
			
		||||
      <a href="{{ instance.logo_url|default:default_logo_url }}" id="logoWhite" class="navbar-brand topnav"><img src="{{ instance.get_logo_light }}"></a>
 | 
			
		||||
      <a href="{{ instance.logo_url|default:'/' }}" id="logoBlack" class="navbar-brand topnav"><img src="{{ instance.get_logo_dark }}"></a>
 | 
			
		||||
      <a href="{{ instance.logo_url|default:'/' }}" id="logoWhite" class="navbar-brand topnav"><img src="{{ instance.get_logo_light }}"></a>
 | 
			
		||||
    {% else %}
 | 
			
		||||
      <a href="{{ default_logo_url }}" id="logoBlack" class="navbar-brand topnav"><img src="{% static 'datacenterlight/img/logo_black.svg' %}"></a>
 | 
			
		||||
      <a href="{{ default_logo_url }}" id="logoWhite" class="navbar-brand topnav"><img src="{% static 'datacenterlight/img/logo_white.svg' %}"></a>
 | 
			
		||||
      <a href="/" id="logoBlack" class="navbar-brand topnav"><img src="{% static 'datacenterlight/img/logo_black.svg' %}"></a>
 | 
			
		||||
      <a href="/" id="logoWhite" class="navbar-brand topnav"><img src="{% static 'datacenterlight/img/logo_white.svg' %}"></a>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="collapse navbar-collapse" id="dcl-topnav">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue