浏览代码

alps theme: add button to load remote content

master
Drew DeVault 4 年前
committed by Simon Ser
父节点
当前提交
7293b7e8e7
找不到此签名对应的密钥 GPG 密钥 ID: FDE7BE0E88F5E48
共有 2 个文件被更改,包括 17 次插入0 次删除
  1. +7
    -0
      themes/alps/assets/style.css
  2. +10
    -0
      themes/alps/message.html

+ 7
- 0
themes/alps/assets/style.css 查看文件

@@ -197,6 +197,13 @@ main.message th,
main.event th { width: 5%;}
main.message h1,
main.event h1 { font-size: 1.2rem; padding: 0.5rem;}
main.message .remote-content {
background: #eeffee;
}

main.message .remote-content td {
color: black;
}

main.message pre,
main.message iframe,


+ 10
- 0
themes/alps/message.html 查看文件

@@ -168,6 +168,16 @@
<td>{{template "addr-list" .Message.Envelope.Bcc}}</td>
</tr>
{{ end }}
{{if and .Extra.HasRemoteResources (not .Extra.RemoteResourcesAllowed)}}
<tr class="remote-content">
<td colspan="2">
This message contains remote content, such as external images.
<a href="?part={{.Part.PathString}}&allow-remote-resources=1">
Load remote content »
</a>
</td>
</tr>
{{end}}
</table>
<section class="parts">
{{template "message-part-tree" (tuple $ .Message.PartTree)}}


正在加载...
取消
保存