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