Skip to content

Commit

Permalink
Correctly show the exercise name in the month view
Browse files Browse the repository at this point in the history
Closes #1550
  • Loading branch information
rolandgeider committed Jan 16, 2024
1 parent 75b79fd commit c275fbf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
31 changes: 17 additions & 14 deletions wger/manager/templates/calendar/day.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,23 @@

{% if is_owner %}
<span class="dropdown">
<div class="float-end">
<button type="button" class="btn btn-link dropdown-toggle btn-sm" data-bs-toggle="dropdown">
</button>
<div class="dropdown-menu">
<a href="{% url 'manager:log:edit' log.pk %}" class="wger-modal-dialog dropdown-item">
{% translate 'Edit' %}
</a>
<div class="dropdown-divider"></div>
<a href="{% url 'manager:log:delete' log.pk %}" class="wger-modal-dialog dropdown-item">
{% translate 'Delete' %}
</a>
</div>
</div>
</span>
<div class="float-end">
<button type="button" class="btn btn-link dropdown-toggle btn-sm"
data-bs-toggle="dropdown">
</button>
<div class="dropdown-menu">
<a href="{% url 'manager:log:edit' log.pk %}"
class="wger-modal-dialog dropdown-item">
{% translate 'Edit' %}
</a>
<div class="dropdown-divider"></div>
<a href="{% url 'manager:log:delete' log.pk %}"
class="wger-modal-dialog dropdown-item">
{% translate 'Delete' %}
</a>
</div>
</div>
</span>
{% endif %}
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion wger/manager/templates/calendar/month.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h3>
<div class="card h-100">
<div class="card-header">
<a href="{{ exercise.get_absolute_url }}">
{{ exercise }}
{{ exercise.get_translation }}
</a>
</div>
<div class="card-body px-0 py-0">
Expand Down

0 comments on commit c275fbf

Please sign in to comment.