Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
G
gracedb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
99
Issues
99
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
gracedb
Commits
122edf1e
Commit
122edf1e
authored
May 26, 2019
by
Jonah Kanner
🤓
Committed by
GraceDB
Jun 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding UTC time
parent
2ef52992
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
gracedb/superevents/views.py
gracedb/superevents/views.py
+4
-1
gracedb/templates/superevents/public.html
gracedb/templates/superevents/public.html
+13
-4
No files found.
gracedb/superevents/views.py
View file @
122edf1e
import
logging
import
os
from
lal
import
gpstime
from
django.views.generic.detail
import
DetailView
from
django.views.generic
import
ListView
...
...
@@ -138,6 +138,9 @@ class SupereventPublic(ListView):
for
se
in
context
[
'object_list'
]:
se
.
maplocal
=
"/apiweb/superevents/{0}/files/bayestar.png"
.
format
(
se
.
superevent_id
)
se
.
ifar_yrs
=
1.0
/
(
se
.
far
*
3600
*
24
*
365.0
)
se
.
t0_iso
=
gpstime
.
gps_to_utc
(
se
.
t_0
).
isoformat
(
' '
).
split
(
'.'
)[
0
]
#-- Get list of voevents
voevents
=
se
.
voevent_set
.
all
()
...
...
gracedb/templates/superevents/public.html
View file @
122edf1e
...
...
@@ -56,22 +56,27 @@
{% if not user_is_external %}
<th
scope=
"col"
data-tablesaw-col
data-tablesaw-priority=
"5"
>
Ω
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>
<th
scope=
"col"
data-tablesaw-sortable-col
data-tablesaw-priority=
"6"
>
GPS
</th>
<th
scope=
"col"
data-tablesaw-col
data-tablesaw-priority=
"6"
>
False Alarm Rate (per year)
</th>
<th
scope=
"col"
data-tablesaw-sortable-col
data-tablesaw-priority=
"6"
>
UTC Time
</th>
</tr>
</thead><tbody>
{% 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><a
href=
/superevents/{{
event.superevent_id
}}
>
{{ event.
default_
superevent_id }}
</a></td>
<td
style=
'min-width:120px'
>
{{ event.sourcetypes }}
</td>
<td
style=
'min-width:120px'
>
{{ event.t_0_date }}
</td>
<td
style=
'min-width:120px'
>
{{ event.t_0_date }}
</td>
<td>
<a
href=
{{
event.noticeurl
}}
>
Notice
</a><br/>
<a
href=
{{
event.gcnurl
}}
>
Circulars
</a>
</td>
<td>
<a
href=
'{{ event.maplocal }}'
>
<img
src=
'{{ event.maplocal }}'
width=
'200px'
/>
</a>
</td>
{% if not user_is_external %}
...
...
@@ -81,8 +86,12 @@
</td>
{% endif %}
<td>
{{ event.t_0 }}
</td>
<td>
{{ event.comments }}
</td>
<td>
{{ event.t_0 }}
</td>
<td>
1 per {{ event.ifar_yrs|floatformat:2 }} years
</td>
<td>
{{ event.t0_iso }} UTC
</td>
</tr>
{% endfor %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment