This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch mod-gui
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/mod-gui by this push:
new a0c0b73 Easier to see what a message looks like
a0c0b73 is described below
commit a0c0b733485897ab00e4dff1997ecbe476dcbd15
Author: Sebb <[email protected]>
AuthorDate: Sat Jan 19 11:32:03 2019 +0000
Easier to see what a message looks like
---
www/moderation/desk/helpers.rb | 5 ++++-
www/moderation/desk/public/cross.png | Bin 0 -> 15054 bytes
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/www/moderation/desk/helpers.rb b/www/moderation/desk/helpers.rb
index ce77ad1..9f4d24e 100644
--- a/www/moderation/desk/helpers.rb
+++ b/www/moderation/desk/helpers.rb
@@ -8,7 +8,10 @@ helpers do
if src.to_s.start_with? 'cid:'
src.value = src.to_s.sub('cid:', '')
else # src.to_s.start_with? 'http' # Don't allow access to remote
images
- src.value='../../transparent.png'
+ # Use a visible image to show where the original has been replaced
+ # Previously used transparent.png, but that did not work well for
messages
+ # with large images in the main body
+ src.value='../../cross.png'
end
end
else
diff --git a/www/moderation/desk/public/cross.png
b/www/moderation/desk/public/cross.png
new file mode 100644
index 0000000..5a7adfa
Binary files /dev/null and b/www/moderation/desk/public/cross.png differ