diff options
Diffstat (limited to 'themes/alps/messages-header.html')
-rw-r--r-- | themes/alps/messages-header.html | 82 |
1 files changed, 42 insertions, 40 deletions
diff --git a/themes/alps/messages-header.html b/themes/alps/messages-header.html index c183b6c..44cb78b 100644 --- a/themes/alps/messages-header.html +++ b/themes/alps/messages-header.html @@ -1,45 +1,47 @@ -<tr> - <th width="1%" class="message-list-checkbox"> - <input type="checkbox" id="action-checkbox-all"/> - </th> - <th colspan="3"> - <div class="actions-wrap"> - <div class="actions-message"> - {{ if and (eq .Mailbox.Name "INBOX") (not (eq .Mailbox.Name "Archive")) }} - <button form="messages-form" formaction="/message/{{.Mailbox.Name | pathescape}}/move?to=Archive">Archive</button> - - {{ end }} +<div class="message-list-checkbox"> + <input type="checkbox" id="action-checkbox-all"/> +</div> +<div class="actions-wrap"> + <div class="actions-message"> + <div class="action-group"> + {{ if and (eq .Mailbox.Name "INBOX") (not (eq .Mailbox.Name "Archive")) }} + <button form="messages-form" formaction="/message/{{.Mailbox.Name | pathescape}}/move?to=Archive">Archive</button> + {{ end }} + </div> - {{ if or (eq .Mailbox.Name "INBOX") (eq .Mailbox.Name "Trash") }} - <button form="messages-form" formaction="/message/{{.Mailbox.Name | pathescape}}/move?to=Junk">Report Spam</button> - {{ end }} + <div class="action-group"> + {{ if or (eq .Mailbox.Name "INBOX") (eq .Mailbox.Name "Trash") }} + <button form="messages-form" formaction="/message/{{.Mailbox.Name | pathescape}}/move?to=Junk">Report Spam</button> + {{ end }} + </div> - {{ if ne .Mailbox.Name "Trash"}} - <button form="messages-form" formaction="/message/{{.Mailbox.Name | pathescape}}/move?to=Trash">Delete</button> - {{ else }} - <button form="messages-form" formaction="/message/{{.Mailbox.Name | pathescape}}/delete">Delete Permanently</button> - {{ end }} + <div class="action-group"> + {{ if ne .Mailbox.Name "Trash"}} + <button form="messages-form" formaction="/message/{{.Mailbox.Name | pathescape}}/move?to=Trash">Delete</button> + {{ else }} + <button form="messages-form" formaction="/message/{{.Mailbox.Name | pathescape}}/delete">Delete Permanently</button> + {{ end }} + </div> - - <a href="{{ .GlobalData.URL.String }}" class="button-link">Refresh</a> - </div> + <div class="action-group"> + <a href="{{ .GlobalData.URL.String }}" class="button-link">Refresh</a> + </div> + </div> - <form action="" method="get" class="actions-search"> - <input type="text" name="query" value="{{.Query}}" placeholder="Search messages..."> - <button>Search</button> - </form> + <form method="get" class="actions-search"> + <input type="text" name="query" value="{{.Query}}" placeholder="Search messages..."> + <button>Search</button> + </form> - {{if or (ge .PrevPage 0) (ge .NextPage 0) }} - <div class="actions-pagination"> - {{if ge .PrevPage 0}} - {{if ge .PrevPage 1}}<a href="?page=0" class="button-link">«</a>{{ end }} - <a href="?page={{.PrevPage}}" class="button-link">‹</a> - {{end}} - {{if ge .NextPage 0}} - <a href="?page={{.NextPage}}" class="button-link">›</a> - {{end}} - </div> - {{ end }} - </div> - </th> -</tr> + {{if or (ge .PrevPage 0) (ge .NextPage 0) }} + <div class="actions-pagination"> + {{if ge .PrevPage 0}} + {{if ge .PrevPage 1}}<a href="?page=0" class="button-link">«</a>{{ end }} + <a href="?page={{.PrevPage}}" class="button-link">‹</a> + {{end}} + {{if ge .NextPage 0}} + <a href="?page={{.NextPage}}" class="button-link">›</a> + {{end}} + </div> + {{ end }} +</div> |