diff --git a/client/css/style.css b/client/css/style.css index 3ba3d46f..f2f3555c 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -137,12 +137,14 @@ kbd { text-transform: uppercase; transition: background .2s, border-color .2s, color .2s; word-spacing: 3px; + cursor: pointer; /* This is useful for ` + + + + + + + {{#equal type "image"}} + Open image + {{else}} + Visit page + {{/equal}} + diff --git a/client/views/index.js b/client/views/index.js index ca571bec..5c9da5dd 100644 --- a/client/views/index.js +++ b/client/views/index.js @@ -29,6 +29,7 @@ module.exports = { msg_preview_toggle: require("./msg_preview_toggle.tpl"), msg_unhandled: require("./msg_unhandled.tpl"), network: require("./network.tpl"), + image_viewer: require("./image_viewer.tpl"), unread_marker: require("./unread_marker.tpl"), user: require("./user.tpl"), user_filtered: require("./user_filtered.tpl"), diff --git a/client/views/msg_preview.tpl b/client/views/msg_preview.tpl index 5f56529c..24f4a599 100644 --- a/client/views/msg_preview.tpl +++ b/client/views/msg_preview.tpl @@ -1,15 +1,19 @@ {{#preview}} - +
{{#equal type "image"}} - + + + {{else}} {{#if thumb}} - + + + {{/if}} -
+
{{head}}
{{body}}
-
+ {{/equal}} - +
{{/preview}}