Skip to content

Commit

Permalink
fix info-page design issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hom3mad3 committed Feb 18, 2025
1 parent 5e898bd commit b8a333b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ <h3 id="responsible-body">{% trans 'Responsible body' %}</h3>
{% endif %}

{% if organisation.url %}
<p>{% trans "Website" %}:
<a href="{{ organisation.url }}" target="_blank" rel="noopener noreferrer">{{ organisation.url }}</a>
</p>
{% endif %}
<p>{% trans "Website" %}:
<a href="{{ organisation.url }}" target="_blank" rel="noopener noreferrer">{{ organisation.url }}</a>
</p>
{% endif %}
</address>
</div>
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<h3 id="contact-questions">{% trans "Contact for questions" %}</h3>
<address aria-labelledby="contact-questions" class="mt-2">
<p>{{ contact.contact_name }}</p>

{% if contact.contact_address_text %}
<p>{{ contact.contact_address_text|linebreaksbr }}</p>
{% endif %}

{% if contact.contact_email %}
<p>{% trans "Email" %}:
Expand All @@ -17,6 +21,12 @@ <h3 id="contact-questions">{% trans "Contact for questions" %}</h3>
<a href="tel:{{ contact.contact_phone }}" aria-label="{% trans 'Call' %} {{ contact.contact_name }}">{{ contact.contact_phone }}</a>
</p>
{% endif %}

{% if contact.contact_url %}
<p>{% trans "Website" %}:
<a href="{{ contact.contact_url }}" target="_blank" rel="noopener noreferrer">{{ contact.contact_url }}</a>
</p>
{% endif %}
</address>
</div>
{% endif %}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% load i18n %}
{% load i18n ckeditor_tags %}

{% block title %}
{{ project.name }} -{% trans 'Information' %}
Expand Down Expand Up @@ -38,7 +38,9 @@ <h2 id="description-title">
<span class="aural">{% trans 'Project Description' %}</span>
{{ project.name }}
</h2>
<div>{{ project.information|safe }}</div>
<div class="ck-content">
{{ project.information | transform_collapsibles | disable_iframes | safe }}
</div>
</section>

{% if project.has_contact_details or project.organisation %}
Expand Down

0 comments on commit b8a333b

Please sign in to comment.