mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
{% if loaded %}
|
|
<div>
|
|
{% if (config.showSourceTitle and sourceTitle) or config.showPublishDate %}
|
|
<div class="newsfeed-source light small dimmed">
|
|
{% if sourceTitle and config.showSourceTitle %}
|
|
{{ sourceTitle }}{% if config.showPublishDate %}, {% else %}: {% endif %}
|
|
{% endif %}
|
|
{% if config.showPublishDate %}
|
|
{{ publishDate }}:
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
<div class="newsfeed-title bright medium light{{ ' no-wrap' if not config.wrapTitle }}">
|
|
{{ title }}
|
|
</div>
|
|
{% if config.showDescription %}
|
|
<div class="newsfeed-desc small light{{ ' no-wrap' if not config.wrapDescription }}">
|
|
{% if config.truncDescription %}
|
|
{{ description | truncate(config.lengthDescription) }}
|
|
{% else %}
|
|
{{ description }}
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% elseif error %}
|
|
<div class="small dimmed">
|
|
{{ "MODULE_CONFIG_ERROR" | translate({MODULE_NAME: "Newsfeed", ERROR: error}) | safe }}
|
|
</div>
|
|
{% else %}
|
|
<div class="small dimmed">
|
|
{{ "LOADING" | translate | safe }}
|
|
</div>
|
|
{% endif %}
|