From cebc23c73c4ec6e3ce984046c2bd30fa5ec3b28f Mon Sep 17 00:00:00 2001 From: "alexander.pace@ligo.org" <alexander.pace@ligo.org> Date: Mon, 17 Feb 2020 08:39:37 -0600 Subject: [PATCH] minor minor minor visual tweaks cleaned up the navbar, started to fix tables on the event pages. --- gracedb/templates/gracedb/event_detail.html | 38 ++++++++++++--------- gracedb/templates/navbar_frag.html | 2 +- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/gracedb/templates/gracedb/event_detail.html b/gracedb/templates/gracedb/event_detail.html index 363a9a81b..7b3eebe6a 100644 --- a/gracedb/templates/gracedb/event_detail.html +++ b/gracedb/templates/gracedb/event_detail.html @@ -43,7 +43,7 @@ <div id='event_detail_content'> {% if object.offline %} <div style="text-align: center;"> - <h2 style="color: red;">OFFLINE EVENT</h2> + <h3 style="color: red;">OFFLINE EVENT</h3> </div> {% endif %} @@ -58,7 +58,7 @@ <form action="{% url "modify_permissions" object.graceid %}" method="post"> <input type="hidden" name="group_name" value="{{ lvem_group_name }}"> <input type="hidden" name="action" value="expose"> - <input type="submit" value="Expose this event to LV-EM" class="permButtonClass"> + <button type="button" class="btn btn-danger">Expose this event to LV-EM</button> </form> </div> {% elif can_protect_from_lvem %} @@ -66,7 +66,7 @@ <form action="{% url "modify_permissions" object.graceid %}" method="post"> <input type="hidden" name="group_name" value="{{ lvem_group_name }}"> <input type="hidden" name="action" value="protect"> - <input type="submit" value="Revoke LV-EM permissions for this event" class="permButtonClass"> + <button type="button" class="btn btn-warning">Revoke LV-EM permissions for this event</button> </form> </div> {% endif %} @@ -176,25 +176,28 @@ <div class="content-area"> {% block basic_info %} -<h2> Basic Info </h2> +<br> +<br> +<h4> Basic Info </h4> -<table class="event"> +<table class="table table-bordered-sm"> + <thead class="thead-dark"> <tr> - <th valign="top">UID</th> - <th>Labels</th> - <th>Group</th> - <th>Pipeline</th> - <th>Search</th> - <th>Instruments</th> - <th> + <th scope="col" valign="top">UID</th> + <th scope="col">Labels</th> + <th scope="col">Group</th> + <th scope="col">Pipeline</th> + <th scope="col">Search</th> + <th scope="col" >Instruments</th> + <th scope="col"> <div id="basic_info_event_ts"></div> <div> Event Time </div> </th> - <th>FAR (Hz)</th> - <th>FAR (yr<sup>-1</sup>)</th> - <th> Latency (s) </th> - <th>Links</th> - <th> + <th scope="col">FAR (Hz)</th> + <th scope="col">FAR (yr<sup>-1</sup>)</th> + <th scope="col"> Latency (s) </th> + <th scope="col">Links</th> + <th scope="col"> <div id="basic_info_created_ts"></div> <div> Submitted </div> </th> @@ -202,6 +205,7 @@ <th>Superevent</th> {% endif %} </tr> + </thead> <tr> <td>{{ object.graceid }}</td> <td> diff --git a/gracedb/templates/navbar_frag.html b/gracedb/templates/navbar_frag.html index 9229decd6..9d71c8b1d 100644 --- a/gracedb/templates/navbar_frag.html +++ b/gracedb/templates/navbar_frag.html @@ -73,7 +73,7 @@ </div> </nav> - <div class="container-fluid navbar-gracedb text-right"> + <div class="container-fluid navbar-gracedb text-left"> <span class="text-muted" style="font-size:8pt"> {% if user.is_authenticated %} Authenticated as: -- GitLab