mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
ui: Fix Source & Raw HTML tab nav
This commit is contained in:
@@ -17,6 +17,7 @@ import Html.Attributes
|
|||||||
, id
|
, id
|
||||||
, placeholder
|
, placeholder
|
||||||
, property
|
, property
|
||||||
|
, tabindex
|
||||||
, target
|
, target
|
||||||
, type_
|
, type_
|
||||||
, value
|
, value
|
||||||
@@ -586,18 +587,16 @@ viewMessage zone message bodyMode =
|
|||||||
text ""
|
text ""
|
||||||
|
|
||||||
else
|
else
|
||||||
a
|
a [ href htmlUrl, target "_blank" ]
|
||||||
[ href htmlUrl, target "_blank" ]
|
[ button [ tabindex -1 ] [ text "Raw HTML" ] ]
|
||||||
[ button [] [ text "Raw HTML" ] ]
|
|
||||||
in
|
in
|
||||||
div []
|
div []
|
||||||
[ div [ class "button-bar" ]
|
[ div [ class "button-bar" ]
|
||||||
[ button [ class "message-close light", onClick CloseMessage ]
|
[ button [ class "message-close light", onClick CloseMessage ]
|
||||||
[ i [ class "fas fa-arrow-left" ] [] ]
|
[ i [ class "fas fa-arrow-left" ] [] ]
|
||||||
, button [ class "danger", onClick (DeleteMessage message) ] [ text "Delete" ]
|
, button [ class "danger", onClick (DeleteMessage message) ] [ text "Delete" ]
|
||||||
, a
|
, a [ href sourceUrl, target "_blank" ]
|
||||||
[ href sourceUrl, target "_blank" ]
|
[ button [ tabindex -1 ] [ text "Source" ] ]
|
||||||
[ button [] [ text "Source" ] ]
|
|
||||||
, htmlButton
|
, htmlButton
|
||||||
]
|
]
|
||||||
, dl [ class "message-header" ]
|
, dl [ class "message-header" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user