-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summonerd: add web view for queue state
This is just the number of connected participants, the top, and median bid, but nothing else for now
- Loading branch information
1 parent
b4375fb
commit 9eca034
Showing
6 changed files
with
143 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,33 @@ | ||
<h1>✨✨✨✨ Penumbra Summoning Ceremony ✨✨✨✨</h1> | ||
|
||
{% if snapshot_participants_top_median.is_some() %} | ||
{% let value = snapshot_participants_top_median.as_ref().unwrap() %} | ||
<span>Waiting:</span> | ||
<span>{{ value.0 }}</span> | ||
<span>Top Bid:</span> | ||
<span>{{ value.1 }}</span> | ||
<span>Median Bid:</span> | ||
<span>{{ value.2 }}</span> | ||
{% endif %} | ||
|
||
<h2>Previous Contributions in phase 1: {{ num_contributions_so_far_phase_1 }}</h2> | ||
|
||
{% if contributions_by_hash_time_shortaddr.len() != 0 %} | ||
{% if contributions_by_slot_hash_time_shortaddr.len() != 0 %} | ||
Recent phase 1 contributors: | ||
<ul> | ||
{% for contribution in contributions_by_hash_time_shortaddr %} | ||
<li>{{ contribution.2 }} contributed {{ contribution.0 }} at {{ contribution.1 }}</li> | ||
<table> | ||
<tr> | ||
<td>Slot</td> | ||
<td>Who</td> | ||
<td>What</td> | ||
<td>When</td> | ||
</tr> | ||
{% for contribution in contributions_by_slot_hash_time_shortaddr.iter() %} | ||
<tr> | ||
<td>{{ contribution.0 }}</td> | ||
<td>{{ contribution.3 }}</td> | ||
<td>{{ contribution.1 }}</td> | ||
<td>{{ contribution.2 }}</td> | ||
</tr> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</table> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,33 @@ | ||
<h1>✨✨✨✨ Penumbra Summoning Ceremony ✨✨✨✨</h1> | ||
|
||
{% if snapshot_participants_top_median.is_some() %} | ||
{% let value = snapshot_participants_top_median.as_ref().unwrap() %} | ||
<span>Waiting:</span> | ||
<span>{{ value.0 }}</span> | ||
<span>Top Bid:</span> | ||
<span>{{ value.1 }}</span> | ||
<span>Median Bid:</span> | ||
<span>{{ value.2 }}</span> | ||
{% endif %} | ||
|
||
<h2>Previous Contributions in phase 2: {{ num_contributions_so_far_phase_2 }}</h2> | ||
|
||
{% if contributions_by_hash_time_shortaddr.len() != 0 %} | ||
{% if contributions_by_slot_hash_time_shortaddr.len() != 0 %} | ||
Recent phase 2 contributors: | ||
<ul> | ||
{% for contribution in contributions_by_hash_time_shortaddr %} | ||
<li>{{ contribution.2 }} contributed {{ contribution.0 }} at {{ contribution.1 }}</li> | ||
<table> | ||
<tr> | ||
<td>Slot</td> | ||
<td>Who</td> | ||
<td>What</td> | ||
<td>When</td> | ||
</tr> | ||
{% for contribution in contributions_by_slot_hash_time_shortaddr.iter() %} | ||
<tr> | ||
<td>{{ contribution.0 }}</td> | ||
<td>{{ contribution.3 }}</td> | ||
<td>{{ contribution.1 }}</td> | ||
<td>{{ contribution.2 }}</td> | ||
</tr> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</table> | ||
{% endif %} |