Commit ca24eba3 authored by berumuron's avatar berumuron
Browse files

fix: Fix folding events if project has description

parent 7e09ab3a
......@@ -21,31 +21,33 @@
{% for project in projects|sort(attribute="name") %}
<section
id="{{ project.name|slugify }}"
class="project {{ 'project-private' if project.is_private }} {{ 'folder folder-folded' if project.description }}"
class="project {{ 'project-private' if project.is_private }}"
>
<header class="project-header">
<h2 class="project-name">
{% if project.description %}
<button class="folder-toggle">
<div class="{{ 'folder folder-folded' if project.description }}">
<header class="project-header">
<h2 class="project-name">
{% if project.description %}
<button class="folder-toggle">
{{ project.name }}
</button>
{% else %}
{{ project.name }}
</button>
{% else %}
{{ project.name }}
{% endif %}
</h2>
{% if project.responsible %}
<span class="project-responsible">
{{ project.responsible }}
</span>
{% endif %}
</h2>
</header>
{% if project.responsible %}
<span class="project-responsible">
{{ project.responsible }}
</span>
{% if project.description %}
<div class="project-description folder-container">
{{ project.description|markdown }}
</div>
{% endif %}
</header>
{% if project.description %}
<div class="project-description folder-container">
{{ project.description|markdown }}
</div>
{% endif %}
</div>
<ul class="events">
{% for event in project.events() if g.current_user or not event.is_private %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment