{% block css %}
{{ macros.css_sortable_table() }}
+.nowrap {
+ text-wrap-mode: nowrap;
+}
{% endblock %}
</p>
<table id="sortable_table">
<tr>
+<th><button id="clickable:-last_updates" class="sorter">last update</button></th>
<th><button id="clickable:size" class="sorter">size</button></th>
<th><button id="clickable:duration" class="sorter">duration</button></th>
-<th>actions</th>
-<th>tags <button id="clickable:n_tags" class="sorter">count</button></th>
+<th>add as …</th>
+<th class="nowrap">tags <button id="clickable:n_tags" class="sorter">count</button></th>
<th><button id="clickable:rel_path" class="sorter">path</button></th>
-<th><button id="clickable:-last_updates" class="sorter">last update</button></th>
</tr>
</table>
{% endblock %}
CMD_ADD_NEXT,
CMD_ADD_PLAY,
IDX_START,
- LABEL_ADD_NEXT,
- LABEL_ADD_PLAY,
LEN_EMPTY,
PARAM_TAG_NEEDED,
PATH_FILES_JSON,
tr,
file
) => {
+ addTdTo(
+ tr,
+ {"textContent": file.last_update}
+ );
addTdTo(
tr,
{"textContent": file.size}
{"textContent": file.duration}
);
const tdInject = addTdTo(tr);
+ tdInject.classList.add("nowrap");
addPlayerBtnTo(
tdInject,
- LABEL_ADD_NEXT,
+ "next",
`${CMD_ADD_NEXT}_${file.digest}`,
!file.present
);
addPlayerBtnTo(
tdInject,
- LABEL_ADD_PLAY,
+ "now",
`${CMD_ADD_PLAY}_${file.digest}`,
!file.present
);
file.rel_path,
`${PATH_PREFIX_FILE}${file.digest}`
);
- addTdTo(
- tr,
- {"textContent": file.last_update}
- );
};
const updateFilesList = async ( // eslint-disable-line one-var