mirror of
https://github.com/pretix/pretix.git
synced 2026-08-29 13:44:40 +00:00
Review notes and adjust some margins
This commit is contained in:
@@ -47,62 +47,66 @@
|
|||||||
{% include "pretixpresale/fragment_event_list_filter.html" with request=request %}
|
{% include "pretixpresale/fragment_event_list_filter.html" with request=request %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="panel-body">
|
{% if events %}
|
||||||
<dl class="full-width-list alternating-rows">
|
<div class="panel-body">
|
||||||
{% for e in events %}{% eventurl e "presale:event.index" as url %}
|
<dl class="full-width-list alternating-rows">
|
||||||
<div class="row">
|
{% for e in events %}{% eventurl e "presale:event.index" as url %}
|
||||||
<dt class="col-md-4 col-xs-12"><a href="{{ url }}">{{ e.name }}</a></dt>
|
<div class="row">
|
||||||
<dd class="col-md-3 col-xs-12">
|
<dt class="col-md-4 col-xs-12"><a href="{{ url }}">{{ e.name }}</a></dt>
|
||||||
{% if e.settings.show_dates_on_frontpage %}
|
<dd class="col-md-3 col-xs-12">
|
||||||
{% if e.has_subevents %}
|
{% if e.settings.show_dates_on_frontpage %}
|
||||||
{% icon "calendar" %} {% trans "Multiple dates" context "subevent" %}
|
{% if e.has_subevents %}
|
||||||
<br>
|
{% icon "calendar" %} {% trans "Multiple dates" context "subevent" %}
|
||||||
<span class="text-muted">
|
<br>
|
||||||
{{ e.daterange|default:e.get_date_range_display_as_html }}
|
<span class="text-muted">
|
||||||
</span>
|
{{ e.daterange|default:e.get_date_range_display_as_html }}
|
||||||
{% else %}
|
</span>
|
||||||
{{ e.daterange|default:e.get_date_range_display_as_html }}
|
|
||||||
{% if e.settings.show_times %}
|
|
||||||
{% timezone e.tzname %}
|
|
||||||
<br>
|
|
||||||
<span class="text-muted" data-time="{{ e.date_from.isoformat }}" data-timezone="{{ e.tzname }}">
|
|
||||||
{% icon "clock-o" %}
|
|
||||||
{{ e.date_from|date:"TIME_FORMAT" }}
|
|
||||||
{% if e.settings.show_date_to and e.date_to and e.date_to.date == e.date_from.date %}
|
|
||||||
– {{ e.date_to|date:"TIME_FORMAT" }}
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
{% endtimezone %}
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
</dd>
|
|
||||||
<dd class="col-md-3 col-xs-6">
|
|
||||||
<small>
|
|
||||||
{% include "pretixpresale/fragment_event_list_status.html" with event=e %}
|
|
||||||
</small>
|
|
||||||
</dd>
|
|
||||||
<dd class="col-md-2 col-xs-6 text-right flip">
|
|
||||||
<a class="btn btn-primary btn-block" href="{{ url }}{% if e.has_subevents and e.match_by_subevents %}{{ filterquery }}{% endif %}">
|
|
||||||
{% if e.has_subevents %}{% icon "ticket" %} {% trans "Tickets" %}
|
|
||||||
{% elif e.presale_is_running and e.best_availability_state == 100 %}
|
|
||||||
{% icon "ticket" %} {% trans "Tickets" %}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{% icon "info" %} {% trans "More info" %}
|
{{ e.daterange|default:e.get_date_range_display_as_html }}
|
||||||
|
{% if e.settings.show_times %}
|
||||||
|
{% timezone e.tzname %}
|
||||||
|
<br>
|
||||||
|
<span class="text-muted" data-time="{{ e.date_from.isoformat }}" data-timezone="{{ e.tzname }}">
|
||||||
|
{% icon "clock-o" %}
|
||||||
|
{{ e.date_from|date:"TIME_FORMAT" }}
|
||||||
|
{% if e.settings.show_date_to and e.date_to and e.date_to.date == e.date_from.date %}
|
||||||
|
– {{ e.date_to|date:"TIME_FORMAT" }}
|
||||||
|
{% endif %}
|
||||||
|
</span>
|
||||||
|
{% endtimezone %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
{% else %}
|
||||||
</dd>
|
|
||||||
</div>
|
{% endif %}
|
||||||
{% empty %}
|
</dd>
|
||||||
{% if "old" in request.GET %}
|
<dd class="col-md-3 col-xs-6">
|
||||||
<p><em>{% if not events %}{% trans "No archived events found." %} {% endif %}<a href="?{% url_replace request "old" "" %}">{% trans "Show upcoming" %}</a></em></p>
|
<small>
|
||||||
{% else %}
|
{% include "pretixpresale/fragment_event_list_status.html" with event=e %}
|
||||||
<p><em>{% if not events %}{% trans "No public upcoming events found." %} {% endif %}<a href="?{% url_replace request "old" "1" %}">{% trans "Show past events" %}</a></em></p>
|
</small>
|
||||||
{% endif %}
|
</dd>
|
||||||
{% endfor %}
|
<dd class="col-md-2 col-xs-6 text-right flip">
|
||||||
</dl>
|
<a class="btn btn-primary btn-block" href="{{ url }}{% if e.has_subevents and e.match_by_subevents %}{{ filterquery }}{% endif %}">
|
||||||
|
{% if e.has_subevents %}{% icon "ticket" %} {% trans "Tickets" %}
|
||||||
|
{% elif e.presale_is_running and e.best_availability_state == 100 %}
|
||||||
|
{% icon "ticket" %} {% trans "Tickets" %}
|
||||||
|
{% else %}
|
||||||
|
{% icon "info" %} {% trans "More info" %}
|
||||||
|
{% endif %}
|
||||||
|
</a>
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
{% endif %}
|
||||||
|
<div class="panel-body">
|
||||||
|
{% if "old" in request.GET %}
|
||||||
|
<p><em>{% if not events %}{% trans "No archived events found." %} {% endif %}<a href="?{% url_replace request "old" "" %}">{% trans "Show upcoming" %}</a></em></p>
|
||||||
|
{% else %}
|
||||||
|
<p><em>{% if not events %}{% trans "No public upcoming events found." %} {% endif %}<a href="?{% url_replace request "old" "1" %}">{% trans "Show past events" %}</a></em></p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include "pretixpresale/pagination.html" %}
|
{% include "pretixpresale/pagination.html" %}
|
||||||
|
|||||||
@@ -145,6 +145,11 @@ article.item-with-variations .product-row:last-child:after {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.panel > hr {
|
||||||
|
margin: 0;
|
||||||
|
border-top: 1px solid $table-border-color;
|
||||||
|
}
|
||||||
|
|
||||||
.product-row {
|
.product-row {
|
||||||
padding: 1.25*$line-height-computed 0;
|
padding: 1.25*$line-height-computed 0;
|
||||||
|
|
||||||
|
|||||||
@@ -413,7 +413,6 @@ details.details-open .panel-title::before {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.panel-subhead {
|
.panel-subhead {
|
||||||
margin-bottom: 15px;
|
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
background: $table-bg-accent;
|
background: $table-bg-accent;
|
||||||
border-bottom: 1px solid $table-border-color;
|
border-bottom: 1px solid $table-border-color;
|
||||||
|
|||||||
Reference in New Issue
Block a user