Skip to content

Commit

Permalink
Linebreaks in membership descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Aug 23, 2024
1 parent 49e03c9 commit fff1d9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/booking/membership_create.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h4>Memberships available:</h4>
{% for membership in memberships %}
<details>
<summary>{{ membership }}</summary>
<dd class="ml-3">{{ membership.description }}
<dd class="ml-3">{{ membership.description|linebreaks }}
<ul>
{% for membership_item in membership.membership_items.all %}
<li>{{ membership_item }}</li>
Expand Down
2 changes: 1 addition & 1 deletion templates/booking/membership_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h2 class="card-title">Membership</h2>
<dt>Membership Plan</dt>
<dd>{{ user_membership.membership }}</dd>
{% if user_membership.membership.description %}
<dd>{{ user_membership.membership.description }}</dd>
<dd>{{ user_membership.membership.description|linebreaks }}</dd>
{% endif %}


Expand Down

0 comments on commit fff1d9b

Please sign in to comment.