Show event title in banner image of event cards
This commit is contained in:
parent
5a8341fc3f
commit
74be8e4bd6
2 changed files with 5 additions and 5 deletions
|
@ -21,11 +21,11 @@
|
|||
<div class="card-banner">
|
||||
<a href="{{ event.get_absolute_url }}">
|
||||
<img class="card-img-top" src="{{event.team.card_img_url}}" alt="{{event.name}}">
|
||||
<p class="card-title">{{event.team.name}}</p>
|
||||
<p class="card-title">{{event.name}}</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p class="card-text"><strong><a class="card-link" href="{{event.get_absolute_url}}">{{event.name}}</a></strong></p>
|
||||
<p class="card-text"><strong>{{event.team.name}}</strong></p>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<small class="text-muted">{{ event.local_start_time }}</small>
|
||||
<div class="btn-group">
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
{% else %}
|
||||
<img class="card-img-top" src="{% static 'img/team_placeholder.png' %}" alt="{{event.event_title}}">
|
||||
{% endif %}
|
||||
<p class="card-title">{{event.event_title}}</p>
|
||||
</a>
|
||||
<p class="card-title">{{event.group_name}}</p>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p class="card-text"><strong><a class="card-link" href="{{event.event_url}}">{{event.event_title}}</a></strong></p>
|
||||
<p class="card-text"><strong>{{event.group_name}}</strong></p>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<small class="text-muted">{{ event.local_start_time }}<br/>{{event.location_name}}</small>
|
||||
<div class="btn-group">
|
||||
|
@ -102,7 +102,7 @@
|
|||
<div class="card-body">
|
||||
<p class="card-text"><strong><a class="card-link" href="{% url 'show-team-by-slug' team.slug %}">{{team.city}}</a></strong></p>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<small class="text-muted">{{ team.members.count }} members</small>
|
||||
<small class="text-muted">{{ team.members.count }} Member{% if team.members.count > 1 %}s{% endif %}, {{ team.event_set.count }} Events</small>
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-primary" href="{% url 'show-team-by-slug' team.slug %}">View</a></span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue