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:
@@ -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 */
|
||||
|
||||
@@ -46,13 +46,15 @@
|
||||
|
||||
{{with .attachments}}
|
||||
<div class="well message-attachments">
|
||||
<ul class="list-unstyled">
|
||||
{{range $i, $e := .}}
|
||||
<li>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
</ul>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user