Compare commits
4 Commits
pkg/dev/ub
...
4f55a80dbe
Author | SHA1 | Date | |
---|---|---|---|
4f55a80dbe | |||
eb9f19eaa0 | |||
0c49035f28 | |||
d4ac72ff39 |
@ -2,7 +2,7 @@
|
|||||||
<div class="columns is-mobile">
|
<div class="columns is-mobile">
|
||||||
<div class="column is-narrow">
|
<div class="column is-narrow">
|
||||||
<h1 class="is-size-3 title">
|
<h1 class="is-size-3 title">
|
||||||
<a href="{{ .BaseURL }}" rel="Inbox" class="has-text-grey-dark">
|
<a href="{{ .BaseURL }}/" rel="Inbox" class="has-text-grey-dark">
|
||||||
{{if or .Messages .SMS}}
|
{{if or .Messages .SMS}}
|
||||||
📳
|
📳
|
||||||
{{else}}
|
{{else}}
|
||||||
|
@ -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>
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
{{define "header_buttons"}}
|
{{define "header_buttons"}}
|
||||||
<button class="button is-danger"
|
<button class="button is-danger"
|
||||||
data-controller="restful"
|
data-controller="restful"
|
||||||
data-restful-endpoint="{{ .BaseURL }}/{{ .SMS.ID }}"
|
data-restful-endpoint="{{ .BaseURL }}/sms/{{ .SMS.ID }}"
|
||||||
data-restful-method="DELETE"
|
data-restful-method="DELETE"
|
||||||
data-restful-redirect="{{ .BaseURL }}">
|
data-restful-redirect="{{ .BaseURL }}/">
|
||||||
🗑️ Delete
|
🗑️ Delete
|
||||||
</button>
|
</button>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Reference in New Issue
Block a user