aggregator-feed-source.html.twig 958 Bytes
Newer Older
1
2
3
4
5
{#
/**
 * @file
 * Default theme implementation to present the source of the feed.
 *
6
 * The contents are rendered below feed listings when browsing source feeds.
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 * For example, "example.com/aggregator/sources/1".
 *
 * Available variables:
 * - source_icon: Feed icon linked to the source. Rendered through
 *   feed-icon.html.twig.
 * - source_image: Image set by the feed source.
 * - source_description: Description set by the feed source.
 * - source_url: URL to the feed source.
 * - last_checked: How long ago the feed was checked locally.
 *
 * @see template_preprocess_aggregator_feed_source()
 *
 * @ingroup themeable
 */
#}
22
<div{{ attributes }}>
23
24
  {{ source_icon }}
  {{ source_image }}
25
26
27
28
29
30
31
32
  <p class="feed-description">{{ source_description }}</p>
  <dl class="feed-details">
    <dt class="feed-url">{{ 'URL'|t }}</dt>
    <dd>{{ source_url }}</dd>
    <dt class="feed-updated">{{ 'Updated'|t }}</dt>
    <dd>{{ last_checked }}</dd>
  </dl>
</div