-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Event Tickets Dashboard: Add an info box for the organizer and teams (#…
…482) * Add info box * Remove css, add teams to context * Add link for detail organizer and teams * Add custom css * Change background to none * Add css style
- Loading branch information
Showing
5 changed files
with
99 additions
and
36 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/pretix/control/templates/pretixcontrol/event/fragment_info_box.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% load i18n %} | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"> | ||
{% trans "Event organizer" %} | ||
</h3> | ||
</div> | ||
<div class="panel-body timeline"> | ||
<div class="info-row"> | ||
{% trans "This event is organized by" %} <strong><a href="{% url 'control:organizer' request.organizer.slug %}">{{ request.organizer }}</a></strong> | ||
</div> | ||
<div class="info-row"> | ||
{% trans "Teams of the organizer are" %} | ||
<span></span> | ||
{% for id, name in organizer_teams %} | ||
<strong><a href="{% url 'control:organizer.team' request.organizer.slug id %}">{{ name }}</a></strong> | ||
{% if not forloop.last %}, {% endif %} | ||
{% endfor %} | ||
</div> | ||
</div> |
62 changes: 30 additions & 32 deletions
62
src/pretix/control/templates/pretixcontrol/event/fragment_timeline.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,34 @@ | ||
{% load i18n %} | ||
<div class="panel panel-default items"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"> | ||
{% trans "Your timeline" %} | ||
</h3> | ||
</div> | ||
<div class="panel-body timeline"> | ||
{% regroup timeline by date as tl_list %} | ||
{% for day in tl_list %} | ||
<div class="row {% if day.grouper < today %}text-muted{% endif %}"> | ||
<div class="col-date"> | ||
<strong>{{ day.grouper|date:"SHORT_DATE_FORMAT" }}</strong> | ||
</div> | ||
<div class="col-event"> | ||
{% for e in day.list %} | ||
<strong class="">{{ e.time|date:"TIME_FORMAT" }}</strong> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title"> | ||
{% trans "Your timeline" %} | ||
</h3> | ||
</div> | ||
<div class="panel-body timeline"> | ||
{% regroup timeline by date as tl_list %} | ||
{% for day in tl_list %} | ||
<div class="row {% if day.grouper < today %}text-muted{% endif %}"> | ||
<div class="col-date"> | ||
<strong>{{ day.grouper|date:"SHORT_DATE_FORMAT" }}</strong> | ||
</div> | ||
<div class="col-event"> | ||
{% for e in day.list %} | ||
<strong class="">{{ e.time|date:"TIME_FORMAT" }}</strong> | ||
| ||
<span class="{% if e.time < nearly_now %}text-muted{% endif %}"> | ||
{{ e.entry.description }} | ||
</span> | ||
{% if e.entry.edit_url %} | ||
| ||
<span class="{% if e.time < nearly_now %}text-muted{% endif %}"> | ||
{{ e.entry.description }} | ||
</span> | ||
{% if e.entry.edit_url %} | ||
| ||
<a href="{{ e.entry.edit_url }}" class="text-muted"> | ||
<span class="fa fa-edit"></span> | ||
</a> | ||
{% endif %} | ||
{% if forloop.revcounter > 1 %} | ||
<br/> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
<a href="{{ e.entry.edit_url }}" class="text-muted"> | ||
<span class="fa fa-edit"></span> | ||
</a> | ||
{% endif %} | ||
{% if forloop.revcounter > 1 %} | ||
<br/> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters