Skip to content

Commit

Permalink
WIP: Demo table
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-spencer committed Oct 1, 2020
1 parent 51dd51c commit 41464d2
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 0 deletions.
29 changes: 29 additions & 0 deletions AIPscan/Reporter/templates/report_ingest_log_gantt.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ storage_service_name }}: Ingest log</title>
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/custom.css') }}">
<script type="text/javascript" language="javascript" src="{{ url_for('static', filename='js/plotly-latest.min.js') }}"></script>

</head>
<body>

<div class="container-fluid" style="margin: 20px 0;">

<div class="alert alert-secondary">
<a class="noprint" onClick="window.print();return false"><button type="button" class="btn btn-info" style="float:right;">Print</button></a>
<strong>{{ storage_service_name }}: Ingest log</strong><br />
{{ number_of_transfers }} transfers total<br />
</div>

<!-- Add plotly.express here -->

{{ plot|safe }}

</div>

</div>
</body>
</html>
92 changes: 92 additions & 0 deletions AIPscan/Reporter/templates/report_ingest_log_tabular.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ storage_service_name }}: Ingest log</title>
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/custom.css') }}">
<script type="text/javascript" language="javascript" src="{{ url_for('static', filename='js/plotly-latest.min.js') }}"></script>
</head>
<body>

<div class="container-fluid" style="margin: 20px 0;">

<div class="alert alert-secondary">
<a class="noprint" onClick="window.print();return false"><button type="button" class="btn btn-info" style="float:right;">Print</button></a>
<strong>{{ storage_service_name }}: Ingest log</strong><br />
{{ number_of_transfers }} transfers total<br />
</div>

<!-- Add table here -->

<table id="selectedColumn" class="table table-striped table-bordered table-sm table-hover" width="100%" style="margin: 1.25rem;">
<thead>
<tr>
<td>
<b>
<img src="{{ url_for('static', filename='assets/users-solid.svg') }}"
style="height: 1.5em; margin-right: 5px;" />
User
</b>
</td>
<td>
<b>
<img src="{{ url_for('static', filename='assets/archive-solid.svg') }}"
style="height: 1.5em; margin-right: 5px;" />
Transfer
</b>
</td>
<td>
<b>
<img src="{{ url_for('static', filename='assets/calendar-alt-regular.svg') }}"
style="height: 1.5em; margin-right: 5px;" />
Start Date
</b>
</td>
<td>
<b>
<img src="{{ url_for('static', filename='assets/calendar-alt-regular.svg') }}"
style="height: 1.5em; margin-right: 5px;" />
End Date
</b>
</td>
<td>
<b>
<img src="{{ url_for('static', filename='assets/stopwatch-solid.svg') }}"
style="height: 1.5em; margin-right: 5px;" />
Duration
</b>
</td>
<tr>
</thead>
<tbody>

{% for row in data %}
<tr>
<td>
<b>{{ row["user"] }}</b>
</td>
<td>
{{ row["aip_name"] }} <code style="color: grey;">{{ row["aip"] }}</code>
</td>
<td>
{{ row["ingest_date"] }}
</td>
<td>
{{ row["finish_date"] }}
</td>
<td>
{{ row["duration"] }}
</td>
</tr>
{% endfor %}

</tbody>
</table>


</div>

</div>
</body>
</html>
1 change: 1 addition & 0 deletions AIPscan/static/assets/archive-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions AIPscan/static/assets/calendar-alt-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed AIPscan/static/assets/calendar-icon.png
Binary file not shown.
1 change: 1 addition & 0 deletions AIPscan/static/assets/stopwatch-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions AIPscan/static/assets/users-solid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 41464d2

Please sign in to comment.