Initial Drupal 11 with DDEV setup
This commit is contained in:
		@ -0,0 +1,14 @@
 | 
			
		||||
{#
 | 
			
		||||
/**
 | 
			
		||||
 * @file
 | 
			
		||||
 * Default theme implementation for the message when fetching data fails.
 | 
			
		||||
 *
 | 
			
		||||
 * Available variables:
 | 
			
		||||
 * - error_message: A render array containing the appropriate error message.
 | 
			
		||||
 *
 | 
			
		||||
 * @see template_preprocess_update_fetch_error_message()
 | 
			
		||||
 *
 | 
			
		||||
 * @ingroup themeable
 | 
			
		||||
 */
 | 
			
		||||
#}
 | 
			
		||||
{{ error_message }}
 | 
			
		||||
@ -0,0 +1,23 @@
 | 
			
		||||
{#
 | 
			
		||||
/**
 | 
			
		||||
 * @file
 | 
			
		||||
 * Default theme implementation for the last time update data was checked.
 | 
			
		||||
 *
 | 
			
		||||
 * Available variables:
 | 
			
		||||
 * - last: The timestamp that the site was last checked for updates.
 | 
			
		||||
 * - time: The formatted time since the site last checked for updates.
 | 
			
		||||
 * - link: A link to check for updates manually.
 | 
			
		||||
 *
 | 
			
		||||
 * @see template_preprocess_update_last_check()
 | 
			
		||||
 *
 | 
			
		||||
 * @ingroup themeable
 | 
			
		||||
 */
 | 
			
		||||
#}
 | 
			
		||||
<p>
 | 
			
		||||
  {% if last %}
 | 
			
		||||
    {{ 'Last checked: @time ago'|t({'@time': time}) }}
 | 
			
		||||
  {% else %}
 | 
			
		||||
    {{ 'Last checked: never'|t }}
 | 
			
		||||
  {% endif %}
 | 
			
		||||
  ({{ link }})
 | 
			
		||||
</p>
 | 
			
		||||
@ -0,0 +1,106 @@
 | 
			
		||||
{#
 | 
			
		||||
/**
 | 
			
		||||
 * @file
 | 
			
		||||
 * Default theme implementation for the project status report.
 | 
			
		||||
 *
 | 
			
		||||
 * Available variables:
 | 
			
		||||
 * - title: The project title.
 | 
			
		||||
 * - url: The project URL.
 | 
			
		||||
 * - status: The project status.
 | 
			
		||||
 *   - label: The project status label.
 | 
			
		||||
 *   - attributes: HTML attributes for the project status.
 | 
			
		||||
 *   - reason: The reason you should update the project.
 | 
			
		||||
 *   - icon: The project status version indicator icon.
 | 
			
		||||
 * - existing_version: The version of the installed project.
 | 
			
		||||
 * - versions: The available versions of the project.
 | 
			
		||||
 * - install_type: The type of project (e.g., dev).
 | 
			
		||||
 * - datestamp: The date/time of a project version's release.
 | 
			
		||||
 * - extras: HTML attributes and additional information about the project.
 | 
			
		||||
 *   - attributes: HTML attributes for the extra item.
 | 
			
		||||
 *   - label: The label for an extra item.
 | 
			
		||||
 *   - data: The data about an extra item.
 | 
			
		||||
 * - includes: The projects within the project.
 | 
			
		||||
 * - disabled: The currently disabled projects in the project.
 | 
			
		||||
 *
 | 
			
		||||
 * @see template_preprocess_update_project_status()
 | 
			
		||||
 *
 | 
			
		||||
 * @ingroup themeable
 | 
			
		||||
 */
 | 
			
		||||
#}
 | 
			
		||||
{%
 | 
			
		||||
  set status_classes = [
 | 
			
		||||
    project.status == constant('Drupal\\update\\UpdateManagerInterface::NOT_SECURE') ? 'project-update__status--security-error',
 | 
			
		||||
    project.status == constant('Drupal\\update\\UpdateManagerInterface::REVOKED') ? 'project-update__status--revoked',
 | 
			
		||||
    project.status == constant('Drupal\\update\\UpdateManagerInterface::NOT_SUPPORTED') ? 'project-update__status--not-supported',
 | 
			
		||||
    project.status == constant('Drupal\\update\\UpdateManagerInterface::NOT_CURRENT') ? 'project-update__status--not-current',
 | 
			
		||||
    project.status == constant('Drupal\\update\\UpdateManagerInterface::CURRENT') ? 'project-update__status--current',
 | 
			
		||||
  ]
 | 
			
		||||
%}
 | 
			
		||||
<div{{ status.attributes.addClass('project-update__status', status_classes) }}>
 | 
			
		||||
  {%- if status.label -%}
 | 
			
		||||
    <span>{{ status.label }}</span>
 | 
			
		||||
  {%- else -%}
 | 
			
		||||
    {{ status.reason }}
 | 
			
		||||
  {%- endif %}
 | 
			
		||||
  <span class="project-update__status-icon">
 | 
			
		||||
    {{ status.icon }}
 | 
			
		||||
  </span>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="project-update__title">
 | 
			
		||||
  {%- if url -%}
 | 
			
		||||
    <a href="{{ url }}">{{ title }}</a>
 | 
			
		||||
  {%- else -%}
 | 
			
		||||
    {{ title }}
 | 
			
		||||
  {%- endif %}
 | 
			
		||||
  {{ existing_version }}
 | 
			
		||||
  {% if install_type == 'dev' and datestamp %}
 | 
			
		||||
    <span class="project-update__version-date">({{ datestamp }})</span>
 | 
			
		||||
  {% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
{% if versions %}
 | 
			
		||||
  {% for version in versions %}
 | 
			
		||||
    {{ version }}
 | 
			
		||||
  {% endfor %}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{%
 | 
			
		||||
  set extra_classes = [
 | 
			
		||||
    project.status == constant('Drupal\\update\\UpdateManagerInterface::NOT_SECURE') ? 'project-not-secure',
 | 
			
		||||
    project.status == constant('Drupal\\update\\UpdateManagerInterface::REVOKED') ? 'project-revoked',
 | 
			
		||||
    project.status == constant('Drupal\\update\\UpdateManagerInterface::NOT_SUPPORTED') ? 'project-not-supported',
 | 
			
		||||
  ]
 | 
			
		||||
%}
 | 
			
		||||
<div class="project-updates__details">
 | 
			
		||||
  {% if extras %}
 | 
			
		||||
    <div class="extra">
 | 
			
		||||
      {% for extra in extras %}
 | 
			
		||||
        <div{{ extra.attributes.addClass(extra_classes) }}>
 | 
			
		||||
          {{ extra.label }}: {{ extra.data }}
 | 
			
		||||
        </div>
 | 
			
		||||
      {% endfor %}
 | 
			
		||||
    </div>
 | 
			
		||||
  {% endif %}
 | 
			
		||||
  {% set includes = includes|join(', ') %}
 | 
			
		||||
  {% if disabled %}
 | 
			
		||||
    {{ 'Includes:'|t }}
 | 
			
		||||
    <ul>
 | 
			
		||||
      <li>
 | 
			
		||||
        {% trans %}
 | 
			
		||||
          Enabled: {{ includes|placeholder }}
 | 
			
		||||
        {% endtrans %}
 | 
			
		||||
      </li>
 | 
			
		||||
      <li>
 | 
			
		||||
        {% set disabled = disabled|join(', ') %}
 | 
			
		||||
        {% trans %}
 | 
			
		||||
          Disabled: {{ disabled|placeholder }}
 | 
			
		||||
        {% endtrans %}
 | 
			
		||||
      </li>
 | 
			
		||||
    </ul>
 | 
			
		||||
  {% else %}
 | 
			
		||||
    {% trans %}
 | 
			
		||||
      Includes: {{ includes|placeholder }}
 | 
			
		||||
    {% endtrans %}
 | 
			
		||||
  {% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										25
									
								
								web/core/modules/update/templates/update-report.html.twig
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								web/core/modules/update/templates/update-report.html.twig
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,25 @@
 | 
			
		||||
{#
 | 
			
		||||
/**
 | 
			
		||||
 * @file
 | 
			
		||||
 * Default theme implementation for the project status report.
 | 
			
		||||
 *
 | 
			
		||||
 * Available variables:
 | 
			
		||||
 * - last_checked: Themed last time update data was checked.
 | 
			
		||||
 * - no_updates_message: Message when there are no project updates.
 | 
			
		||||
 * - project_types: A list of project types.
 | 
			
		||||
 *   - label: The project type label.
 | 
			
		||||
 *   - table: The project status table.
 | 
			
		||||
 *
 | 
			
		||||
 * @see template_preprocess_update_report()
 | 
			
		||||
 *
 | 
			
		||||
 * @ingroup themeable
 | 
			
		||||
 */
 | 
			
		||||
#}
 | 
			
		||||
{{ last_checked }}
 | 
			
		||||
 | 
			
		||||
{% for project_type in project_types %}
 | 
			
		||||
  <h3>{{ project_type.label }}</h3>
 | 
			
		||||
  {{ project_type.table }}
 | 
			
		||||
{% else %}
 | 
			
		||||
  <p>{{ no_updates_message }}</p>
 | 
			
		||||
{% endfor %}
 | 
			
		||||
							
								
								
									
										48
									
								
								web/core/modules/update/templates/update-version.html.twig
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								web/core/modules/update/templates/update-version.html.twig
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,48 @@
 | 
			
		||||
{#
 | 
			
		||||
/**
 | 
			
		||||
 * @file
 | 
			
		||||
 * Default theme implementation for the version display of a project.
 | 
			
		||||
 *
 | 
			
		||||
 * Available variables:
 | 
			
		||||
 * - attributes: HTML attributes suitable for a container element.
 | 
			
		||||
 * - title: The title of the project.
 | 
			
		||||
 * - core_compatibility_details: Render array of core compatibility details.
 | 
			
		||||
 * - version:  A list of data about the latest released version, containing:
 | 
			
		||||
 *   - version: The version number.
 | 
			
		||||
 *   - date: The date of the release.
 | 
			
		||||
 *   - download_link: The URL for the downloadable file.
 | 
			
		||||
 *   - release_link: The URL for the release notes.
 | 
			
		||||
 *   - core_compatible: A flag indicating whether the project is compatible
 | 
			
		||||
 *     with the currently installed version of Drupal core. This flag is not
 | 
			
		||||
 *     set for the Drupal core project itself.
 | 
			
		||||
 *   - core_compatibility_message: A message indicating the versions of Drupal
 | 
			
		||||
 *     core with which this project is compatible. This message is also
 | 
			
		||||
 *     contained within the 'core_compatibility_details' variable documented
 | 
			
		||||
 *     above. This message is not set for the Drupal core project itself.
 | 
			
		||||
 *
 | 
			
		||||
 * @see template_preprocess_update_version()
 | 
			
		||||
 *
 | 
			
		||||
 * @ingroup themeable
 | 
			
		||||
 */
 | 
			
		||||
#}
 | 
			
		||||
<div class="{{ attributes.class }} project-update__version"{{ attributes|without('class') }}>
 | 
			
		||||
  <div class="clearfix">
 | 
			
		||||
    <div class="project-update__version-title layout-column layout-column--quarter">{{ title }}</div>
 | 
			
		||||
    <div class="project-update__version-details layout-column layout-column--quarter">
 | 
			
		||||
      <a href="{{ version.release_link }}">{{ version.version }}</a>
 | 
			
		||||
      <span class="project-update__version-date">({{ version.date|date('Y-M-d') }})</span>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="layout-column layout-column--half">
 | 
			
		||||
      <ul class="project-update__version-links">
 | 
			
		||||
        <li class="project-update__release-notes-link">
 | 
			
		||||
          <a href="{{ version.release_link }}">{{ 'Release notes'|t }}</a>
 | 
			
		||||
        </li>
 | 
			
		||||
        {% if core_compatibility_details %}
 | 
			
		||||
          <li class="project-update__compatibility-details">
 | 
			
		||||
            {{ core_compatibility_details }}
 | 
			
		||||
          </li>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
      </ul>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
		Reference in New Issue
	
	Block a user