-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
16 deletions.
There are no files selected for viewing
69 changes: 53 additions & 16 deletions
69
blockchain_integration/pi_network/PiFusion/pi_fusion_dashboard/templates/dashboard.html
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,16 +1,53 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>PiFusion Dashboard</title> | ||
</head> | ||
<body> | ||
<h1>PiFusion Dashboard</h1> | ||
<ul> | ||
{% for node in nodes %} | ||
<li> | ||
{{ node.name }} (Reputation: {{ node.reputation }}, Incentivization: {{ node.incentivization }}) | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</body> | ||
</html> | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<h1>PI Fusion Dashboard</h1> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<h2>Node Rankings</h2> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Rank</th> | ||
<th>Node ID</th> | ||
<th>Node Name</th> | ||
<th>Reputation</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for node in nodes %} | ||
<tr> | ||
<td>{{ loop.index }}</td> | ||
<td>{{ node.id }}</td> | ||
<td>{{ node.name }}</td> | ||
<td>{{ node.reputation }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
<div class="col-md-6"> | ||
<h2>Transaction Activity</h2> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Transaction ID</th> | ||
<th>Type</th> | ||
<th>Amount</th> | ||
<th>Timestamp</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for transaction in transactions %} | ||
<tr> | ||
<td>{{ transaction.id }}</td> | ||
<td>{{ transaction.type }}</td> | ||
<td>{{ transaction.amount }}</td> | ||
<td>{{ transaction.timestamp }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
{% endblock %} |