|
1 | 1 | <nav class="breadcrumb" aria-label="breadcrumbs"> |
2 | 2 | <ul> |
3 | | - <li><%= live_redirect(gettext("Home"), to: ~p"/") %></li> |
4 | | - <li class="is-active"><%= live_redirect(gettext("Geo-Fences"), to: ~p"/geo-fences") %></li> |
| 3 | + <li><.link navigate={~p"/"}><%= gettext("Home") %></.link></li> |
| 4 | + <li class="is-active"> |
| 5 | + <.link navigate={~p"/geo-fences"}><%= gettext("Geo-Fences") %></.link> |
| 6 | + </li> |
5 | 7 | </ul> |
6 | 8 | </nav> |
7 | 9 |
|
8 | | -<%= live_redirect( |
9 | | - raw(""" |
10 | | - <span>#{gettext("Create")}</span> |
| 10 | +<.link |
| 11 | + navigate={Routes.live_path(@socket, TeslaMateWeb.GeoFenceLive.Form)} |
| 12 | + class="button is-info is-small is-rounded is-pulled-right mb-4" |
| 13 | +> |
| 14 | + <span><%= gettext("Create") %></span> |
11 | 15 | <span class="icon"> |
12 | 16 | <span class="mdi mdi-plus"></span> |
13 | 17 | </span> |
14 | | - """), |
15 | | - to: Routes.live_path(@socket, TeslaMateWeb.GeoFenceLive.Form), |
16 | | - class: "button is-info is-small is-rounded is-pulled-right mb-4" |
17 | | -) %> |
| 18 | +</.link> |
18 | 19 |
|
19 | 20 | <table class="table is-fullwidth"> |
20 | 21 | <thead class="is-hidden-mobile"> |
|
43 | 44 | <td> |
44 | 45 | <div class="field is-grouped is-pulled-right"> |
45 | 46 | <p class="control"> |
46 | | - <%= live_redirect( |
47 | | - raw( |
48 | | - "<span class='icon'><span class='mdi mdi-square-edit-outline'></span></span>" |
49 | | - ), |
50 | | - to: Routes.live_path(@socket, TeslaMateWeb.GeoFenceLive.Form, geofence, []), |
51 | | - class: "button is-info is-small is-inverted is-light" |
52 | | - ) %> |
| 47 | + <.link |
| 48 | + navigate={Routes.live_path(@socket, TeslaMateWeb.GeoFenceLive.Form, geofence, [])} |
| 49 | + class="button is-info is-small is-inverted is-light" |
| 50 | + > |
| 51 | + <span class="icon"><span class="mdi mdi-square-edit-outline"></span></span> |
| 52 | + </.link> |
53 | 53 | </p> |
54 | 54 | <p class="control"> |
55 | 55 | <%= link(raw("<span class='icon'><span class='mdi mdi-trash-can'></span></span>"), |
|
0 commit comments