1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 18:17:03 +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 {
margin-top: 20px;
padding: 10px 20px;;
padding: 10px 10px 0 0;
}
.message-attachments ul {
margin: 0
.message-attachments div {
margin: 0 0 5px 0;
}
/* Metrics */

View File

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