diff --git a/templates/gracedb/event_detail.html b/templates/gracedb/event_detail.html index e7b0487de736e27e5f335362706a3a9764453b53..aa948a79a168fe73d48dd8b6cf076b6596e425c4 100644 --- a/templates/gracedb/event_detail.html +++ b/templates/gracedb/event_detail.html @@ -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 %} diff --git a/templates/gracedb/event_detail_CWB.html b/templates/gracedb/event_detail_CWB.html new file mode 100644 index 0000000000000000000000000000000000000000..e91ae26ad951849a519617374f223b5a543d31ee --- /dev/null +++ b/templates/gracedb/event_detail_CWB.html @@ -0,0 +1,47 @@ +{% 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 %} diff --git a/templates/gracedb/event_detail_HM.html b/templates/gracedb/event_detail_HM.html new file mode 100644 index 0000000000000000000000000000000000000000..735c28dbfddfa175ac660ea6cb8204d642bd3fec --- /dev/null +++ b/templates/gracedb/event_detail_HM.html @@ -0,0 +1,10 @@ +{% extends "gracedb/event_detail.html" %} + +{# Analysis-specific attributes for a LowMass event#} +{% block analysis_specific %} + <p/> +<h3>Analysis-specific attributes</h3> + + + +{% endblock %} diff --git a/templates/gracedb/event_detail_LM.html b/templates/gracedb/event_detail_LM.html new file mode 100644 index 0000000000000000000000000000000000000000..3a1e4dfeb5f7e217b731968383b5563e42ce6fc5 --- /dev/null +++ b/templates/gracedb/event_detail_LM.html @@ -0,0 +1,34 @@ +{% 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 %} diff --git a/templates/gracedb/event_detail_MBTA.html b/templates/gracedb/event_detail_MBTA.html new file mode 100644 index 0000000000000000000000000000000000000000..735c28dbfddfa175ac660ea6cb8204d642bd3fec --- /dev/null +++ b/templates/gracedb/event_detail_MBTA.html @@ -0,0 +1,10 @@ +{% extends "gracedb/event_detail.html" %} + +{# Analysis-specific attributes for a LowMass event#} +{% block analysis_specific %} + <p/> +<h3>Analysis-specific attributes</h3> + + + +{% endblock %}