Skip to content

Commit

Permalink
fix(template): Fixed deprecation notice, in Twig 3, for escape charac…
Browse files Browse the repository at this point in the history
…ter in templates
  • Loading branch information
tchapuis authored and alcohol committed Dec 24, 2024
1 parent 79d28d7 commit 6ed1ca9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 6ed1ca9

Please sign in to comment.