Skip to content

Commit

Permalink
Messed up on rebase so quickly implemented the changes again
Browse files Browse the repository at this point in the history
  • Loading branch information
KaydenML committed Nov 3, 2023
1 parent dc05b2a commit ef46e40
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 27 deletions.
63 changes: 37 additions & 26 deletions glados-web/templates/contentkey_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,43 @@
{% block title %}Content Key: {{ content_key_model.key_as_hex() }}{% endblock %}

{% block content %}
<div class="row">
<h1>Content Key: {{ content_key_model.key_as_hex() }}</h1>
</div>
<div class="row">
<div class="col">
<ul>
<li>Database ID: {{ content_key_model.id }}</li>
<li>Content Key: {{ content_key }}</li>
<li>Content Id: {{ content_id }}</li>
<li>Kind: {{ content_kind }}</li>
{% if block_number.is_some() %}
<li>Block number: <a href="https://etherscan.io/block/{{ block_number.unwrap() }}">{{ block_number.unwrap()
}}</a></li>
{% else %}{% endif %}
</ul>
<ul>
<div class="row">
<h1>Content Key: {{ content_key_model.key_as_hex() }}</h1>
</div>
<div class="col">
<h3>Content Audits</h3>
<ul>
{% for content_audit in contentaudit_list %}
<li>Audit#: {{ content_audit.id }} <span class="badge text-bg-{% if content_audit.is_success() %}success{% else %}danger{% endif %}">{% if content_audit.is_success() %}Success{% else %}Fail{% endif %}</span></li>
{% else %}
<li>No audits</li>
{% endfor %}
</ul>
<div class="card shadow-sm content-card">
<div class="card-body">
<div class="row">
<div class="col">
<div>
<div>

</div>
</div>
<ul>
<li>Database ID: {{ content_key_model.id }}</li>
<li>Content Key: {{ content_key }}</li>
<li>Content Id: {{ content_id }}</li>
<li>Kind: {{ content_kind }}</li>
{% if block_number.is_some() %}
<li>Block number: {{ block_number.unwrap() }}</li>
{% else %}{% endif %}
</ul>
</div>
<div class="col">
<h3>Content Audits</h3>
<ul>
{% for content_audit in contentaudit_list %}
<li>Audit#: {{ content_audit.id }} <span
class="badge text-bg-{% if content_audit.is_success() %}success{% else %}danger{% endif %}">{% if content_audit.is_success() %}Success{% else %}Fail{% endif %}</span>
</li>
{% else %}
<li>No audits</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</ul>
{% endblock %}
1 change: 0 additions & 1 deletion glados-web/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="/static/js/piechart.js"></script>
<script src="/static/js/radiusdensity.js"></script>
<link href="/static/css/homepage.css" rel="stylesheet">
{% endblock %}

{% block content %}
Expand Down

0 comments on commit ef46e40

Please sign in to comment.