|
39 | 39 | {%- endif %} |
40 | 40 |
|
41 | 41 | {%- call ui.accordion_item(_("Additional details")) %} |
42 | | - {%- call ui.table_block(bordered=true, striped=true) %} |
43 | | - {%- call ui.table_head_block() %} |
44 | | - {{ ui.table_row([_("Field"), _("Value")], heading=true) }} |
45 | | - {%- endcall %} |
46 | | - |
47 | | - {%- call ui.table_body_block() %} |
48 | 42 |
|
| 43 | + {%- call ui.util.call(ui.table, bordered=true, striped=true) -%} |
| 44 | + {{ ui.table_head(ui.table_row(cells=[_("Field"), _("Value")], heading=true)) }} |
49 | 45 |
|
| 46 | + {%- call ui.util.call(ui.table_body) -%} |
50 | 47 | {%- if pkg_dict.url %} |
51 | | - {%- call ui.table_row_block() %} |
52 | | - {{ ui.table_cell(_('Source'), heading=true) }} |
53 | | - {{ ui.table_cell(ui.link(pkg_dict.url)) }} |
54 | | - {%- endcall %} |
| 48 | + {{ ui.table_row(ui.table_cell(_('Source'), heading=true) ~ ui.table_cell(ui.link(pkg_dict.url))) }} |
55 | 49 | {%- endif %} |
56 | 50 |
|
57 | 51 | {%- if pkg_dict.author_email %} |
58 | | - {%- call ui.table_row_block() %} |
59 | | - {{ ui.table_cell(_("Author"), heading=true) }} |
60 | | - {{ ui.table_cell(h.mail_to(email_address=pkg_dict.author_email, name=pkg_dict.author)) }} |
61 | | - {%- endcall %} |
| 52 | + {{ ui.table_row(ui.table_cell(_("Author"), heading=true) ~ ui.table_cell(h.mail_to(email_address=pkg_dict.author_email, name=pkg_dict.author))) }} |
62 | 53 |
|
63 | 54 | {%- elif pkg_dict.author %} |
64 | | - {%- call ui.table_row_block() %} |
65 | | - {{ ui.table_cell(_("Author"), heading=true) }} |
66 | | - {{ ui.table_cell(pkg_dict.author) }} |
67 | | - {%- endcall %} |
| 55 | + {{ ui.table_row(ui.table_cell(_("Author"), heading=true) ~ ui.table_cell(pkg_dict.author)) }} |
68 | 56 | {%- endif %} |
69 | 57 |
|
70 | 58 | {%- if pkg_dict.maintainer_email %} |
71 | | - {%- call ui.table_row_block() %} |
72 | | - {{ ui.table_cell(_('Maintainer'), heading=true) }} |
73 | | - {{ ui.table_cell(h.mail_to(email_address=pkg_dict.maintainer_email, name=pkg_dict.maintainer)) }} |
74 | | - {%- endcall %} |
| 59 | + {{ ui.table_row(ui.table_cell(_('Maintainer'), heading=true) ~ ui.table_cell(h.mail_to(email_address=pkg_dict.maintainer_email, name=pkg_dict.maintainer))) }} |
75 | 60 |
|
76 | 61 | {%- elif pkg_dict.maintainer %} |
77 | | - {%- call ui.table_row_block() %} |
78 | | - {{ ui.table_cell(_('Maintainer'), heading=true) }} |
79 | | - {{ ui.table_cell(pkg_dict.maintainer) }} |
80 | | - {%- endcall %} |
| 62 | + {{ ui.table_row(ui.table_cell(_('Maintainer'), heading=true) ~ ui.table_cell(pkg_dict.maintainer)) }} |
81 | 63 | {%- endif %} |
82 | 64 |
|
83 | 65 | {%- if pkg_dict.version %} |
84 | | - {%- call ui.table_row_block() %} |
85 | | - {{ ui.table_cell(_("Version"), heading=true) }} |
86 | | - {{ ui.table_cell(pkg_dict.version) }} |
87 | | - {%- endcall %} |
| 66 | + {{ ui.table_row(ui.table_cell(_("Version"), heading=true) ~ ui.table_cell(pkg_dict.version)) }} |
88 | 67 | {%- endif %} |
89 | 68 |
|
90 | 69 | {%- if h.check_access('package_update',{'id':pkg_dict.id}) %} |
91 | | - {%- call ui.table_row_block() %} |
92 | | - {{ ui.table_cell(_("State"), heading=true) }} |
93 | | - {{ ui.table_cell(_(pkg_dict.state)) }} |
94 | | - {%- endcall %} |
| 70 | + {{ ui.table_row(ui.table_cell(_("State"), heading=true) ~ ui.table_cell(_(pkg_dict.state))) }} |
95 | 71 | {%- endif %} |
96 | 72 |
|
97 | 73 | {%- if pkg_dict.metadata_modified %} |
98 | | - {%- call ui.table_row_block() %} |
99 | | - {{ ui.table_cell(_("Last Updated"), heading=true) }} |
100 | | - {{ ui.table_cell(ui.datetime(pkg_dict.metadata_modified)) }} |
101 | | - {%- endcall %} |
| 74 | + {{ ui.table_row(ui.table_cell(_("Last Updated"), heading=true) ~ ui.table_cell(ui.datetime(pkg_dict.metadata_modified))) }} |
102 | 75 | {%- endif %} |
103 | 76 |
|
104 | 77 | {%- if pkg_dict.metadata_created %} |
105 | | - {%- call ui.table_row_block() %} |
106 | | - {{ ui.table_cell(_("Created"), heading=true) }} |
107 | | - {{ ui.table_cell(ui.datetime(pkg_dict.metadata_created)) }} |
108 | | - {%- endcall %} |
| 78 | + {{ ui.table_row(ui.table_cell(_("Created"), heading=true) ~ ui.table_cell(ui.datetime(pkg_dict.metadata_created))) }} |
109 | 79 | {%- endif %} |
110 | 80 |
|
111 | 81 | {%- block extras scoped %} |
112 | 82 | {%- for extra in h.sorted_extras(pkg_dict.extras) %} |
113 | 83 | {% set key, value = extra %} |
114 | | - {%- call ui.table_row_block() %} |
115 | | - {{ ui.table_cell(_(key|e), heading=true) }} |
116 | | - {{ ui.table_cell(value) }} |
117 | | - {%- endcall %} |
| 84 | + {{ ui.table_row(ui.table_cell(_(key|e), heading=true) ~ ui.table_cell(value)) }} |
118 | 85 | {%- endfor %} |
119 | 86 | {%- endblock %} |
120 | 87 |
|
121 | 88 | {%- endcall %} |
122 | 89 |
|
123 | | - {%- endcall %} |
| 90 | + {%- endcall %} |
| 91 | + |
| 92 | + |
124 | 93 | {%- endcall %} |
125 | 94 | {%- endcall %} |
126 | 95 |
|
|
0 commit comments