webapp/templates/default/main/namespace.html.twig

69 lines
2.8 KiB
Twig
Raw Normal View History

2024-02-12 22:58:27 +00:00
{% extends 'default/layout.html.twig' %}
2024-02-14 20:01:21 +00:00
{% block title %}{{ request.get('namespace') | namespace_title }} - {% if request.get('part') > 1 %}{{ 'Part' | trans | upper }} {{ request.get('part') }} - {% endif %}{{ app.name }}{% endblock %}
2024-02-12 23:48:23 +00:00
{% block favicon %}<link rel="icon" href="{{ request.get('namespace') | jIdenticon }}" />{% endblock %}
2024-02-12 22:58:27 +00:00
{% block body %}
<div class="t-center px-16 pt-54">
<div class="mx-a mw-560 px-16">
<div class="mb-20">
<a class="logo f-s-20 c-0" href="{{ path('main_index') }}">{{ app.name }}</a>
</div>
<div class="mx-a mw-560 px-16 pb-16">
<img class="br-50 shine" src="{{ request.get('namespace') | jIdenticon }}" alt="{{ request.get('namespace') }}" />
</div>
2024-02-14 20:01:21 +00:00
<div class="mb-36 c-1">
{{ request.get('namespace') | namespace_title }}
</div>
2024-02-12 22:58:27 +00:00
</div>
</div>
<div class="t-center px-16 pb-36">
<div class="b-g"></div>
</div>
{% for record in records %}
<div class="t-center px-16">
<div class="mx-a mw-560 px-16">
<a class="d-block" href="{{ path('main_transaction',{'transaction':record.transaction}) }}">
<div class="f-s-16 mb-16 of-a">
2024-02-14 17:51:44 +00:00
{{ record.key | format_type(record.type.key) }}
2024-02-12 22:58:27 +00:00
</div>
<div class="mb-20 of-a">
2024-02-14 19:05:20 +00:00
{{ record.value | format_type(record.type.value) | nl2br }}
2024-02-12 22:58:27 +00:00
</div>
<div class="f-s-12">
{{ record.time | format_date }} {{ 'in' | trans }} {{ record.block }}
</div>
</a>
</div>
</div>
<div class="t-center px-16 py-27">
<div class="b-g"></div>
</div>
{% endfor %}
<div class="t-center pt-16 pb-27">
2024-02-14 02:15:30 +00:00
{% if request.get('part') > 1 %}
2024-02-12 22:58:27 +00:00
<a rel="nofollow" href="{{
path(
'main_namespace',
{
'part':request.get('part') - 1,
'search':request.get('search'),
'namespace':request.get('namespace')
}
2024-02-13 02:12:19 +00:00
) }}">{{ 'newer' | trans }}</a>
2024-02-12 22:58:27 +00:00
|
{% endif %}
<a rel="nofollow" href="{{
path(
'main_namespace',
{
'part':(request.get('part') ? request.get('part') : 1) + 1,
'search':request.get('search'),
'namespace':request.get('namespace')
}
2024-02-13 02:12:19 +00:00
) }}">{{ 'older' | trans }}</a>
2024-02-12 22:58:27 +00:00
</div>
2024-02-13 01:47:28 +00:00
<div class="t-center px-16">
<div class="pb-16 f-s-12">
2024-02-14 02:10:30 +00:00
<a href="{{ path('main_namespace',{'namespace':request.get('namespace'),'mode':'rss'}) }}">{{ 'RSS' | trans }}</a>
2024-02-13 01:47:28 +00:00
</div>
</div>
2024-02-12 22:58:27 +00:00
{% endblock %}