Fix BaseURL usage in template
This commit is contained in:
parent
067569e0c3
commit
d4ac72ff39
|
@ -23,10 +23,11 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
{{ $baseURL := .BaseURL }}
|
||||||
{{range .Messages}}
|
{{range .Messages}}
|
||||||
<tr data-controller="inbox-entry"
|
<tr data-controller="inbox-entry"
|
||||||
data-action="click->outbox-entry#onClick"
|
data-action="click->outbox-entry#onClick"
|
||||||
data-inbox-entry-link="{{ .BaseURL }}/sms/{{ .ID }}">
|
data-inbox-entry-link="{{ $baseURL }}/sms/{{ .ID }}">
|
||||||
<td class="sms-from">
|
<td class="sms-from">
|
||||||
<span class="is-size-7">{{ .From }}</span>
|
<span class="is-size-7">{{ .From }}</span>
|
||||||
</td>
|
</td>
|
||||||
|
@ -38,7 +39,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="sms-actions">
|
<td class="sms-actions">
|
||||||
<div class="buttons is-right">
|
<div class="buttons is-right">
|
||||||
<a href="{{ .BaseURL }}/sms/{{ .ID }}" class="button is-small is-link">👁️ See</a>
|
<a href="{{ $baseURL }}/sms/{{ .ID }}" class="button is-small is-link">👁️ See</a>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue