Skip to content

Commit

Permalink
fix(bootstrap5.html.twig): fix label_unknown bug (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi authored Apr 5, 2024
1 parent bf3ac11 commit 3ccd12e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# 0.7.1

* build: update babel config according to symfony docs
* fix(`bootstrap5.html.twig`): fix label_unknown bug

# 0.7.0

Expand Down
4 changes: 2 additions & 2 deletions packages/rekapager-bundle/templates/bootstrap5.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

{%- block current -%}
<li class="page-item" {% if help %}title="{{ help }}"{% endif %}>
<a class="page-link active" href="{{- href -}}" aria-current="page">{{- number|default("label_unknown") -}}</a>
<a class="page-link active" href="{{- href -}}" aria-current="page">{{- number|default(block("label_unknown")) -}}</a>
</li>
{%- endblock -%}

{%- block neighbor -%}
<li class="page-item {{ disabled ? "disabled" }}" {% if help %}title="{{ help }}"{% endif %}>
<a class="page-link" href="{{- href -}}">{{- number|default("label_unknown") -}}</a>
<a class="page-link" href="{{- href -}}">{{- number|default(block("label_unknown")) -}}</a>
</li>
{%- endblock -%}

Expand Down

0 comments on commit 3ccd12e

Please sign in to comment.