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
84a67db3
Commit
84a67db3
authored
May 22, 2019
by
Jonah Kanner
🤓
Committed by
GraceDB
Jun 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first attempt
parent
a3af778d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
4 deletions
+62
-4
gracedb/superevents/views.py
gracedb/superevents/views.py
+22
-2
gracedb/templates/superevents/public.html
gracedb/templates/superevents/public.html
+40
-2
No files found.
gracedb/superevents/views.py
View file @
84a67db3
...
...
@@ -120,5 +120,25 @@ class SupereventFileList(SupereventDetailView):
class
SupereventPublic
(
ListView
):
model
=
Superevent
template_name
=
'superevents/public.html'
#filter_permissions = ['superevents.view_superevent']
#log_view_permission = 'superevents.view_log'
filter_permissions
=
[
'superevents.view_superevent'
]
log_view_permission
=
'superevents.view_log'
def
get_context_data
(
self
,
**
kwargs
):
# Get base context
context
=
ListView
.
get_context_data
(
self
,
**
kwargs
)
#-- For each superevent, get list of log messages
for
se
in
context
[
'object_list'
]:
viewable_logs
=
get_objects_for_user
(
self
.
request
.
user
,
self
.
log_view_permission
,
se
.
log_set
.
all
()).
filter
(
tags__name
=
'em_follow'
)
#-- want this label to be analyst_comment
commentlist
=
''
for
log
in
viewable_logs
:
commentlist
+=
log
.
comment
commentlist
+=
'--'
se
.
comments
=
commentlist
return
context
gracedb/templates/superevents/public.html
View file @
84a67db3
...
...
@@ -44,11 +44,49 @@
{% endblock %}
{% block content %}
Hello jonah.
<h3>
O3 detection candidates: {{ meta.candidates }}
</h3>
<br/><br/>
<table
class=
"tablesaw"
data-tablesaw-sortable
data-tablesaw-sortable-switch
data-tablesaw-mode=
"columntoggle"
>
<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=
"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"
>
Ω
Scan
</th>
<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>
</tr>
</thead><tbody>
{% for event in object_list %}
I found a superevent! {{ event.superevent_id }}
<br/>
<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>
<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>
<td>
<a
href=
'https://ldas-jobs.ligo-la.caltech.edu/~detchar/dqr/events/{{ event.superevent_id }}/L1deepomegascan/'
>
Ω
L1
</a><br/>
<a
href=
'https://ldas-jobs.ligo-wa.caltech.edu/~detchar/dqr/events/{{ event.superevent_id }}/H1deepomegascan/'
>
Ω
H1
</a>
</td>
<td>
{{ event.t_0 }}
</td>
<td>
{{ event.comments }}
</td>
</tr>
{% endfor %}
</tbody></table>
{% endblock %}
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