link to plan update on front page

This commit is contained in:
krmax44 2022-03-18 09:30:09 +01:00
parent 99056282bc
commit 41dbffaffe
No known key found for this signature in database
GPG key ID: 5C499A4F4EC4EE03

View file

@ -30,19 +30,30 @@
{% if show_context %} {% if show_context %}
<h4 class="h5">{{ update.title }}</h4> <h4 class="h5">{{ update.title }}</h4>
{% endif %} {% endif %}
{{ update.content|markdown }}
{% with update.content|markdown as content %}
{% if show_context %}
{{ content|truncatewords_html:75 }}
{% else %}
{{ content }}
{% endif %}
{% endwith %}
</div> </div>
{% endif %} {% endif %}
{% if update.url or update.foirequest %} {% if update.url or update.foirequest or show_context %}
<div class="p-3 p-md-4 {% if update.content %}box-card-links{% else %}d-flex mt-auto{% endif %}"> <div class="p-3 p-md-4 {% if update.content %}box-card-links{% else %}d-flex mt-auto{% endif %}">
{% if show_context %}
<a href="{{ update.get_absolute_url }}" class="action-link">→ zum Vorhaben</a>
{% else %}
{% if update.url %} {% if update.url %}
<a href="{{ update.url }}" class="action-link mr-3" target="_blank" rel="noopener">→ Mehr auf {{ update.get_url_domain }} lesen…</a> <a href="{{ update.url }}" class="action-link mr-3" target="_blank" rel="noopener">mehr auf {{ update.get_url_domain }} lesen…</a>
{% endif %} {% endif %}
{% if update.foirequest %} {% if update.foirequest %}
<a href="{{ update.foirequest.get_absolute_url }}" class="action-link">→ zur Anfrage</a> <a href="{{ update.foirequest.get_absolute_url }}" class="action-link">→ zur Anfrage</a>
{% endif %} {% endif %}
{% endif %}
</div> </div>
{% endif %} {% endif %}
</div> </div>