简化模块加载

deprecated hydro-build
This commit is contained in:
undefined committed 2020-07-15 20:46:45 +08:00
1 parent 8aef05a375
commit 8f6968bbbd
41 files changed
+1361 -1957

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@
columns:4,
label:'Rated',
name:'rated',
placeholder:_('rated'),
placeholder:_('Is rated'),
value:tdoc.rated|default(true),
row:false
}) }}
+1 -1
View File
@@ -67,7 +67,7 @@
{% endfor %}
</select>
<button type="submit" class="button hasjs--hide">
{{ _('Go') }}
{{ _('Search') }}
</button>
</form>
</div>
+1 -12
View File
@@ -19,7 +19,7 @@
<div class="section__header">
<h1 class="section__title">{{ _('Installed Modules') }}</h1>
<div class="section__tools">
<button class="primary rounded button" name="add_module"><span class="icon icon-add"></span> {{ _('Add module') }}</button>
<button class="primary rounded button" name="add_module"><span class="icon icon-add"></span> {{ _('Add Module') }}</button>
<a class="tool-button" href="{{ url('wiki', page='help', anchor='module') }}"><span class="icon icon-help"></span> {{ _("What's module?") }}</a>
</div>
</div>
@@ -30,7 +30,6 @@
<col class="col--desc">
<col class="col--size">
<col class="col--version">
<col class="col--action">
</colgroup>
<thead>
<tr>
@@ -38,7 +37,6 @@
<th class="col--desc">{{ _('Description') }}</th>
<th class="col--size">{{ _('Size') }}</th>
<th class="col--version">{{ _('Version') }}</th>
<th class="col--action">{{ _('Action') }}</th>
</tr>
</thead>
<tbody>
@@ -48,15 +46,6 @@
<td class="col--desc">{{ _(module.description|default(_('None'))) }}</td>
<td class="col--size">{{ size(module.size) if module.size else '?' }}</td>
<td class="col--version">{{ module.version|default('?') }}</td>
<td class="col--action">
<form method="post">
<input type="hidden" name="operation" value="delete">
<input type="hidden" name="id" value="{{ module.filename }}">
<input type="hidden" name="csrfToken" value="{{ handler.csrfToken }}">
<input type="hidden" name="csrfToken" value="{{ handler.csrfToken }}">
<input type="submit" class="typo-a" value="{{ _('Delete') }}">
</form>
</td>
</tr>
{% endfor %}
</tbody>
+1 -1
View File
@@ -5,7 +5,7 @@
<p><b>{{ _('Current dataset comes from') }} <a href="{{ pdoc.data.split('from:')[1] }}" target="_blank">{{ pdoc.data.split('from:')[1] }}</a></b></p>
{% else %}
<p>{{ _('Current dataset: {0}').format((pdoc['data'] or _('(None)')).toString()) }}</p>
<p>{{ _('MD5: {0}').format(md5 or _('(None)')) }}</p>
<p>{{ _('MD5') }}: {{ md5|default(_('(None)'))) }}</p>
{% endif %}
<p>{{ _('New dataset') }}:
<input type="hidden" name="csrfToken" value="{{ handler.csrfToken }}">