mirror of
https://github.com/pretix/pretix.git
synced 2026-08-11 10:57:00 +00:00
Pretty loading state for logs
This commit is contained in:
@@ -121,10 +121,27 @@
|
||||
{% trans "Event logs" %}
|
||||
</h3>
|
||||
</div>
|
||||
<ul class="list-group" hx-get="{% url "control:event.index.logs" organizer=request.organizer.slug event=request.event.slug %}" hx-trigger="load">
|
||||
<div class="logs-lazy-loading">
|
||||
<span class="fa fa-cog fa-4x"></span>
|
||||
</div>
|
||||
<ul class="list-group"
|
||||
hx-get="{% url "control:event.index.logs" organizer=request.organizer.slug event=request.event.slug %}"
|
||||
hx-trigger="load">
|
||||
{% for i in "12345" %}
|
||||
<li class="list-group-item logentry">
|
||||
<div class="row">
|
||||
<div class="col-lg-2 col-sm-6 col-xs-12">
|
||||
<span class="loading-mock loading-mock-text-medium"></span>
|
||||
</div>
|
||||
<div class="col-lg-2 col-sm-6 col-xs-12">
|
||||
<span class="loading-mock loading-mock-text-short"></span>
|
||||
</div>
|
||||
<div class="col-lg-2 col-sm-12 col-xs-12">
|
||||
<span class="loading-mock loading-mock-text-medium"></span>
|
||||
</div>
|
||||
<div class="col-lg-6 col-sm-12 col-xs-12">
|
||||
<span class="loading-mock loading-mock-text-long"></span>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="panel-footer">
|
||||
<a href="{% url "control:event.log" event=request.event.slug organizer=request.event.organizer.slug %}">
|
||||
|
||||
@@ -10,6 +10,41 @@
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loading-mock-pulse {
|
||||
0% {
|
||||
background-position: 20% 50%;
|
||||
}
|
||||
100% {
|
||||
background-position: -100% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.loading-mock {
|
||||
display: inline-block;
|
||||
background: #eee;
|
||||
border-radius: $border-radius-base;
|
||||
height: 1em;
|
||||
animation: loading-mock-pulse 3s infinite;
|
||||
background-size: 200% 100%;
|
||||
background-image: linear-gradient(
|
||||
to right,
|
||||
rgb(244, 247, 250) 0%,
|
||||
rgb(255, 255, 255) 10%,
|
||||
rgb(244, 247, 250) 20%
|
||||
);
|
||||
|
||||
&.loading-mock-text-short {
|
||||
width: 50px;
|
||||
}
|
||||
&.loading-mock-text-medium {
|
||||
width: 100px;
|
||||
}
|
||||
&.loading-mock-text-long {
|
||||
width: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.dashboard {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
Reference in New Issue
Block a user