first commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
{% if estimatedTime > 1 %}
|
||||
{{- strings.inMinutes|format( estimatedTime ) -}}
|
||||
{% else %}
|
||||
{{- strings.inMinute|format( estimatedTime ) -}}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,12 @@
|
||||
<tr class="{{ row.status }}{% if row.isRequested %} is-requested{% endif %}{% if row.needsRefresh %} needs-refresh{% endif %}"
|
||||
{% if row.needsRefresh %} title="{{ strings.needsRefresh }}"{% endif %}>
|
||||
<td class="word-count-checkbox">
|
||||
<input type="checkbox" class="requested-type"
|
||||
data-group="{{ row.group }}" data-type="{{ row.type }}"
|
||||
{% if row.isRequested %} checked="checked"{% endif %}
|
||||
{% if countInProgress %} disabled="disabled"{% endif %}"></td>
|
||||
<td>{{ row.typeLabel }}</td>
|
||||
<td><span class="js-row-completed-items">{{ row.completedItems }}</span>/{{ row.countItems }}</td>
|
||||
<td class="js-row-count-words">{{ row.countWords }}</td>
|
||||
<td class="word-count-status">{% include 'estimated-time.twig' with {estimatedTime: row.estimatedTime, strings:strings} %}</td>
|
||||
</tr>
|
||||
@@ -0,0 +1,50 @@
|
||||
{% if not cron_is_on %}
|
||||
<div class="notice notice-warning">
|
||||
<p>{{ strings.cronWarning }}</p>
|
||||
<ol class="ol-decimal">
|
||||
{% for tip in strings.cronTips %}
|
||||
<li>{{ tip }}</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
</div>
|
||||
{% endif %}
|
||||
<form class="js-word-count-report{% if countInProgress %} word-count-in-progress"{% endif %}">
|
||||
|
||||
<button class="start-count alignright button button-small button-secondary"
|
||||
{% if countInProgress or totals.requestedTypes == 0 %} disabled="disabled"{% endif %}>
|
||||
<span class="otgs-ico-refresh"></span> {{ strings.recalculate }}</button>
|
||||
<span class="spinner alignright {% if countInProgress %} is-active{% endif %}"></span>
|
||||
|
||||
<table class="widefat striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{{ strings.contentType }}</th>
|
||||
<th>{{ strings.itemsCount }}</th>
|
||||
<th>{{ strings.wordCount }}</th>
|
||||
<th>{{ strings.estimatedTime }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for post_type in data.post_types %}
|
||||
{% include 'report-row.twig' with {row:post_type, strings:strings, countInProgress:countInProgress} %}
|
||||
{% endfor %}
|
||||
|
||||
{% for package_kind in data.package_kinds %}
|
||||
{% include 'report-row.twig' with {row:package_kind, strings:strings, countInProgress:countInProgress} %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{{ strings.total }}</th>
|
||||
<th><span class="js-total-completed-items">{{ totals.completedItems }}</span>/{{ totals.countItems }}</th>
|
||||
<th class="js-total-count-words">{{ totals.countWords }}</th>
|
||||
<th>{% include 'estimated-time.twig' with {estimatedTime: totals.estimatedTime, strings:strings} %}</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
Reference in New Issue
Block a user