Small fix to show 5 elements in corpus view list.

This commit is contained in:
Stephan Porada 2020-09-30 10:17:33 +02:00
parent 28213574f4
commit 370a002af3
2 changed files with 3 additions and 2 deletions

View File

@ -143,7 +143,7 @@ RessourceList.dataMappers = {
RessourceList.options = { RessourceList.options = {
// common list.js options for 4 rows per page etc. // common list.js options for 5 rows per page etc.
common: { common: {
page: 5, page: 5,
pagination: [ pagination: [

View File

@ -78,13 +78,14 @@
</tr> </tr>
</thead> </thead>
<tbody class="list"> <tbody class="list">
{% if corpus_files|length == 0 %}
<tr class="show-if-only-child"> <tr class="show-if-only-child">
<td colspan="5"> <td colspan="5">
<span class="card-title"><i class="material-icons left">book</i>Nothing here...</span> <span class="card-title"><i class="material-icons left">book</i>Nothing here...</span>
<p>Corpus is empty. Add texts using the option below.</p> <p>Corpus is empty. Add texts using the option below.</p>
</td> </td>
</tr> </tr>
</tbody> {% endif %}
</table> </table>
<ul class="pagination paginationBottom"></ul> <ul class="pagination paginationBottom"></ul>
</div> </div>