ui: homework: set default view to list view

This commit is contained in:
undefined committed 2022-07-27 22:05:45 +08:00
1 parent 340b02bbf2
commit 3b7c8c37e0
3 files changed
+4 -3

No files matched your search

@@ -11,7 +11,7 @@
{{ _('View') }}:
<select class="inline compact select" name="homework_display">
<option value="calendar">{{ _('Calendar View') }}</option>
<option value="list">{{ _('List View') }}</option>
<option value="list" selected>{{ _('List View') }}</option>
</select>
</span>
{% if handler.user.hasPerm(perm.PERM_CREATE_HOMEWORK) %}
@@ -23,7 +23,7 @@
{% if not tdocs.length %}
{{ nothing.render('There is no homework so far ╰(*°▽°*)╯') }}
{% else %}
<ol class="section__list homework__list hasjs--hide">
<ol class="section__list homework__list">
{%- for tdoc in tdocs -%}
<li class="section__list__item homework__item">
<div class="media">