|
|
@ -1,4 +1,4 @@ |
|
|
|
{% macro recursive_post_tree(mode, namespace, tree) %} |
|
|
|
{% macro recursive_post_tree(mode, namespace, writable, tree) %} |
|
|
|
{% import _self as self %} |
|
|
|
{% import _self as self %} |
|
|
|
{% if tree | length %} |
|
|
|
{% if tree | length %} |
|
|
|
<ul> |
|
|
|
<ul> |
|
|
@ -23,9 +23,11 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<a rel="nofollow" href="{{ path('room_namespace', { mode : mode, namespace : namespace, _fragment : post.txid }) }}" title="{{ post.time | date('c') }}">{{ post.time | format_ago }}</a> |
|
|
|
<a rel="nofollow" href="{{ path('room_namespace', { mode : mode, namespace : namespace, _fragment : post.txid }) }}" title="{{ post.time | date('c') }}">{{ post.time | format_ago }}</a> |
|
|
|
|
|
|
|
{% if writable %} |
|
|
|
• |
|
|
|
• |
|
|
|
<a rel="nofollow" href="{{ path('room_namespace', { mode : mode, namespace : namespace, txid : post.txid, _fragment : post.txid }) }}">{{ 'reply' | trans }}</a> |
|
|
|
<a rel="nofollow" href="{{ path('room_namespace', { mode : mode, namespace : namespace, txid : post.txid, _fragment : post.txid }) }}">{{ 'reply' | trans }}</a> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
<small> |
|
|
|
<small> |
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 16 16"> |
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 16 16"> |
|
|
|
<path d="M3.5 11.5a3.5 3.5 0 1 1 3.163-5H14L15.5 8 14 9.5l-1-1-1 1-1-1-1 1-1-1-1 1H6.663a3.5 3.5 0 0 1-3.163 2M2.5 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/> |
|
|
|
<path d="M3.5 11.5a3.5 3.5 0 1 1 3.163-5H14L15.5 8 14 9.5l-1-1-1 1-1-1-1 1-1-1-1 1H6.663a3.5 3.5 0 0 1-3.163 2M2.5 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/> |
|
|
@ -41,7 +43,7 @@ |
|
|
|
}} |
|
|
|
}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% if post.tree is defined and post.tree | length %} |
|
|
|
{% if post.tree is defined and post.tree | length %} |
|
|
|
{{ self.recursive_post_tree(mode, namespace, post.tree) }} |
|
|
|
{{ self.recursive_post_tree(mode, namespace, writable, post.tree) }} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
@ -53,7 +55,7 @@ |
|
|
|
{% block head_title_content %}{{ request.get('namespace') | keva_namespace_value }} - {{ app.name }}{% endblock %} |
|
|
|
{% block head_title_content %}{{ request.get('namespace') | keva_namespace_value }} - {{ app.name }}{% endblock %} |
|
|
|
{% block main_content %} |
|
|
|
{% block main_content %} |
|
|
|
{% if tree %} |
|
|
|
{% if tree %} |
|
|
|
{{ recursive_post_tree(request.get('mode'), request.get('namespace'), tree) }} |
|
|
|
{{ recursive_post_tree(request.get('mode'), request.get('namespace'), writable, tree) }} |
|
|
|
<a name="latest"></a> |
|
|
|
<a name="latest"></a> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<ul> |
|
|
|
<ul> |
|
|
@ -66,6 +68,7 @@ |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |
|
|
|
{% block footer_content %} |
|
|
|
{% block footer_content %} |
|
|
|
|
|
|
|
{% if writable %} |
|
|
|
{{ |
|
|
|
{{ |
|
|
|
render( |
|
|
|
render( |
|
|
|
controller( |
|
|
|
controller( |
|
|
@ -76,4 +79,5 @@ |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
}} |
|
|
|
}} |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
{% endblock %} |
|
|
|
{% endblock %} |