Skip to content
Snippets Groups Projects
Commit 71bb7cab authored by Branson Stephens's avatar Branson Stephens
Browse files

Modified event_detail templates.

parent ed536f51
No related branches found
No related tags found
No related merge requests found
......@@ -160,6 +160,8 @@
<table>
<tr><td valign="top">
<h3> Basic Info </h3>
<table class="event">
{% if skyalert_authorized %}
<tr><td colspan="4">
......@@ -207,6 +209,11 @@
</table>
{# Analysis-specific attributes #}
{% block analysis_specific %}
{# This block is empty in the base event_detail template #}
{% endblock %}
{% if nearby %}
<p/>
<h3>Neighbors</h3>
......@@ -308,5 +315,15 @@
<br/>
{% endif %}
<p/>
<h3>Available Slots</h3>
{% if not object|slot %}
None.
{% else %}
{% for slot in object|slot %}
<a href="{{slot.fileurl}}">{{ slot.name }}</a> <br/>
{% endfor %}
{% endif %}
</td></tr></table>
{% endblock %}
{% extends "gracedb/event_detail.html" %}
{%load scientific %}
{# Analysis-specific attributes for a cWB event#}
{% block analysis_specific %}
<p/>
<h3>Analysis-Specific Attributes</h3>
<table> <tbody>
<tr>
<td> <table class="event"> <tbody>
<!-- Note: commenting out ifos so that we'll have a multiple of three -->
<!-- attributes. If you want, you can uncomment and re-introduce the -->
<!-- two funny little padding rows down below. Or not. -->
<!-- <tr> <th> ifos </th> <td> {{object.ifos}} </td> </tr> -->
<tr> <th> start_time </th> <td> {{object.start_time}} </td> </tr>
<tr> <th> start_time_ns </th> <td> {{object.start_time_ns}} </td> </tr>
<tr> <th> duration </th> <td> {{object.duration|scientific}} </td> </tr>
<tr> <th> peak_time </th> <td> {{object.peak_time}} </td> </tr>
<tr> <th> peak_time_ns </th> <td> {{object.peak_time_ns}} </td> </tr>
</tbody></table>
</td>
<td> <table class="event"> <tbody>
<tr> <th> central_freq </th> <td> {{object.central_freq|floatformat:"-4"}} </td> </tr>
<tr> <th> bandwidth </th> <td> {{object.bandwidth|floatformat:"-4"}} </td> </tr>
<tr> <th> amplitude </th> <td> {{object.amplitude|scientific}} </td> </tr>
<tr> <th> snr </th> <td> {{object.snr|floatformat:"-4"}} </td> </tr>
<tr> <th> confidence </th> <td> {{object.confidence|scientific}} </td> </tr>
<!-- <tr> <th> <div style="min-height:16px"> </div></th> <td> </td> </tr> -->
</tbody></table>
</td>
<td> <table class="event"> <tbody>
<tr> <th> false_alarm_rate </th> <td> {{object.false_alarm_rate|scientific}} </td> </tr>
<tr> <th> ligo_axis_ra </th> <td> {{object.ligo_axis_ra|floatformat:"-4"}} </td> </tr>
<tr> <th> ligo_axis_dec </th> <td> {{object.ligo_axis_dec|floatformat:"-4"}} </td> </tr>
<tr> <th> ligo_angle </th> <td> {{object.ligo_angle}} </td> </tr>
<tr> <th> ligo_angle_sig </th> <td> {{object.ligo_angle_sig}} </td></tr>
<!-- <tr> <th> <div style="min-height:16px"> </div> </th> <td> </td> </tr> -->
</tbody></table>
</td>
</tr>
</tbody> </table>
{% endblock %}
{% extends "gracedb/event_detail.html" %}
{# Analysis-specific attributes for a LowMass event#}
{% block analysis_specific %}
<p/>
<h3>Analysis-specific attributes</h3>
{% endblock %}
{% extends "gracedb/event_detail.html" %}
{% load scientific %}
{# Analysis-specific attributes for an LM event#}
{% block analysis_specific %}
<p/>
<h3>Analysis-Specific Attributes</h3>
<table> <tbody>
<tr>
<td> <table class="event"> <tbody>
<tr> <th> ifos </th> <td> {{object.ifos}} </td> </tr>
<tr> <th> end_time </th> <td> {{object.end_time}} </td> </tr>
<tr> <th> end_time_ns </th> <td> {{object.end_time_ns}} </td> </tr>
</tbody></table>
</td>
<td> <table class="event"> <tbody>
<tr> <th> mass </th> <td> {{object.mass|floatformat:"-4"}} </td> </tr>
<tr> <th> mchirp </th> <td> {{object.mchirp|floatformat:"-4"}} </td> </tr>
<tr> <th> minimum_duration </th> <td> {{object.minimum_duration|scientific}} </td> </tr>
</tbody></table>
</td>
<td> <table class="event"> <tbody>
<tr> <th> snr </th> <td> {{object.snr|floatformat:"-4"}} </td> </tr>
<tr> <th> false_alarm_rate </th> <td> {{object.false_alarm_rate|floatformat:"-4"}} </td> </tr>
<tr> <th> combined_far </th> <td> {{object.combined_far|scientific}} </td> </tr>
</tbody></table>
</td>
</tr>
</tbody> </table>
{% endblock %}
{% extends "gracedb/event_detail.html" %}
{# Analysis-specific attributes for a LowMass event#}
{% block analysis_specific %}
<p/>
<h3>Analysis-specific attributes</h3>
{% endblock %}
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