diff --git a/client/tailwind.config.js b/client/tailwind.config.js
index bd222674..5994b410 100644
--- a/client/tailwind.config.js
+++ b/client/tailwind.config.js
@@ -4,7 +4,7 @@ module.exports = {
content: [
'./index.html',
'./src/**/*.{vue,js,ts,jsx,tsx}',
- // '../server/vbv_lernwelt/**/*.{html,js}',
+ // '../server/vbv_lernwelt/**/*.{html,js,py}',
],
theme: {
fontFamily: {
diff --git a/server/vbv_lernwelt/learnpath/models.py b/server/vbv_lernwelt/learnpath/models.py
index f2d8344b..14fb1f64 100644
--- a/server/vbv_lernwelt/learnpath/models.py
+++ b/server/vbv_lernwelt/learnpath/models.py
@@ -150,6 +150,13 @@ class LearningSequence(Page):
def get_admin_display_title(self):
return f'{self.icon} {self.draft_title}'
+ def get_admin_display_title_html(self):
+ return f'''
+
+ <{self.icon} style="height: 32px; width: 32px;">{self.icon}>
+ {self.draft_title}
+ '''
+
def full_clean(self, *args, **kwargs):
super(LearningSequence, self).full_clean(*args, **kwargs)
@@ -168,6 +175,9 @@ class LearningUnit(Page):
def get_serializer_class(cls):
return get_it_serializer_class(cls, field_names=['id', 'title', 'slug', 'type', 'translation_key', 'children'])
+ def get_admin_display_title_html(self):
+ return f'{self.draft_title}'
+
class LearningUnitQuestion(Page):
parent_page_types = ['learnpath.LearningUnit']
@@ -220,6 +230,13 @@ class LearningContent(Page):
return display_title
+ def get_admin_display_title_html(self):
+ return f'''
+
+
| + {% block parent_page_title %} + {% endblock %} + | +{% if parent_page.latest_revision_created_at %}
+
+ {% blocktrans trimmed with time_period=parent_page.latest_revision_created_at|timesince %}{{ time_period }}
+ ago{% endblocktrans %} {% endif %} |
+ + {% if not parent_page.is_root %} + {{ parent_page.content_type.model_class.get_verbose_name }} + {% endif %} + | ++ {% if not parent_page.is_root %} + {% include "wagtailadmin/shared/page_status_tag.html" with page=parent_page %} + {% endif %} + | ++ | |
| {% if orderable and ordering == "ord" %}
+ {% trans 'Drag' %} {% endif %} |
+ {% elif show_bulk_actions %}
+ {% include "wagtailadmin/bulk_actions/listing_checkbox_cell.html" with obj_type="page" obj=page aria_labelledby_prefix="page_" aria_labelledby=page.pk|unlocalize aria_labelledby_suffix="_title" %}
+ {% endif %}
+ + {{ page.type }} + {% block page_title %} + {% endblock %} + | + {% if show_parent %} ++ {% block page_parent_page_title %} + {% with page.get_parent as parent %} + {% if parent %} + {{ parent.specific_deferred.get_admin_display_title }} + {% endif %} + {% endwith %} + {% endblock %} + | + {% endif %} +{% if page.latest_revision_created_at %}
+
+ {% blocktrans trimmed with time_period=page.latest_revision_created_at|timesince %}{{ time_period }}
+ ago{% endblocktrans %} {% endif %} |
+ {{ page.content_type.model_class.get_verbose_name }} | ++ {% include "wagtailadmin/shared/page_status_tag.html" with page=page %} + | + {% block page_navigation %} + {% endblock %} +