Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
km3mon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
km3py
km3mon
Commits
ea5979c4
Commit
ea5979c4
authored
5 years ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Update style
parent
39e83260
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/routes.py
+2
-5
2 additions, 5 deletions
app/routes.py
app/static/css/main.css
+8
-2
8 additions, 2 deletions
app/static/css/main.css
app/templates/top10.html
+37
-33
37 additions, 33 deletions
app/templates/top10.html
with
47 additions
and
40 deletions
app/routes.py
+
2
−
5
View file @
ea5979c4
...
...
@@ -172,13 +172,10 @@ def trigger():
@app.route
(
'
/top10.html
'
)
@requires_auth
def
top10
():
category_names
=
{
'
n_hits
'
:
'
Number of hits
'
,
'
overlays
'
:
'
Number of overlays
'
}
category_names
=
{
'
n_hits
'
:
'
Number of Hits
'
,
'
overlays
'
:
'
Overlays
'
}
top10
=
{}
dbs
=
LocalDBService
(
filename
=
"
data/monitoring.sqlite3
"
)
for
category
in
[
"
overlays
"
,
"
n_hit
s
"
]:
for
category
in
[
"
n_hits
"
,
"
overlay
s
"
]:
raw_data
=
dbs
.
query
(
"
SELECT plot_filename, n_hits, n_triggered_hits, overlays,
"
"
det_id, run_id, frame_index, trigger_counter, utc_timestamp
"
...
...
This diff is collapsed.
Click to expand it.
app/static/css/main.css
+
8
−
2
View file @
ea5979c4
...
...
@@ -38,11 +38,17 @@ img.plot {
margin
:
0
auto
}
.top10-entry
{
padding-bottom
:
70px
;
}
#top10
h3
{
min-width
:
18
0px
;
font-size
:
5
0px
;
}
#top10
h3
.rank
{
font-size
:
60px
;
min-width
:
180px
;
font-size
:
50px
;
font-weight
:
500
;
color
:
#438bd9
;
border-bottom
:
3px
dotted
#ddd
;
...
...
This diff is collapsed.
Click to expand it.
app/templates/top10.html
+
37
−
33
View file @
ea5979c4
...
...
@@ -2,47 +2,51 @@
{% block main %}
<div
id=
"top10"
>
{% for category, events in top10.items() %}
<h3
style=
"text-align: center"
>
{{ category }}
</h3>
<div
class=
"container-fluid
"
id=
"top10
"
>
<div
class=
"container-fluid
top10-category
"
>
{% for event in events %}
<div
class=
"row"
>
<div
class=
"col-md-2"
style=
"vertical-align: middle"
>
<h3
class=
"rank"
>
#{{ loop.index }}
{% if event.is_recent %}
<span
class=
"recent"
>
NEW!
</span>
{% endif %}
</h3>
<h4
class=
"date"
>
{{ event.date }}
</h4>
<table
class=
"top10"
>
{% for key, value in event.meta.items() %}
<tr>
<td
class=
"meta-key"
>
{{ key }}
</td>
<td
class=
"meta-value"
>
{{ value }}
</td>
</tr>
{% endfor %}
</table>
<div
class=
"top10-entry"
>
<div
class=
"row"
>
<div
class=
"col-md-2"
style=
"vertical-align: middle"
>
<h3
class=
"rank"
>
#{{ loop.index }}
{% if event.is_recent %}
<span
class=
"recent"
>
NEW!
</span>
{% endif %}
</h3>
<h4
class=
"date"
>
{{ event.date }}
</h4>
<table
class=
"top10"
>
{% for key, value in event.meta.items() %}
<tr>
<td
class=
"meta-key"
>
{{ key }}
</td>
<td
class=
"meta-value"
>
{{ value }}
</td>
</tr>
{% endfor %}
</table>
</div>
<div
class=
"col-md-8"
>
<a
href=
"{{ event.plot_filename }}"
>
<img
class=
"plot img-responsive"
style=
"padding: 20px"
src=
"{{ event.plot_filename }}"
alt=
"{{ event.plot_filename }}"
/>
</a>
</div>
<div
class=
"col-md-2"
>
</div>
</div>
<div
class=
"col-md-8"
>
<a
href=
"{{ event.plot_filename }}"
>
<img
class=
"plot img-responsive"
style=
"padding: 20px"
src=
"{{ event.plot_filename }}"
alt=
"{{ event.plot_filename }}"
/>
</a>
</div>
<div
class=
"col-md-2"
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-12"
style=
"vertical-align: middle"
>
<p
class=
"filepath"
><b>
iRODS
</b>
: {{ event.irods_path }}
</p>
<p
class=
"filepath"
><b>
xrootd
</b>
: {{ event.xrootd_path }}
</p>
<div
class=
"row"
>
<div
class=
"col-md-12"
style=
"vertical-align: middle"
>
<p
class=
"filepath"
><b>
iRODS
</b>
: {{ event.irods_path }}
</p>
<p
class=
"filepath"
><b>
xrootd
</b>
: {{ event.xrootd_path }}
</p>
</div>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment