Add link to original file

This commit is contained in:
Eike Kettner 2020-02-20 22:40:27 +01:00
parent 72fd3b1a25
commit 98576a5fb5

View File

@ -1176,6 +1176,14 @@ renderAttachmentView model pos attach =
]
, div [ class "right menu" ]
[ a
[ class "item"
, title "Goto Original file"
, href (fileUrl ++ "/original")
, target "_new"
]
[ i [ class "external square alternate icon" ] []
]
, a
[ classList
[ ( "toggle item", True )
, ( "active", isAttachMetaOpen model attach.id )
@ -1188,7 +1196,7 @@ renderAttachmentView model pos attach =
]
, a
[ class "item"
, title "Download to disk"
, title "Download PDF to disk"
, download attachName
, href fileUrl
]