Commit ca24eba3 authored by berumuron's avatar berumuron
Browse files

fix: Fix folding events if project has description

parent 7e09ab3a
...@@ -21,31 +21,33 @@ ...@@ -21,31 +21,33 @@
{% for project in projects|sort(attribute="name") %} {% for project in projects|sort(attribute="name") %}
<section <section
id="{{ project.name|slugify }}" 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"> <div class="{{ 'folder folder-folded' if project.description }}">
<h2 class="project-name"> <header class="project-header">
{% if project.description %} <h2 class="project-name">
<button class="folder-toggle"> {% if project.description %}
<button class="folder-toggle">
{{ project.name }}
</button>
{% else %}
{{ project.name }} {{ project.name }}
</button> {% endif %}
{% else %} </h2>
{{ project.name }}
{% if project.responsible %}
<span class="project-responsible">
{{ project.responsible }}
</span>
{% endif %} {% endif %}
</h2> </header>
{% if project.responsible %} {% if project.description %}
<span class="project-responsible"> <div class="project-description folder-container">
{{ project.responsible }} {{ project.description|markdown }}
</span> </div>
{% endif %} {% endif %}
</header> </div>
{% if project.description %}
<div class="project-description folder-container">
{{ project.description|markdown }}
</div>
{% endif %}
<ul class="events"> <ul class="events">
{% for event in project.events() if g.current_user or not event.is_private %} {% 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