hbwebui / hbwebui / templates / navbar.html

<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container-fluid">
            <ul class="nav">
                <li {% if page == "dashboard" %}class="active"{% endif %}><a href="{% if page == "dashboard" %}#{% else %}{% url dashboard %}{% endif %}">Dashboard</a></li>
                
                {% if page == "stats_idents" or page == "stats_binaries" or page == "stats_source_ips" or page == "stats_asns" or page == "stats_countries" %}
                <li class="dropdown active">
                    {% if page == "stats_idents" %}
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">Stats / Idents <span class="caret"></span></a>
                    {% endif %}
                    {% if page == "stats_binaries" %}
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">Stats / Binaries <span class="caret"></span></a>
                    {% endif %}
                    {% if page == "stats_source_ips" %}
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">Stats / Source IPs <span class="caret"></span></a>
                    {% endif %}
                    {% if page == "stats_asns" %}
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">Stats / ASNs <span class="caret"></span></a>
                    {% endif %}
                    {% if page == "stats_countries" %}
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">Stats / Countries <span class="caret"></span></a>
                    {% endif %}
                {% else %}
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">Stats <span class="caret"></span></a>
                {% endif %}
                    <ul class="dropdown-menu">
                        {% if page == "stats_idents" %}
                        <li><a href="#"><strong>Idents</strong></a></li>
                        {% else %}
                        <li><a href="{% url stats_idents %}">Idents</a>
                        {% endif %}
                        {% if page == "stats_binaries" %}
                        <li><a href="#"><strong>Binaries</strong></a></li>
                        {% else %}
                        <li><a href="{% url stats_binaries %}">Binaries</a>
                        {% endif %}
                        {% if page == "stats_source_ips" %}
                        <li><a href="#"><strong>Source IPs</strong></a></li>
                        {% else %}
                        <li><a href="{% url stats_source_ips %}">Source IPs</a>
                        {% endif %}
                        {% if page == "stats_asns" %}
                        <li><a href="#"><strong>ASNs</strong></a></li>
                        {% else %}
                        <li><a href="{% url stats_asns %}">ASNs</a>
                        {% endif %}
                        {% if page == "stats_countries" %}
                        <li><a href="#"><strong>Countries</strong></a></li>
                        {% else %}
                        <li><a href="{% url stats_countries %}">Countries</a>
                        {% endif %}
                    </ul>
                </li>
                {% if page == "stats_ident" %}
                <li class="active"><a href="#">Stats: ident: {{ ident }}</a></li>
                {% endif %}
                {% if page == "stats_binary" %}
                <li class="active"><a href="#">Stats: binary: {{ md5 }}</a></li>
                {% endif %}
            </ul>
            <div class="nav pull-right dropdown">
                <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="icon-user"></span> {{ user.username }} <span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <!--<li class="divider"></li>-->
                    <li><a href="{% url logout %}">Log out</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.