file reformated

This commit is contained in:
ARvind Tiwari 2017-08-08 22:46:00 +05:30
parent 5cea467deb
commit 451f2a141e

View file

@ -1,67 +1,61 @@
{% load staticfiles i18n%} {% load staticfiles i18n%} {% load custom_tags %} {% get_current_language as LANGUAGE_CODE %}
{% load custom_tags %}
{% get_current_language as LANGUAGE_CODE %}
<nav class="navbar navbar-default navbar-fixed-top topnav"> <nav class="navbar navbar-default navbar-fixed-top topnav">
<div class="topnav"> <div class="topnav">
<!-- Brand and toggle get grouped for better mobile display --> <!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a href="{% url 'datacenterlight:index' %}" id="logoBlack" class="navbar-brand topnav"><img src="{% static 'datacenterlight/img/logo_black.svg' %}"></a> <a href="{% url 'datacenterlight:index' %}" id="logoBlack" class="navbar-brand topnav"><img src="{% static 'datacenterlight/img/logo_black.svg' %}"></a>
<a href="{% url 'datacenterlight:index' %}" id="logoWhite" class="navbar-brand topnav"><img src="{% static 'datacenterlight/img/logo_white.svg' %}"></a> <a href="{% url 'datacenterlight:index' %}" id="logoWhite" class="navbar-brand topnav"><img src="{% static 'datacenterlight/img/logo_white.svg' %}"></a>
</div> </div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"><!-- Start Navbar collapse--> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right"> <!-- Start Navbar collapse-->
<li class="dropdown"> <ul class="nav navbar-nav navbar-right">
<a class="dropdown-toggle url visible-desktop" href="#how" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{% trans "Highlights" %}&nbsp;<span class="caret"></span></a> <li class="dropdown">
<a class="dropdown-toggle visible-mobile" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{% trans "Highlights" %}&nbsp;<span class="caret"></span></a> <a class="dropdown-toggle url visible-desktop" href="#how" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{% trans "Highlights" %}&nbsp;<span class="caret"></span></a>
<ul class="dropdown-menu"> <a class="dropdown-toggle visible-mobile" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{% trans "Highlights" %}&nbsp;<span class="caret"></span></a>
<li><a class="url" href="#your">{% trans "Scale out" %}</a></li> <ul class="dropdown-menu">
<li><a class="url" href="#our">{% trans "Reliable and light" %}</a></li> <li><a class="url" href="#your">{% trans "Scale out" %}</a></li>
<li> <a class="url" href="#price">{% trans "Order VM" %}</a></li> <li><a class="url" href="#our">{% trans "Reliable and light" %}</a></li>
</ul> <li> <a class="url" href="#price">{% trans "Order VM" %}</a></li>
</li> </ul>
<li> </li>
<a href="{% url 'datacenterlight:whydatacenterlight' %}" >{% trans "Why Data Center Light?" %}</a> <li>
</li> <a href="{% url 'datacenterlight:whydatacenterlight' %}">{% trans "Why Data Center Light?" %}</a>
<li> </li>
<a class="url" href="#contact">{% trans "Contact" %}</a> <li>
</li> <a class="url" href="#contact">{% trans "Contact" %}</a>
<li> </li>
{% if LANGUAGE_CODE == 'en-us'%} <li>
<a class="on-hover-border" href="{% change_lang 'de' %}">Deutsch&nbsp;&nbsp;<i class="fa fa-globe" aria-hidden="true"></i></a> {% if LANGUAGE_CODE == 'en-us'%}
{% else %} <a class="on-hover-border" href="{% change_lang 'de' %}">Deutsch&nbsp;&nbsp;<i class="fa fa-globe" aria-hidden="true"></i></a> {% else %}
<a class="on-hover-border" href="{% change_lang 'en-us' %}">English&nbsp;&nbsp;<i class="fa fa-globe" aria-hidden="true"></i></a> <a class="on-hover-border" href="{% change_lang 'en-us' %}">English&nbsp;&nbsp;<i class="fa fa-globe" aria-hidden="true"></i></a> {% endif %}
{% endif %} </li>
</li> {% comment %}
{% comment %} <!-- to be used when more than one option for language -->
<!-- to be used when more than one option for language --> <li class="nav-language">
<li class="nav-language"> <div class="dropdown">
<div class="dropdown"> <div class="dropdown-toggle select-language" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<div class="dropdown-toggle select-language" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> {% if LANGUAGE_CODE == 'en-us'%}
{% if LANGUAGE_CODE == 'en-us'%} <span>English</span> {% else %}
<span>English</span> <span>Deutsch</span> {% endif %}
{% else %} <i class="fa fa-globe" aria-hidden="true"></i>
<span>Deutsch</span> </div>
{% endif %} <ul class="dropdown-menu drop-language dropdown-menu-right">
<i class="fa fa-globe" aria-hidden="true"></i> {% if LANGUAGE_CODE == 'en-us'%}
</div> <li><a class="url" href="{% change_lang 'de' %}">Deutsch</a></li>
<ul class="dropdown-menu drop-language dropdown-menu-right"> {% else %}
{% if LANGUAGE_CODE == 'en-us'%} <li><a class="url" href="{% change_lang 'en-us' %}">English</a></li>
<li><a class="url" href="{% change_lang 'de' %}">Deutsch</a></li> {% endif %}
{% else %} </ul>
<li><a class="url" href="{% change_lang 'en-us' %}">English</a></li> </div>
{% endif %} </li>
</ul> {% endcomment %}
</ul>
<!-- /.navbar-collapse -->
</div> </div>
</li>
{% endcomment %}
</ul>
<!-- /.navbar-collapse -->
</div>
</nav> </nav>