Skip to content

Commit 7db9966

Browse files
committed
Add links from packet to graphs and back
1 parent 68e4dd3 commit 7db9966

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

packet/templates/packet.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ <h3>{{ get_rit_name(packet.freshman_username) }}</h3>
2222
{% endif %}
2323
</div>
2424
</div>
25+
<div class="row w-100 mb-1">
26+
{% if info.realm == "csh" %}
27+
<div class="col">
28+
<a class="btn btn-primary" style="float: right" href="{{ url_for('packet_graphs', packet_id=packet.id) }}">Graphs</a>
29+
</div>
30+
{% endif %}
31+
</div>
2532
<div class="row">
2633
<div class="col ml-1 mb-1">
2734
<h6>Signatures: <span class="badge badge-secondary">{{ received.total }}/{{ required.total }}</span></h6>

packet/templates/packet_stats.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@
88
{% block body %}
99
<div class="container main">
1010
<div class="card">
11-
<h5 class="card-header bg-primary text-white">Cumulative Signatures Over Time for {{ fresh['name'] }} ({{ fresh['rit_username'] }})</h5>
11+
<h5 class="card-header bg-primary text-white">Cumulative Signatures Over Time for
12+
<a class="text-white" href="{{ url_for('freshman_packet', packet_id=packet.id) }}">
13+
<img class="eval-user-img"
14+
alt="{{ get_rit_name(packet.freshman_username) }}"
15+
src="{{ get_rit_image(packet.freshman_username) }}"
16+
width="25"
17+
height="25"/> {{ get_rit_name(packet.freshman_username) }}
18+
</a>
19+
</h5>
20+
<tr>
21+
<td data-priority="1">
22+
</td>
23+
</tr>
1224
<div class="card-body">
1325
<canvas id="myChart" width="400" height="400"></canvas>
1426
<script>

0 commit comments

Comments
 (0)