1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 10:07:02 +00:00

Tweak attachment display

This commit is contained in:
James Hillyerd
2015-08-24 12:49:48 -07:00
parent 44ff0be01e
commit b107cb8787
2 changed files with 13 additions and 11 deletions

View File

@@ -53,11 +53,11 @@ body {
.message-attachments { .message-attachments {
margin-top: 20px; margin-top: 20px;
padding: 10px 20px;; padding: 10px 10px 0 0;
} }
.message-attachments ul { .message-attachments div {
margin: 0 margin: 0 0 5px 0;
} }
/* Metrics */ /* Metrics */

View File

@@ -46,13 +46,15 @@
{{with .attachments}} {{with .attachments}}
<div class="well message-attachments"> <div class="well message-attachments">
<ul class="list-unstyled"> {{range $i, $e := .}}
{{range $i, $e := .}} <div class="row">
<li> <div class="col-sm-6">
<span class="glyphicon glyphicon-paperclip" aria-hidden="true"></span> <span class="glyphicon glyphicon-paperclip" aria-hidden="true"></span>
{{$e.FileName}} {{$e.FileName}}
({{$e.ContentType}}) ({{$e.ContentType}})
<a class="btn btn-success btn-sm" </div>
<div class="col-sm-6">
<a class="btn btn-success btn-xs"
role="button" role="button"
href="/mailbox/vattach/{{$name}}/{{$id}}/{{$i}}/{{$e.FileName}}" href="/mailbox/vattach/{{$name}}/{{$id}}/{{$i}}/{{$e.FileName}}"
target="_blank" target="_blank"
@@ -60,15 +62,15 @@
<span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> <span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span>
View View
</a> </a>
<a class="btn btn-primary btn-sm" <a class="btn btn-primary btn-xs"
role="button" role="button"
href="/mailbox/dattach/{{$name}}/{{$id}}/{{$i}}/{{$e.FileName}}" href="/mailbox/dattach/{{$name}}/{{$id}}/{{$i}}/{{$e.FileName}}"
aria-label="Download"> aria-label="Download">
<span class="glyphicon glyphicon-download" aria-hidden="true"></span> <span class="glyphicon glyphicon-download" aria-hidden="true"></span>
Download Download
</a> </a>
</li> </div>
{{end}} </div>
</ul> {{end}}
</div> </div>
{{end}} {{end}}