Skip to content

Commit

Permalink
feat: update breadcrumb links to use Phoenix path helpers
Browse files Browse the repository at this point in the history
fixes: #3905
  • Loading branch information
JakobLichterfeld committed Jul 7, 2024
1 parent aa9ac9e commit 9115543
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/teslamate_web/live/charge_live/cost.html.heex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav class="breadcrumb" aria-label="breadcrumbs">
<ul>
<li><%= live_redirect(gettext("Home"), to: "/") %></li>
<li><%= live_redirect(gettext("Home"), to: ~p"/") %></li>
<li class="is-active"><%= live_redirect(gettext("Charge Cost"), to: "") %></li>
</ul>
</nav>
Expand Down
4 changes: 2 additions & 2 deletions lib/teslamate_web/live/geofence_live/form.html.heex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav class="breadcrumb" aria-label="breadcrumbs">
<ul>
<li><%= live_redirect(gettext("Home"), to: "/") %></li>
<li><%= live_redirect(gettext("Geo-Fences"), to: "/geo-fences") %></li>
<li><%= live_redirect(gettext("Home"), to: ~p"/") %></li>
<li><%= live_redirect(gettext("Geo-Fences"), to: ~p"/geo-fences") %></li>
<li class="is-active">
<a href="#">
<%= case @action do
Expand Down
4 changes: 2 additions & 2 deletions lib/teslamate_web/live/geofence_live/index.html.heex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav class="breadcrumb" aria-label="breadcrumbs">
<ul>
<li><%= live_redirect(gettext("Home"), to: "/") %></li>
<li class="is-active"><%= live_redirect(gettext("Geo-Fences"), to: "/geo-fences") %></li>
<li><%= live_redirect(gettext("Home"), to: ~p"/") %></li>
<li class="is-active"><%= live_redirect(gettext("Geo-Fences"), to: ~p"/geo-fences") %></li>
</ul>
</nav>

Expand Down
2 changes: 1 addition & 1 deletion lib/teslamate_web/live/import_live/index.html.heex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav class="breadcrumb" aria-label="breadcrumbs">
<ul>
<li><%= live_redirect(gettext("Home"), to: "/") %></li>
<li><%= live_redirect(gettext("Home"), to: ~p"/") %></li>
<li class="is-active"><%= live_redirect(gettext("TeslaFi Import"), to: "") %></li>
</ul>
</nav>
Expand Down
4 changes: 2 additions & 2 deletions lib/teslamate_web/live/settings_live/index.html.heex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav class="breadcrumb" aria-label="breadcrumbs">
<ul>
<li><%= live_redirect(gettext("Home"), to: "/") %></li>
<li class="is-active"><%= live_redirect(gettext("Settings"), to: "/settings") %></li>
<li><%= live_redirect(gettext("Home"), to: ~p"/") %></li>
<li class="is-active"><%= live_redirect(gettext("Settings"), to: ~p"/settings") %></li>
</ul>
</nav>

Expand Down

0 comments on commit 9115543

Please sign in to comment.