mirror of
https://github.com/MichMich/MagicMirror.git
synced 2026-07-07 06:39:16 -07:00
d44db6ea10
Since the project's inception, I've missed a clear separation between default and third-party modules. This increases complexity within the project (exclude `modules`, but not `modules/default`), but the mixed use is particularly problematic in Docker setups. Therefore, with this pull request, I'm moving the default modules to a different directory. ~~I've chosen `default/modules`, but I'm not bothered about it; `defaultmodules` or something similar would work just as well.~~ Changed to `defaultmodules`. Let me know if there's a majority in favor of this change.
42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
{% if not suspended %}
|
|
{% if needRestart %}
|
|
<div class="small bright">
|
|
<i class="fas fa-rotate"></i>
|
|
<span>
|
|
{% set restartTextLabel = "UPDATE_NOTIFICATION_NEED-RESTART" %}
|
|
{{ restartTextLabel | translate() | safe }}
|
|
</span>
|
|
</div>
|
|
{% endif %}
|
|
{% for name, status in moduleList %}
|
|
<div class="small bright">
|
|
<i class="fas fa-exclamation-circle"></i>
|
|
<span>
|
|
{% set mainTextLabel = "UPDATE_NOTIFICATION" if name === "MagicMirror" else "UPDATE_NOTIFICATION_MODULE" %}
|
|
{{ mainTextLabel | translate({MODULE_NAME: name}) }}
|
|
</span>
|
|
</div>
|
|
<div class="xsmall dimmed">
|
|
{% set subTextLabel = "UPDATE_INFO_SINGLE" if status.behind === 1 else "UPDATE_INFO_MULTIPLE" %}
|
|
{{ subTextLabel | translate({COMMIT_COUNT: status.behind, BRANCH_NAME: status.current}) | diffLink(status) | safe }}
|
|
</div>
|
|
{% endfor %}
|
|
{% for name, status in updatesList %}
|
|
<div class="small bright">
|
|
{% if status.done %}
|
|
<i class="fas fa-check" style="color: LightGreen;"></i>
|
|
<span>
|
|
{% set updateTextLabel = "UPDATE_NOTIFICATION_DONE" %}
|
|
{{ updateTextLabel | translate({MODULE_NAME: name}) | safe }}
|
|
</span>
|
|
{% else %}
|
|
<i class="fas fa-xmark" style="color: red;"></i>
|
|
<span>
|
|
{% set updateTextLabel = "UPDATE_NOTIFICATION_ERROR" %}
|
|
{{ updateTextLabel | translate({MODULE_NAME: name}) | safe }}
|
|
</span>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|