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 Dec 8, 2023
1 parent c37e2d7 commit a30157c
Showing 1 changed file with 38 additions and 31 deletions.
69 changes: 38 additions & 31 deletions glados-web/templates/contentkey_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,44 @@
{% 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: <a href="/content/id/{{ content_id }}/">{{ content_id }}</a></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#: <a style="margin-right: 4px;" href="/audit/id/{{ content_audit.id }}">{{ content_audit.id
}}</a><span
class="badge text-bg-{% if content_audit.is_success() %}success{% else %}danger{% endif %}">{% if
content_audit.is_success() %} Success{% else %} Fail{% endif %}</span>
<span>{{ content_audit.strategy_as_text() }}</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 %}

0 comments on commit a30157c

Please sign in to comment.