2021-05-02 11:24:34 +02:00
|
|
|
{#-
|
|
|
|
This file was automatically generated - do not edit
|
|
|
|
-#}
|
2023-12-07 11:46:44 +01:00
|
|
|
{% macro render_updated(date) %}
|
|
|
|
<span class="md-source-file__fact">
|
|
|
|
<span class="md-icon" title="{{ lang.t('source.file.date.updated') }}">
|
|
|
|
{% include ".icons/material/clock-edit-outline.svg" %}
|
|
|
|
</span>
|
|
|
|
{{ date }}
|
|
|
|
</span>
|
|
|
|
{% endmacro %}
|
|
|
|
{% macro render_created(date) %}
|
|
|
|
<span class="md-source-file__fact">
|
|
|
|
<span class="md-icon" title="{{ lang.t('source.file.date.created') }}">
|
|
|
|
{% include ".icons/material/clock-plus-outline.svg" %}
|
|
|
|
</span>
|
|
|
|
{{ date }}
|
|
|
|
</span>
|
|
|
|
{% endmacro %}
|
|
|
|
{% macro render_authors(authors) %}
|
2023-12-12 17:35:20 +01:00
|
|
|
{% set git_authors = config.plugins.get("git-authors") %}
|
2023-12-07 11:46:44 +01:00
|
|
|
<span class="md-source-file__fact">
|
|
|
|
<span class="md-icon" title="{{ lang.t('source.file.contributors') }}">
|
|
|
|
{% if authors | length == 1 %}
|
|
|
|
{% include ".icons/material/account.svg" %}
|
|
|
|
{% else %}
|
|
|
|
{% include ".icons/material/account-group.svg" %}
|
|
|
|
{% endif %}
|
|
|
|
</span>
|
|
|
|
<nav>
|
|
|
|
{% for author in authors %}
|
2023-12-12 17:35:20 +01:00
|
|
|
{%- if git_authors.config.show_email_address %}
|
2023-12-07 11:46:44 +01:00
|
|
|
<a href="mailto:{{ author.email }}">
|
|
|
|
{{- author.name -}}
|
|
|
|
</a>
|
2023-12-12 17:35:20 +01:00
|
|
|
{%- else -%}
|
|
|
|
{{- author.name -}}
|
|
|
|
{% endif -%}
|
2023-12-07 11:46:44 +01:00
|
|
|
{%- if loop.revindex > 1 %}, {% endif -%}
|
|
|
|
{% endfor %}
|
|
|
|
</nav>
|
|
|
|
</span>
|
|
|
|
{% endmacro %}
|
|
|
|
{% macro render_committers_github(title) %}
|
|
|
|
<span class="md-icon" title="{{ lang.t('source.file.contributors') }}">
|
|
|
|
{% include ".icons/material/github.svg" %}
|
|
|
|
</span>
|
|
|
|
<span>{{ title }}</span>
|
|
|
|
{% endmacro %}
|
|
|
|
{% macro render_committers_gitlab(title) %}
|
|
|
|
<span class="md-icon" title="{{ lang.t('source.file.contributors') }}">
|
|
|
|
{% include ".icons/material/gitlab.svg" %}
|
|
|
|
</span>
|
|
|
|
<span>{{ title }}</span>
|
|
|
|
{% endmacro %}
|
|
|
|
{% macro render_committers(authors) %}
|
|
|
|
<span class="md-source-file__fact">
|
|
|
|
{% if committers_source == "gitlab" %}
|
|
|
|
{{ render_committers_gitlab("GitLab") }}
|
|
|
|
{% else %}
|
|
|
|
{{ render_committers_github("GitHub") }}
|
|
|
|
{% endif %}
|
|
|
|
<nav>
|
|
|
|
{% for author in authors[:4] %}
|
|
|
|
<a href="{{ author.url }}" class="md-author" title="@{{ author.login }}">
|
|
|
|
{% set separator = "&" if "?" in author.avatar else "?" %}
|
|
|
|
<img src="{{ author.avatar }}{{ separator }}size=72" alt="{{ author.name or 'GitHub user' }}">
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
{% set more = authors[4:] | length %}
|
|
|
|
{% if more > 0 %}
|
|
|
|
{% if page.edit_url %}
|
|
|
|
<a href="{{ page.edit_url | replace('edit', 'blob') }}" class="md-author md-author--more">
|
|
|
|
+{{ more }}
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="md-author md-author--more">
|
|
|
|
+{{ more }}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
|
|
|
</span>
|
|
|
|
{% endmacro %}
|
2023-12-07 10:48:42 +01:00
|
|
|
{% if page.meta %}
|
|
|
|
{% if page.meta.git_revision_date_localized %}
|
|
|
|
{% set updated = page.meta.git_revision_date_localized %}
|
|
|
|
{% elif page.meta.revision_date %}
|
|
|
|
{% set updated = page.meta.revision_date %}
|
|
|
|
{% endif %}
|
|
|
|
{% if page.meta.git_creation_date_localized %}
|
|
|
|
{% set created = page.meta.git_creation_date_localized %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if updated or created or git_info or committers %}
|
|
|
|
<aside class="md-source-file">
|
|
|
|
{% if updated %}
|
2023-12-07 11:46:44 +01:00
|
|
|
{{ render_updated(updated) }}
|
2021-05-02 11:24:34 +02:00
|
|
|
{% endif %}
|
2023-12-07 10:48:42 +01:00
|
|
|
{% if created %}
|
2023-12-07 11:46:44 +01:00
|
|
|
{{ render_created(created) }}
|
2023-12-07 10:48:42 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if git_info %}
|
2023-12-07 11:46:44 +01:00
|
|
|
{{ render_authors(git_info.get("page_authors")) }}
|
2023-12-07 10:48:42 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if committers %}
|
2023-12-07 11:46:44 +01:00
|
|
|
{{ render_committers(committers) }}
|
2023-12-07 10:48:42 +01:00
|
|
|
{% endif %}
|
|
|
|
</aside>
|
|
|
|
{% endif %}
|