|
1 | 1 | <div class="main">
|
2 |
| -{% with table_key_value = [ |
3 |
| - {"Section":"General information"}, |
| 2 | + |
| 3 | +<div class="sdoc-table_key_value"> |
| 4 | + |
| 5 | +{% with key_value_pair = |
| 6 | + { |
| 7 | + "Section": "General information" |
| 8 | + } |
| 9 | +%} |
| 10 | + {% include "components/table_key_value/index.jinja" %} |
| 11 | +{% endwith %} |
| 12 | + |
| 13 | +{% with key_value_pair = |
4 | 14 | {
|
5 | 15 | "Key":"Project name",
|
6 | 16 | "Value": view_object.project_config.project_title,
|
7 |
| - }, |
| 17 | + } |
| 18 | +%} |
| 19 | + {% include "components/table_key_value/index.jinja" %} |
| 20 | +{% endwith %} |
| 21 | + |
| 22 | +{% with key_value_pair = |
8 | 23 | {
|
9 | 24 | "Key":"Statistics generation date",
|
10 | 25 | "Value": view_object.get_datetime(),
|
11 |
| - }, |
| 26 | + } |
| 27 | +%} |
| 28 | + {% include "components/table_key_value/index.jinja" %} |
| 29 | +{% endwith %} |
| 30 | + |
| 31 | +{% with key_value_pair = |
12 | 32 | {
|
13 | 33 | "Key":"Last modification of project data",
|
14 | 34 | "Value": view_object.traceability_index.strictdoc_last_update.strftime("%Y-%m-%d %H:%M:%S"),
|
15 |
| - }, |
| 35 | + } |
| 36 | +%} |
| 37 | + {% include "components/table_key_value/index.jinja" %} |
| 38 | +{% endwith %} |
| 39 | + |
| 40 | +{% with key_value_pair = |
16 | 41 | {
|
17 | 42 | "Key":"Git commit/release",
|
18 | 43 | "Value": view_object.document_tree_stats.git_commit_hash,
|
19 |
| - }, |
| 44 | + } |
| 45 | +%} |
| 46 | + {% include "components/table_key_value/index.jinja" %} |
| 47 | +{% endwith %} |
| 48 | + |
| 49 | +{% with key_value_pair = |
20 | 50 | {
|
21 | 51 | "Key":"Total documents",
|
22 | 52 | "Value": view_object.document_tree_stats.total_documents,
|
23 |
| - }, |
24 |
| - {"Section":"Sections"}, |
| 53 | + } |
| 54 | +%} |
| 55 | + {% include "components/table_key_value/index.jinja" %} |
| 56 | +{% endwith %} |
| 57 | + |
| 58 | +{% with key_value_pair = |
| 59 | + {"Section":"Sections"} |
| 60 | +%} |
| 61 | + {% include "components/table_key_value/index.jinja" %} |
| 62 | +{% endwith %} |
| 63 | + |
| 64 | +{% with key_value_pair = |
25 | 65 | {
|
26 | 66 | "Key":"Total sections",
|
27 | 67 | "Link": view_object.render_url('search?q=node.is_section'),
|
28 | 68 | "Value": view_object.document_tree_stats.total_sections,
|
29 |
| - }, |
| 69 | + } |
| 70 | +%} |
| 71 | + {% include "components/table_key_value/index.jinja" %} |
| 72 | +{% endwith %} |
| 73 | + |
| 74 | +{% with key_value_pair = |
30 | 75 | {
|
31 | 76 | "Key":"Sections without any text",
|
32 | 77 | "Link": view_object.render_url('search?q=(node.is_section and not node.contains_any_text)'),
|
33 | 78 | "Value": view_object.document_tree_stats.sections_without_text_nodes,
|
34 |
| - }, |
35 |
| - {"Section":"Requirements"}, |
| 79 | + } |
| 80 | +%} |
| 81 | + {% include "components/table_key_value/index.jinja" %} |
| 82 | +{% endwith %} |
| 83 | + |
| 84 | +{% with key_value_pair = |
| 85 | + {"Section":"Requirements"} |
| 86 | +%} |
| 87 | + {% include "components/table_key_value/index.jinja" %} |
| 88 | +{% endwith %} |
| 89 | + |
| 90 | +{% with key_value_pair = |
36 | 91 | {
|
37 | 92 | "Key":"Total requirements",
|
38 | 93 | "Link": view_object.render_url('search?q=node.is_requirement'),
|
39 | 94 | "Value": view_object.document_tree_stats.total_requirements,
|
40 |
| - }, |
| 95 | + } |
| 96 | +%} |
| 97 | + {% include "components/table_key_value/index.jinja" %} |
| 98 | +{% endwith %} |
| 99 | + |
| 100 | +{% with key_value_pair = |
41 | 101 | {
|
42 | 102 | "Key":"Requirements with no UID",
|
43 | 103 | "Link": view_object.render_url('search?q=(node.is_requirement and node["UID"] == None)'),
|
44 | 104 | "Value": view_object.document_tree_stats.requirements_no_uid,
|
45 |
| - }, |
| 105 | + } |
| 106 | +%} |
| 107 | + {% include "components/table_key_value/index.jinja" %} |
| 108 | +{% endwith %} |
| 109 | + |
| 110 | +{% with key_value_pair = |
46 | 111 | {
|
47 | 112 | "Key":"Root-level requirements not connected to by any requirement",
|
48 | 113 | "Link": view_object.render_url('search?q=(node.is_requirement and node.is_root and node["STATUS"] != "Backlog" and not node.has_child_requirements)'),
|
49 | 114 | "Value": view_object.document_tree_stats.requirements_root_no_links,
|
50 |
| - }, |
| 115 | + } |
| 116 | +%} |
| 117 | + {% include "components/table_key_value/index.jinja" %} |
| 118 | +{% endwith %} |
| 119 | + |
| 120 | +{% with key_value_pair = |
51 | 121 | {
|
52 | 122 | "Key":"Non-root-level requirements not connected to any parent requirement",
|
53 | 123 | "Link": view_object.render_url('search?q=(node.is_requirement and not node.is_root and node["STATUS"] != "Backlog" and not node.has_parent_requirements)'),
|
54 | 124 | "Value": view_object.document_tree_stats.requirements_no_links,
|
55 |
| - }, |
| 125 | + } |
| 126 | +%} |
| 127 | + {% include "components/table_key_value/index.jinja" %} |
| 128 | +{% endwith %} |
| 129 | + |
| 130 | +{% with key_value_pair = |
56 | 131 | {
|
57 | 132 | "Key":"Requirements with no RATIONALE",
|
58 | 133 | "Link": view_object.render_url('search?q=(node.is_requirement and node["RATIONALE"] == None)'),
|
59 | 134 | "Value": view_object.document_tree_stats.requirements_no_rationale,
|
60 |
| - }, |
61 |
| - {"Section":"Requirements status"}, |
62 |
| - { |
63 |
| - "Key":"Requirements with no Status", |
64 |
| - "Link": view_object.render_url('search?q=(node.is_requirement and node["STATUS"] == None)'), |
65 |
| - "Value": view_object.document_tree_stats.requirements_status_none, |
66 |
| - }, |
67 |
| - { |
68 |
| - "Key":"Requirements with status Active", |
69 |
| - "Link": view_object.render_url('search?q=(node.is_requirement and node["STATUS"] == "Active")'), |
70 |
| - "Value": view_object.document_tree_stats.requirements_status_active, |
71 |
| - }, |
72 |
| - { |
73 |
| - "Key":"Requirements with status Draft", |
74 |
| - "Link": view_object.render_url('search?q=(node.is_requirement and node["STATUS"] == "Draft")'), |
75 |
| - "Value": view_object.document_tree_stats.requirements_status_draft, |
76 |
| - }, |
77 |
| - { |
78 |
| - "Key":"Requirements with status Backlog", |
79 |
| - "Link": view_object.render_url('search?q=(node.is_requirement and node["STATUS"] == "Backlog")'), |
80 |
| - "Value": view_object.document_tree_stats.requirements_status_backlog, |
81 |
| - }, |
82 |
| - { |
83 |
| - "Key":"Requirements with all other statuses", |
84 |
| - "Link": view_object.render_url('search?q=(node.is_requirement and node["STATUS"] != None and node["STATUS"] != "Backlog" and node["STATUS"] != "Active" and node["STATUS"] != "Draft")'), |
85 |
| - "Value": view_object.document_tree_stats.requirements_status_other, |
86 |
| - }, |
87 |
| - {"Section":"TBD/TBC"}, |
| 135 | + } |
| 136 | +%} |
| 137 | + {% include "components/table_key_value/index.jinja" %} |
| 138 | +{% endwith %} |
| 139 | + |
| 140 | +{% if view_object.document_status_have_status() %} |
| 141 | + |
| 142 | +{% with key_value_pair = |
| 143 | + {"Section": "Requirements status breakdown"} |
| 144 | +%} |
| 145 | + {% include "components/table_key_value/index.jinja" %} |
| 146 | +{% endwith %} |
| 147 | + |
| 148 | +{% for status_, status_count_ in view_object.document_tree_stats.requirements_status_breakdown.items() %} |
| 149 | +{% with key_value_pair = |
| 150 | + { |
| 151 | + "Key":"Requirements with status "~status_, |
| 152 | + "Link": view_object.render_url('search?q=(node.is_requirement and node["STATUS"] == status_)'), |
| 153 | + "Value": status_count_, |
| 154 | + } |
| 155 | +%} |
| 156 | + {% include "components/table_key_value/index.jinja" %} |
| 157 | +{% endwith %} |
| 158 | +{% endfor %} |
| 159 | + |
| 160 | +{% endif %} |
| 161 | + |
| 162 | +{% with key_value_pair = |
| 163 | + {"Section":"TBD/TBC"} |
| 164 | +%} |
| 165 | + {% include "components/table_key_value/index.jinja" %} |
| 166 | +{% endwith %} |
| 167 | + |
| 168 | +{% with key_value_pair = |
88 | 169 | {
|
89 | 170 | "Key":"Total TBD",
|
90 | 171 | "Link": view_object.render_url('search?q=node.contains("TBD")'),
|
91 | 172 | "Value": view_object.document_tree_stats.total_tbd,
|
92 |
| - }, |
| 173 | + } |
| 174 | +%} |
| 175 | + {% include "components/table_key_value/index.jinja" %} |
| 176 | +{% endwith %} |
| 177 | + |
| 178 | +{% with key_value_pair = |
93 | 179 | {
|
94 | 180 | "Key":"Total TBC",
|
95 | 181 | "Link": view_object.render_url('search?q=node.contains("TBC")'),
|
96 | 182 | "Value": view_object.document_tree_stats.total_tbc,
|
97 |
| - }, |
98 |
| -] %} |
| 183 | + } |
| 184 | +%} |
99 | 185 | {% include "components/table_key_value/index.jinja" %}
|
100 | 186 | {% endwith %}
|
| 187 | + |
| 188 | +</div>{# / .sdoc-table_key_value #} |
| 189 | + |
101 | 190 | </div>{# / .main #}
|
0 commit comments