From 40a7a43bd2118d310d12b0b5de13423943b913c8 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 1 Apr 2020 10:10:57 -0400 Subject: [PATCH] [frio] Add link to Compose page in jot --- include/conversation.php | 2 ++ mod/editpost.php | 2 ++ view/theme/frio/css/style.css | 4 ++++ view/theme/frio/templates/jot.tpl | 24 ++++++++++++++++++++---- 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 8c09fa98b3..8999873820 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1295,6 +1295,8 @@ function status_editor(App $a, $x, $notes_cid = 0, $popup = false) //jot nav tab (used in some themes) '$message' => DI::l10n()->t('Message'), '$browser' => DI::l10n()->t('Browser'), + + '$compose_link_title' => DI::l10n()->t('Open Compose page'), ]); diff --git a/mod/editpost.php b/mod/editpost.php index aa8930e5d0..7cccfdb2d4 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -132,6 +132,8 @@ function editpost_content(App $a) '$message' => DI::l10n()->t('Message'), '$browser' => DI::l10n()->t('Browser'), '$shortpermset' => DI::l10n()->t('permissions'), + + '$compose_link_title' => DI::l10n()->t('Open Compose page'), ]); return $o; diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index 46a633f17a..5e7d452043 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -1342,6 +1342,10 @@ section #jotOpen { #jot-modal .modal-header { border-bottom: none; } +#jot-modal .modal-header .compose-link { + float: right; + margin-right: 20px; +} #jot-title-wrap, #jot-category-wrap { margin-bottom: 5px; } diff --git a/view/theme/frio/templates/jot.tpl b/view/theme/frio/templates/jot.tpl index 98eba98b23..f719625a28 100644 --- a/view/theme/frio/templates/jot.tpl +++ b/view/theme/frio/templates/jot.tpl @@ -9,25 +9,41 @@ in with dropdows the close button needs to be inserted after the dropdown. *}} + + + + {{* The Jot navigation menu for desktop user (text input, permissions, preview, filebrowser) *}}