-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
979 additions
and
8,289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
{% if imageUrl or imageFA %} | ||
{% set imageHeight = imageHeight if imageHeight else "80px" %} | ||
{% if imageUrl %} | ||
<img src="{{ imageUrl }}" height="{{ imageHeight }}" style="margin-bottom: 10px;"/> | ||
{% else %} | ||
<span class="bright fas fa-{{ imageFA }}" style='margin-bottom: 10px; font-size: {{ imageHeight }};'/></span> | ||
{% endif %} | ||
<br/> | ||
{% set imageHeight = imageHeight if imageHeight else "80px" %} | ||
{% if imageUrl %} | ||
<img src="{{ imageUrl }}" | ||
height="{{ imageHeight }}" | ||
style="margin-bottom: 10px" /> | ||
{% else %} | ||
<span class="bright fas fa-{{ imageFA }}" | ||
style="margin-bottom: 10px; | ||
font-size: {{ imageHeight }}"></span> | ||
{% endif %} | ||
<br /> | ||
{% endif %} | ||
{% if title %} | ||
<span class="thin dimmed medium">{{ title if titleType == 'text' else title | safe }}</span> | ||
<span class="thin dimmed medium">{{ title if titleType == 'text' else title | safe }}</span> | ||
{% endif %} | ||
{% if message %} | ||
{% if title %} | ||
<br/> | ||
{% endif %} | ||
<span class="light bright small">{{ message if messageType == 'text' else message | safe }}</span> | ||
{% if title %}<br />{% endif %} | ||
<span class="light bright small">{{ message if messageType == 'text' else message | safe }}</span> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
{% if title %} | ||
<span class="thin dimmed medium">{{ title if titleType == 'text' else title | safe }}</span> | ||
<span class="thin dimmed medium">{{ title if titleType == 'text' else title | safe }}</span> | ||
{% endif %} | ||
{% if message %} | ||
{% if title %} | ||
<br/> | ||
{% endif %} | ||
<span class="light bright small">{{ message if messageType == 'text' else message | safe }}</span> | ||
{% if title %}<br />{% endif %} | ||
<span class="light bright small">{{ message if messageType == 'text' else message | safe }}</span> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div> | ||
<iframe class="newsfeed-fullarticle" src="{{ url }}"></iframe> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div class="small bright"> | ||
{{ "MODULE_CONFIG_CHANGED" | translate({MODULE_NAME: "Newsfeed"}) | safe }} | ||
</div> | ||
</div> |
26 changes: 13 additions & 13 deletions
26
modules/default/updatenotification/updatenotification.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{% if not suspended %} | ||
{% 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 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 %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.