navbar_frag.html 1.81 KB
Newer Older
1
<div style="padding-bottom: 30px;">
2 3
<ul id="nav">
    <li id="nav-home"><a href="{% url "home" %}">Home</a></li>
4
    <li id="nav-public"><a href="{% url "superevents:public-alerts-O3" %}">Public Alerts</a></li>
5
    <li id="nav-search"><a href="{% url "mainsearch" %}">Search</a></li>
6
    <li id="nav-latest"><a href="{% url "latest" %}">Latest</a></li>
7
    {% if user_is_internal %}
Tanner Prestegard's avatar
Tanner Prestegard committed
8
    <li id="nav-alerts"><a href="{% url "alerts:index" %}">Alerts</a></li>
9
    <li id="nav-pipelines"><a href="{% url "manage-pipelines" %}">Pipelines</a></li>
10
    {% elif user_is_lvem %}
Tanner Prestegard's avatar
Tanner Prestegard committed
11
    <li id="nav-password"><a href="{% url "manage-password" %}">Manage Password</a></li>
12
    {% endif %}
13 14
    <li id="nav-docs"><a href="{% url "home" %}documentation/">Documentation</a></li>
    {% if user %}
15
        {% if user.is_superuser %}
16 17 18
            <li id="nav-admin-docs"><a href="{% url "home" %}admin_docs/">Admin docs</a></li>
        {% endif %}
    {% endif %}
Tanner Prestegard's avatar
Tanner Prestegard committed
19 20 21
    {% if user_is_internal %}
        <li id="nav-other"><a href="{% url "other" %}">Other</a></li>
    {% endif %}
22 23 24
    {% if user.is_authenticated %}
        <li id="nav-logout"><a href="{% url "logout" %}">Logout</a></li>
        <li id="nav-user">Authenticated as:
25
        {% if user.first_name %}
26
            {{ user.get_full_name }}
27
        {% else %}
28
            {{ user.username }}
29
        {% endif %}
30
        </li>
31
    {% else %}
32
        <li id="nav-login"><a href="{% url "login" %}">Login</a></li>
33 34 35 36 37 38 39 40 41 42 43
    {% endif %}
</ul>

{% if 'lvem_view' in request.path %}
<div id="lvem_view_message">
<b>IMPORTANT:</b> You are viewing this page as a member of the LV-EM Observers group.
At the end of your session, please remove the 'lvem_view/' string from the URL to 
return to the regular GraceDB site. This will ensure that your group memberships 
are correct the next time you log in. 
</div>
{% endif %}
44
</div>