mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
help: Show version information as an alert
- Move the message to the top as it is important and a likely reason to visit the about page. - Turn it into an alert so that it stands out from the rest of the text. Success when up-to-date, warning otherwise. - Remove custom inline styling. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
a9ff7a4408
commit
30aae90030
@ -13,6 +13,24 @@
|
|||||||
class="main-graphic" />
|
class="main-graphic" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<div class="alert {% if new_version %}alert-warning{% else %}alert-success{% endif %}">
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
You are running {{ os_release }} and {{ box_name }} version {{ version }}.
|
||||||
|
{% endblocktrans %}
|
||||||
|
|
||||||
|
{% if new_version %}
|
||||||
|
{% url 'upgrades:index' as upgrades_url %}
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
There is a new {{ box_name }} version
|
||||||
|
<a href="{{ upgrades_url }}">available</a>.
|
||||||
|
{% endblocktrans %}
|
||||||
|
{% else %}
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
{{ box_name }} is up to date.
|
||||||
|
{% endblocktrans %}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
{{ box_name }} is a community project to develop, design and
|
{{ box_name }} is a community project to develop, design and
|
||||||
@ -59,21 +77,4 @@
|
|||||||
href="https://wiki.debian.org/FreedomBox"
|
href="https://wiki.debian.org/FreedomBox"
|
||||||
target="_blank">{% trans "Learn more" %}</a></p>
|
target="_blank">{% trans "Learn more" %}</a></p>
|
||||||
|
|
||||||
<p style='margin-top:1.875rem'>
|
|
||||||
{% blocktrans trimmed %}
|
|
||||||
You are running {{ os_release }} and {{ box_name }} version {{ version }}.
|
|
||||||
{% endblocktrans %}
|
|
||||||
|
|
||||||
{% if new_version %}
|
|
||||||
{% url 'upgrades:index' as upgrades_url %}
|
|
||||||
{% blocktrans trimmed %}
|
|
||||||
There is a new {{ box_name }} version
|
|
||||||
<a href="{{ upgrades_url }}">available</a>.
|
|
||||||
{% endblocktrans %}
|
|
||||||
{% else %}
|
|
||||||
{% blocktrans trimmed %}
|
|
||||||
{{ box_name }} is up to date.
|
|
||||||
{% endblocktrans %}
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user