change generic views to DetailViews
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
</a>
|
||||
|
||||
{% for etherpad in etherpads %}
|
||||
<a href="{{ etherpad.etherpad_key }}" class="flex justify-between items-center gap-2">
|
||||
<a href="{{ etherpad.get_absolute_url }}" class="flex justify-between items-center gap-2">
|
||||
<h3 class="text-gray-800 dark:text-gray-200">{{ etherpad.title }}</h2>
|
||||
<span class=" text-gray-700 dark:text-gray-300">{{ etherpad.date }}<span class="ml-2 hidden sm:inline-block"><i class="fa-solid fa-angle-right text-gray-400 dark:text-gray-600"></i></span>
|
||||
</a>
|
||||
@@ -13,7 +13,6 @@
|
||||
<span class="cursor-default">{{ active_topic.title }}</span>
|
||||
</aside>
|
||||
|
||||
<!-- TODO: description -->
|
||||
{% if active_topic.description %}
|
||||
<div class="db-page-content-left">
|
||||
{{ active_topic.description|safe }}
|
||||
@@ -21,6 +20,15 @@
|
||||
{% endif %}
|
||||
|
||||
<!-- TODO: tasks -->
|
||||
{% if tasks %}
|
||||
<ul class="flex flex-col gap-1 max-w-fit">
|
||||
{% for task in tasks %}
|
||||
<li>
|
||||
<span class="ml-2">{{ task.title|truncatechars:45 }} <a href="{% url 'tasks:task-detail' task.slug %}" class="inline-block text-proprietary dark:text-proprietary-lighter">Link <i class="fa-solid fa-link"></i></a></span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<ul class="flex flex-col gap-1 max-w-fit">
|
||||
{% for attachment in attachments %}
|
||||
@@ -42,8 +50,4 @@
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user