forked from phpDocumentor/template.clean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnamespace.html.twig
116 lines (105 loc) · 4.62 KB
/
namespace.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{% extends 'layout.html.twig' %}
{% block content %}
<section class="row-fluid">
<div class="span2 sidebar">
{% set namespace = project.namespace %}
{{ block('sidebarNamespaces') }}
</div>
</section>
<section class="row-fluid">
<div class="span10 offset2">
<div class="row-fluid">
<div class="span8 content namespace">
<nav>
{#<a href="" class="pull-left">« NamespaceAssembler</a>#}
{{ node.parent|route|raw }}
{#<a href="" class="pull-right">ClassAssembler »</a>#}
</nav>
<h1><small>{{ node.parent.fullyQualifiedStructuralElementName }}</small>{{ node.name }}</h1>
{% if node.children|length > 0 %}
<h2>Namespaces</h2>
<table class="table table-hover">
{% for namespace in node.children|sort_asc %}
<tr>
<td>{{ namespace|route('class:short')|raw }}</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if node.traits|length > 0 %}
<h2>Traits</h2>
<table class="table table-hover">
{% for trait in node.traits|sort_asc %}
<tr>
<td>{{ trait|route('class:short')|raw }}</td>
<td><em>{{ trait.summary }}</em></td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if node.interfaces|length > 0 %}
<h2>Interfaces</h2>
<table class="table table-hover">
{% for interface in node.interfaces|sort_asc %}
<tr>
<td>{{ interface|route('class:short')|raw }}</td>
<td><em>{{ interface.summary }}</em></td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if node.classes|length > 0 %}
<h2>Classes</h2>
<table class="table table-hover">
{% for class in node.classes|sort_asc %}
<tr>
<td>{{ class|route('class:short')|raw }}</td>
<td><em>{{ class.summary }}</em></td>
</tr>
{% endfor %}
</table>
{% endif %}
</div>
<aside class="span4 detailsbar">
<dl>
<dt>Namespace hierarchy</dt>
<dd class="hierarchy">
{% set namespace = node.parent %}
{% block hierarchy_element %}
{% if namespace %}
{% set child = namespace %}
{% set namespace = namespace.parent %}
{{ block('hierarchy_element') }}
<div class="namespace-wrapper">{{ child|route|raw }}</div>
{% endif %}
{% endblock %}
<div class="namespace-wrapper">{{ node.fullyQualifiedStructuralElementName}}</div>
</dd>
</dl>
</aside>
</div>
{% if node.constants|length > 0 %}
<div class="row-fluid">
<section class="span8 content namespace">
<h2>Constants</h2>
</section>
<aside class="span4 detailsbar"></aside>
</div>
{% for constant in node.constants|sort_asc %}
{{ block('constant') }}
{% endfor %}
{% endif %}
{% if node.functions|length > 0 %}
<div class="row-fluid">
<section class="span8 content namespace">
<h2>Functions</h2>
</section>
<aside class="span4 detailsbar"></aside>
</div>
{% for method in node.functions|sort_asc %}
{{ block('method') }}
{% endfor %}
{% endif %}
</div>
</section>
{% endblock %}