Skip to content
Snippets Groups Projects
Commit d34e70ee authored by Jonah Kanner's avatar Jonah Kanner :nerd: Committed by GraceDB
Browse files

Only see omega scans if logged in

parent b90b4466
No related branches found
No related tags found
No related merge requests found
......@@ -176,6 +176,10 @@ class SupereventPublic(ListView):
context['candidates']=candidates
#-- Is this user outside the LVC?
context['user_is_external'] = is_external(self.request.user)
return context
......
......@@ -49,10 +49,13 @@
<thead><tr>
<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Event ID</th>
<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="1">Possible Source (Probability)</th>
<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="2">Date</th>
<th scope="col" data-tablesaw-col data-tablesaw-priority="2">Date</th>
<th scope="col" data-tablesaw-col data-tablesaw-priority="3">GCN</th>
<th scope="col" data-tablesaw-col data-tablesaw-priority="4">Location</th>
<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="5">&Omega;<br/>Scan</th>
{% if not user_is_external %}
<th scope="col" data-tablesaw-col data-tablesaw-priority="5">&Omega; Scan</th>
{% endif %}
<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="5">End Time GPS</th>
<th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="5">Comments</th>
......@@ -61,8 +64,6 @@
{% for event in object_list %}
<tr {% if event.retract %}style='background-color:#EDD' {% endif %} >
<td><a href=/superevents/{{ event.superevent_id }}>{{ event.superevent_id }}</a></td>
<td style='min-width:120px'>{{ event.sourcetypes }} </td>
......@@ -72,10 +73,14 @@
<a href={{ event.gcnurl }}>Circulars</a>
</td>
<td> <a href='{{ event.maplocal }}'> <img src='{{ event.maplocal }}' width='200px'/> </a> </td>
<td>
{% if not user_is_external %}
<td style='min-width:70px'>
<a href='https://ldas-jobs.ligo-la.caltech.edu/~detchar/dqr/events/{{ event.superevent_id }}/L1deepomegascan/'>&Omega; L1</a><br/>
<a href='https://ldas-jobs.ligo-wa.caltech.edu/~detchar/dqr/events/{{ event.superevent_id }}/H1deepomegascan/'>&Omega; H1</a>
</td>
{% endif %}
<td>{{ event.t_0 }} </td>
<td>{{ event.comments }} </td>
</tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment