From 98576a5fb52616e8d1c3be7d70d44f0448ce4d13 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Thu, 20 Feb 2020 22:40:27 +0100 Subject: [PATCH] Add link to original file --- modules/webapp/src/main/elm/Comp/ItemDetail.elm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/webapp/src/main/elm/Comp/ItemDetail.elm b/modules/webapp/src/main/elm/Comp/ItemDetail.elm index 9c0bc7c6..a7181eb8 100644 --- a/modules/webapp/src/main/elm/Comp/ItemDetail.elm +++ b/modules/webapp/src/main/elm/Comp/ItemDetail.elm @@ -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 ]