Apply suggestions from code review

Co-authored-by: Richard Schreiber <schreiber@rami.io>
Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
Mira
2024-04-30 19:47:11 +02:00
committed by Mira Weller
parent 5294d819a9
commit 4c793076b7
5 changed files with 6 additions and 9 deletions

View File

@@ -3,7 +3,7 @@ Time machine mode
In test mode, pretix provides a "time machine" feature which allows event organizers
to test their shop as if it were a different date and time. To enable this feature, they can
click on the clock icon in the test mode warning box.
click on the "time machine"-link in the test mode warning box on the event page.
Internally, this time machine mode is implemented by calling our custom :py:meth:`time_machine_now()`
function instead of :py:meth:`django.utils.timezone.now()` in all places where the fake time should be

View File

@@ -214,7 +214,8 @@ whenever you change a source file.
Working with frontend assets
----------------------------
To update the frontent styles, run the following commands inside your virtual environment.::
To update the frontend styles of shops with a custom styling, run the following commands inside
your virtual environment.::
python -m pretix collectstatic --noinput
python -m pretix updatestyles

View File

@@ -26,7 +26,7 @@
{% bootstrap_field timemachine_form.now_dt layout="inline" show_label=False %}
</div>
<div class="col-md-6 text-right">
<button type="submit" class="btn btn-default btn-lg btn-save">
<button type="submit" class="btn btn-primary btn-lg btn-save">
{% if request.session.timemachine_now_dt %}{% trans "Change" %}{% else %}{% trans "Enable time machine" %}{% endif %}
</button>
{% if request.session.timemachine_now_dt %}

View File

@@ -187,7 +187,7 @@ article.item-with-variations .product-row:last-child:after {
div.front-page {
margin-top: 30px;
}
.offline-banner, .timemachine-banner {
.offline-banner {
width: 100%;
padding: 5px;
text-align: center;

View File

@@ -39,7 +39,7 @@ $body-bg: #f5f5f5 !default;
h1 a, .btn {
text-decoration: none;
}
a.stealth, a.stealth:hover { color: inherit; text-decoration: none; }
a .fa:first-child { margin-right: 1ch }
/*
a, .btn-link {
text-decoration: underline;
@@ -515,10 +515,6 @@ h2 .label {
user-select: none;
}
.alert > .btn.pull-right {
margin-left: 10px;
}
@for $i from 0 through 100 {
.progress-bar-#{$i} { width: 1% * $i; }
}