Added another front page space for Yaffs info. Added roave security for composer.
[yaffs-website] / web / core / themes / stable / templates / admin / update-project-status.html.twig
1 {#
2 /**
3  * @file
4  * Theme override for the project status report.
5  *
6  * Available variables:
7  * - title: The project title.
8  * - url: The project url.
9  * - status: The project status.
10  *   - label: The project status label.
11  *   - attributes: HTML attributes for the project status.
12  *   - reason: The reason you should update the project.
13  *   - icon: The project status version indicator icon.
14  * - existing_version: The version of the installed project.
15  * - versions: The available versions of the project.
16  * - install_type: The type of project (e.g., dev).
17  * - datestamp: The date/time of a project version's release.
18  * - extras: HTML attributes and additional information about the project.
19  *   - attributes: HTML attributes for the extra item.
20  *   - label: The label for an extra item.
21  *   - data: The data about an extra item.
22  * - includes: The projects within the project.
23  * - disabled: The currently disabled projects in the project.
24  *
25  * @see template_preprocess_update_project_status()
26  */
27 #}
28 {%
29   set status_classes = [
30     project.status == constant('UPDATE_NOT_SECURE') ? 'project-update__status--security-error',
31     project.status == constant('UPDATE_REVOKED') ? 'project-update__status--revoked',
32     project.status == constant('UPDATE_NOT_SUPPORTED') ? 'project-update__status--not-supported',
33     project.status == constant('UPDATE_NOT_CURRENT') ? 'project-update__status--not-current',
34     project.status == constant('UPDATE_CURRENT') ? 'project-update__status--current',
35   ]
36 %}
37 <div{{ status.attributes.addClass('project-update__status', status_classes) }}>
38   {%- if status.label -%}
39     <span>{{ status.label }}</span>
40   {%- else -%}
41     {{ status.reason }}
42   {%- endif %}
43   <span class="project-update__status-icon">
44     {{ status.icon }}
45   </span>
46 </div>
47
48 <div class="project-update__title">
49   {%- if url -%}
50     <a href="{{ url }}">{{ title }}</a>
51   {%- else -%}
52     {{ title }}
53   {%- endif %}
54   {{ existing_version }}
55   {% if install_type == 'dev' and datestamp %}
56     <span class="project-update__version-date">({{ datestamp }})</span>
57   {% endif %}
58 </div>
59
60 {% if versions %}
61   {% for version in versions %}
62     {{ version }}
63   {% endfor %}
64 {% endif %}
65
66 {%
67   set extra_classes = [
68     project.status == constant('UPDATE_NOT_SECURE') ? 'project-not-secure',
69     project.status == constant('UPDATE_REVOKED') ? 'project-revoked',
70     project.status == constant('UPDATE_NOT_SUPPORTED') ? 'project-not-supported',
71   ]
72 %}
73 <div class="project-updates__details">
74   {% if extras %}
75     <div class="extra">
76       {% for extra in extras %}
77         <div{{ extra.attributes.addClass(extra_classes) }}>
78           {{ extra.label }}: {{ extra.data }}
79         </div>
80       {% endfor %}
81     </div>
82   {% endif %}
83   {% set includes = includes|join(', ') %}
84   {% if disabled %}
85     {{ 'Includes:'|t }}
86     <ul>
87       <li>
88         {% trans %}
89           Enabled: {{ includes|placeholder }}
90         {% endtrans %}
91       </li>
92       <li>
93         {% set disabled = disabled|join(', ') %}
94         {% trans %}
95           Disabled: {{ disabled|placeholder }}
96         {% endtrans %}
97       </li>
98     </ul>
99   {% else %}
100     {% trans %}
101       Includes: {{ includes|placeholder }}
102     {% endtrans %}
103   {% endif %}
104 </div>