Skip to content

Commit

Permalink
Update dashboard.html
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 10, 2024
1 parent 864f0a4 commit c4b1d56
Showing 1 changed file with 53 additions and 16 deletions.
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 %}

0 comments on commit c4b1d56

Please sign in to comment.