summaryrefslogtreecommitdiffstats
path: root/core/modules/locale/templates/locale-translation-update-info.html.twig
blob: 81cceb4f5b70162fa399d7cf5cede8111f291cc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{#
/**
 * @file
 * Default theme implementation for displaying translation status information.
 *
 * Displays translation status information per language.
 *
 * Available variables:
 * - modules: A list of names of modules that have available translation
 *   updates.
 * - details: Rendered list of the translation details.
 * - missing_updates_status: If there are any modules that are missing
 *   translation updates, this variable will contain text indicating how many
 *   modules are missing translations.
 *
 * @see template_preprocess_locale_translation_update_info()
 *
 * @ingroup themeable
 */
#}
<div class="inner" tabindex="0" role="button">
  <span class="update-description-prefix visually-hidden">Show description</span>
  {% if modules %}
    <span class="text">{{ 'Updates for: @modules'|t({'@modules': modules|join(', ')}) }}</span>
  {% elseif missing_updates_status %}
    <span class="text">{{ missing_updates_status }}</span>
  {% endif %}
  {% if details %}
    <div class="details">{{ details }}</div>
  {% endif %}
</div>