From 7b0e5362ad5b60fcc525945bdba6b7085a29cd40 Mon Sep 17 00:00:00 2001
From: "alexander.pace@ligo.org" <alexander.pace@ligo.org>
Date: Mon, 9 Dec 2019 19:41:43 -0600
Subject: [PATCH] saving navbar changes

---
 gracedb/templates/navbar_frag.html | 62 +++++-------------------------
 1 file changed, 10 insertions(+), 52 deletions(-)

diff --git a/gracedb/templates/navbar_frag.html b/gracedb/templates/navbar_frag.html
index 1a10ea098..d098dba68 100644
--- a/gracedb/templates/navbar_frag.html
+++ b/gracedb/templates/navbar_frag.html
@@ -1,58 +1,16 @@
-<!--<div style="padding-bottom: 30px;">
-<ul id="nav">
-    <li id="nav-home"><a href="{% url "home" %}">Home</a></li>
-    <li id="nav-public"><a href="{% url "superevents:public-alerts-O3" %}">Public Alerts</a></li>
-    <li id="nav-search"><a href="{% url "mainsearch" %}">Search</a></li>
-    <li id="nav-latest"><a href="{% url "latest" %}">Latest</a></li>
-    {% if user_is_internal %}
-    <li id="nav-alerts"><a href="{% url "alerts:index" %}">Alerts</a></li>
-    <li id="nav-pipelines"><a href="{% url "manage-pipelines" %}">Pipelines</a></li>
-    {% elif user_is_lvem %}
-    <li id="nav-password"><a href="{% url "manage-password" %}">Manage Password</a></li>
-    {% endif %}
-    <li id="nav-docs"><a href="{% url "home" %}documentation/">Documentation</a></li>
-    {% if user %}
-        {% if user.is_superuser %}
-            <li id="nav-admin-docs"><a href="{% url "home" %}admin_docs/">Admin docs</a></li>
-        {% endif %}
-    {% endif %}
-    {% if user_is_internal %}
-        <li id="nav-other"><a href="{% url "other" %}">Other</a></li>
-    {% endif %}
-    {% if user.is_authenticated %}
-        <li id="nav-logout"><a href="{% url "logout" %}?next={{ request.path }}">Logout</a></li>
-        <li id="nav-user">Authenticated as:
-        {% if user.first_name %}
-            {{ user.get_full_name }}
-        {% else %}
-            {{ user.username }}
-        {% endif %}
-        </li>
-    {% else %}
-        <li id="nav-login"><a href="{% url "login" %}?next={{ request.path }}">Login</a></li>
-    {% 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 %}
-</div> -->
-
-
 <nav>
   <div class="nav-wrapper blue darken-3" style="padding-left: 15px;">
          {% if user.is_authenticated %}
-          <span class="gray-text" style="font-size:8pt" >Authenticated as:</span>
-          {% if user.first_name %}
-              <span class="gray-text" style="font-size:8pt">{{ user.get_full_name }}</span>
-          {% else %}
-              <span class="gray-text" style="font-size:8pt">{{ user.username }}</span>
-          {% endif %}
+           <span class="gray-text" style="font-size:8pt" >Authenticated as:</span>
+           {% if user.first_name %}
+               <span class="gray-text" style="font-size:8pt">{{ user.get_full_name }}</span>
+           {% else %}
+               <span class="gray-text" style="font-size:8pt">{{ user.username }}</span>
+           {% endif %}
+         {% else %}
+           <span class="gray-text" style="font-size:8pt" >
+           Please log in to view full database contents.
+           </span>
          {% endif %}
     <a href="#" data-target="mobile-demo" class="sidenav-trigger"><i class="material-icons">menu</i></a>
     <ul class="right hide-on-med-and-down">
-- 
GitLab