mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Implemented view for node
This commit is contained in:
6
application/templates/node/node.html.twig
Normal file
6
application/templates/node/node.html.twig
Normal file
@@ -0,0 +1,6 @@
|
||||
{% extends "frames/default.html.twig" %}
|
||||
{% block title %}
|
||||
{% trans %}
|
||||
Node
|
||||
{% endtrans %}
|
||||
{% endblock %}
|
13
application/templates/node/structure/_list.html.twig
Normal file
13
application/templates/node/structure/_list.html.twig
Normal file
@@ -0,0 +1,13 @@
|
||||
{% if nodeList.isEmpty %}
|
||||
{% trans %}
|
||||
This list doesn't contain elements.
|
||||
{% endtrans %}
|
||||
{% else %}
|
||||
<ul>
|
||||
{% for node in nodeList %}
|
||||
<li><a href="{{ path('app_node_show',{'id':node.id}) }}" class=" nav-link"> <i
|
||||
class="fas fa-globe"></i> {% trans %}Node{% endtrans %} {{ node.id }}
|
||||
</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
34
application/templates/node/view/standard.html.twig
Normal file
34
application/templates/node/view/standard.html.twig
Normal file
@@ -0,0 +1,34 @@
|
||||
{% extends "node/node.html.twig" %}
|
||||
{% block content %}
|
||||
<h1>
|
||||
{% trans %}
|
||||
Node
|
||||
{% endtrans %}
|
||||
#
|
||||
{{ node.id }}
|
||||
</h1>
|
||||
{% trans %}
|
||||
Manages
|
||||
{% endtrans %}
|
||||
<a href="{{ path('app_source_show',{'id':node.source.id})}}"> {% trans with {'%node.source.id%':node.source.id}%}
|
||||
source #%node.source.id% {% endtrans %}
|
||||
</a>
|
||||
.
|
||||
<h2>
|
||||
{% trans %}
|
||||
Relatives
|
||||
{% endtrans %}
|
||||
</h2>
|
||||
<h3>
|
||||
{% trans %}
|
||||
First Generation Parents
|
||||
{% endtrans %}
|
||||
</h3>
|
||||
{% include "node/structure/_list.html.twig" with {'nodeList':node.parents}%}
|
||||
<h3>
|
||||
{% trans %}
|
||||
First Generation Childs
|
||||
{% endtrans %}
|
||||
</h3>
|
||||
{% include "node/structure/_list.html.twig" with {'nodeList':node.childs}%}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user