Skip to content

Commit

Permalink
Fix dark mode warnings in Django admin #1792
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Jan 16, 2023
1 parent 2eae714 commit b9014f8
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions docs/reference/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ v5.10.0 - January 2023

- ``Fixed`` [`#1770 <https://github.com/dsmrreader/dsmr-reader/issues/1770>`_] Fixed not always logging the right (gas) meter positions in day statistics correctly.
- ``Fixed`` [`#1770 <https://github.com/dsmrreader/dsmr-reader/issues/1770>`_] Fixed having gas consumption in day statistics being slightly off (situationally).
- ``Fixed`` [`#1792 <https://github.com/dsmrreader/dsmr-reader/issues/1770>`_] Fix dark mode warnings in Django admin
- ``Fixed`` Fixed minor issues on the Dashboard notification page in favor of automatic migration messages.

- ``Added`` [`#1770 <https://github.com/dsmrreader/dsmr-reader/issues/1770>`_] Now tracking meter position timestamps in day statistics. Added them to Archive (day view) and Export.
Expand Down
2 changes: 1 addition & 1 deletion dsmr_api/templates/dsmr_api/api_settings/change_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


{% block field_sets %}
<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
{% blocktranslate %}You will only need to enable the DSMR-reader API when using the remote datalogger (see installation guide) of when manually sending data from/to DSMR-reader (usually for advanced users).{% endblocktranslate %}
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{% block field_sets %}

<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
{% blocktranslate %}Test your email settings with the button below.{% endblocktranslate %}
<small><a href="{% url 'admin:dsmr_backup_emailbackupsettings_change' 1 %}">
{% blocktranslate %}Optional: View your settings for sending backups by email here.{% endblocktranslate %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{{ block.super }}

<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
{% blocktranslate %}Saving the configuration will reset the delay until the next backup.{% endblocktranslate %}
{% blocktranslate %}Use Dropbox to secure all your backups{% endblocktranslate %}, <a href="{% url 'admin:dsmr_backup_dropboxsettings_change' 1 %}">{% blocktranslate %}view Dropbox settings here{% endblocktranslate %}</a>.
{% blocktranslate %}Or use GMail/email for keeping smaller backups{% endblocktranslate %}, <a href="{% url 'admin:dsmr_backup_emailbackupsettings_change' 1 %}">{% blocktranslate %}view email backup settings here{% endblocktranslate %}</a>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% endblock %}

{% block field_sets %}
<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
{% blocktranslate %}This will synchronize backups to your Dropbox-account using the "Official DSMR-reader" Dropbox App.{% endblocktranslate %}
<ul>
<li>{% blocktranslate %}Step 1: Click the authorization link below to go to Dropbox and authorize the app for a dedicated folder in your Dropbox-account.{% endblocktranslate %}</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


{% block object-tools %}
<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
{% blocktranslate %}Emails are currently sent to{% endblocktranslate %}: <strong>{{ email_address|default:'No email address configured!' }}</strong>
<small>(<a href="{% url 'admin:dsmr_backend_emailsettings_change' 1 %}">{% blocktranslate %}edit email address here{% endblocktranslate %}</a>)</small>
</div>
Expand All @@ -17,7 +17,7 @@

{{ block.super }}

<div class="submit-row" style="text-align: left;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
{% blocktranslate %}Saving the configuration will reset the delay until the next email backup.{% endblocktranslate %}
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


{% block field_sets %}
<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
<p>
{% blocktranslate %}By default DSMR v4 smart meters emit around 6 telegrams per minute and update gas usage hourly.{% endblocktranslate %}
{% blocktranslate %}DSMR v5 smart meters emit around 60 telegrams per minute and update gas usage every 5 minutes.{% endblocktranslate %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
{% load i18n %}

{% block field_sets %}
<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
{% blocktranslate %}In order to use separate contract dates for electricity/gas overlapping each other, make sure to <strong>set the prices to zero</strong> not required for a contract.{% endblocktranslate %}
</div>

{{ block.super }}

<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
{% blocktranslate %}Updating prices for (past) days already stored in the Archive does <strong>not affect</strong> them.{% endblocktranslate %}
{% blocktranslate %}In order to reapply price changes retroactively{% endblocktranslate %} <a href="https://dsmr-reader.readthedocs.io/{{ LANGUAGE_CODE }}/v5/faq.html" target="_blank">{% blocktranslate %}see the FAQ{% endblocktranslate %}</a> {% blocktranslate %}for a how-to.{% endblocktranslate %}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


{% block field_sets %}
<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
<ul>
<li>{% blocktranslate %}Please note that lowering the "Datalogger process sleep" setting will result in more disk activity and more data being stored, possibly degrading performance.{% endblocktranslate %}</li>
<li>{% blocktranslate %}Do not enable "Override telegram timestamp" unless your smart meter wrongly emits telegrams with an offset of multiple minutes or more.{% endblocktranslate %}</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


{% block field_sets %}
<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
{% blocktranslate %}All data here is based on the latest telegram received and should also be displayed on the Statistics page (except for the telegram). You can find the latest raw telegram below, which can be used for debugging purposes.{% endblocktranslate %}
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


{% block field_sets %}
<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
{% blocktranslate %}Data retention policies cleans up source data after a while.{% endblocktranslate %}
{% blocktranslate %}The following data is never discarded:{% endblocktranslate %}
<ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@


{% block field_sets %}
<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
<p>
{% blocktranslate %}This integration is meant to synchronize the (parsed) source DSMR readings to your InfluxDB, in order to aggregate the data yourself. Other data or non DSMR reading fields are not supported.{% endblocktranslate %}
</p>
</div>

<div class="submit-row" style="text-align: left; background: #FFFFCC;">
<div class="submit-row" style="text-align: left; border-color: orangered;">
<p>
{% blocktranslate %}Enabling this integration will only sync new readings. In order to export your existing readings retroactively, use the following utility{% endblocktranslate %}:
</p>
Expand Down

0 comments on commit b9014f8

Please sign in to comment.