Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Twig 3 deprecation notice for escape character #947

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions views/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% else %}
<meta name="description" content="This Composer repository is powered by Satis">
{% endif %}

{% if blockIndexing %}
<meta name="robots" content="noindex,nofollow">
{% endif %}
Expand All @@ -33,8 +33,8 @@
<a href="{{ url }}">
<h1>{{ name|default('Composer repository') }}</h1>
</a>
<span class="badge bg-light text-dark m-1" title="{{ "now"|date(constant('\DateTime::COOKIE')) }}">
Last updated: <br class="d-md-none"> <time datetime="{{ "now"|date(constant('\DateTime::RFC3339')) }}">{{ "now"|date('l, d M Y H:i:s T') }}</time>
<span class="badge bg-light text-dark m-1" title="{{ "now"|date(constant('\\DateTime::COOKIE')) }}">
Last updated: <br class="d-md-none"> <time datetime="{{ "now"|date(constant('\\DateTime::RFC3339')) }}">{{ "now"|date('l, d M Y H:i:s T') }}</time>
</span>
</div>

Expand Down
2 changes: 1 addition & 1 deletion views/package.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
{{ version.prettyVersion }}
{%- elseif version.distType -%}
<a class="badge rounded-pill text-bg-secondary" href="{{ version.distUrl }}" title="dist-reference: {{ version.distReference }}{{ branch_alias }}">{{ version.prettyVersion }}</a>
{%- elseif version.sourceUrl matches '#^https?:\/\/#' -%}
{%- elseif version.sourceUrl matches '#^https?:\\/\\/#' -%}
<a class="badge rounded-pill text-bg-secondary" href="{{ version.sourceUrl }}" title="source-reference: {{ version.sourceReference }}{{ branch_alias }}">{{ version.prettyVersion }}</a>
{%- else -%}
<span class="badge rounded-pill text-bg-secondary" title="source-reference: {{ version.sourceReference }}{{ branch_alias }}">{{ version.prettyVersion }}</span>
Expand Down
Loading