mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-31 05:15:08 +00:00
Add link to original file
This commit is contained in:
parent
72fd3b1a25
commit
98576a5fb5
@ -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
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user