diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-05 21:43:13 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-05 21:43:13 +0300 |
commit | ecaa68a7095750ef7575fdefdb200ef01ef88748 (patch) | |
tree | 8728d073f15d64f8b5254ab8126804f6855aa4e4 /app/models | |
parent | 1bf9f012ccd744f415ffcb32c6af36dc04d7e07a (diff) | |
parent | 165bcec30506380efa912b3dba25815aeea9c92f (diff) |
Merge branch 'balsalmiq-support' into 'master'
Initial balsamiq support
See merge request !10564
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/blob.rb | 1 | ||||
-rw-r--r-- | app/models/blob_viewer/balsamiq.rb | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/app/models/blob.rb b/app/models/blob.rb index a4fae22a0c4..eaf0b713122 100644 --- a/app/models/blob.rb +++ b/app/models/blob.rb @@ -26,6 +26,7 @@ class Blob < SimpleDelegator BlobViewer::Image, BlobViewer::Sketch, + BlobViewer::Balsamiq, BlobViewer::Video, diff --git a/app/models/blob_viewer/balsamiq.rb b/app/models/blob_viewer/balsamiq.rb new file mode 100644 index 00000000000..f982521db99 --- /dev/null +++ b/app/models/blob_viewer/balsamiq.rb @@ -0,0 +1,12 @@ +module BlobViewer + class Balsamiq < Base + include Rich + include ClientSide + + self.partial_name = 'balsamiq' + self.extensions = %w(bmpr) + self.binary = true + self.switcher_icon = 'file-image-o' + self.switcher_title = 'preview' + end +end |