diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/css/bootstrap-red.css | 14 | ||||
-rw-r--r-- | view/css/conversation.css | 4 | ||||
-rw-r--r-- | view/css/mod_wiki.css | 26 | ||||
-rw-r--r-- | view/es-es/hmessages.po | 4 | ||||
-rw-r--r-- | view/es-es/hstrings.php | 6 | ||||
-rw-r--r-- | view/js/main.js | 6 | ||||
-rw-r--r-- | view/js/mod_cloud.js | 5 | ||||
-rw-r--r-- | view/js/mod_hq.js | 33 | ||||
-rw-r--r-- | view/pdl/mod_hq.pdl | 1 | ||||
-rw-r--r-- | view/theme/redbasic/css/style.css | 45 | ||||
-rw-r--r-- | view/theme/redbasic/php/style.php | 4 | ||||
-rw-r--r-- | view/theme/redbasic/schema/dark.css | 30 | ||||
-rw-r--r-- | view/tpl/channel_activities.tpl | 21 | ||||
-rw-r--r-- | view/tpl/channel_activities_photos.tpl | 19 | ||||
-rw-r--r-- | view/tpl/contact_edit_modal.tpl | 29 | ||||
-rw-r--r-- | view/tpl/messages_widget.tpl | 8 | ||||
-rw-r--r-- | view/tpl/page_display.tpl | 5 | ||||
-rw-r--r-- | view/tpl/page_display_empty.tpl | 7 |
18 files changed, 150 insertions, 117 deletions
diff --git a/view/css/bootstrap-red.css b/view/css/bootstrap-red.css index 8a33f3b2e..7207086b9 100644 --- a/view/css/bootstrap-red.css +++ b/view/css/bootstrap-red.css @@ -41,20 +41,6 @@ nav .dropdown-menu { overflow: auto; } -#navbar-collapse-2 { - flex-basis: 100%; - max-height: 70vh; -} - -#navbar-collapse-2.show { - overflow: auto; -} - - -#navbar-collapse-2.collapsing .dropdown-header, -#navbar-collapse-2.show .dropdown-header { - padding: 0.5rem 0.1rem; -} .navbar-dark .navbar-toggler { color: rgba(255,255,255,1); diff --git a/view/css/conversation.css b/view/css/conversation.css index b6d47e3c3..169808c57 100644 --- a/view/css/conversation.css +++ b/view/css/conversation.css @@ -316,14 +316,10 @@ a.wall-item-name-link { } code { - font-family: Courier, monospace; - font-size: 1em; - padding: 1em 1.5em; display: block; } code.inline-code { - padding: 0.2em; display: inline; } diff --git a/view/css/mod_wiki.css b/view/css/mod_wiki.css index 7e47dca21..defb40dbb 100644 --- a/view/css/mod_wiki.css +++ b/view/css/mod_wiki.css @@ -1,5 +1,5 @@ #ace-editor { - position: relative; + position: relative; width: 100%; height: 500px; border: 1px solid #ccc; @@ -47,27 +47,3 @@ td > i { #wikis-index td:nth-last-child(1){ padding-right: 10px; } - -pre code { - background: #F5F5F5; - font-family: Courier, monospace; - font-size: 1em; - padding: 1em 1.5em; - display: block; - white-space: pre-wrap; - word-break: break-all; -} - -code { - background: #F5F5F5; - font-family: Courier, monospace; - font-size: 1em; - display: inline; - padding: 0.2em 0.2em; - white-space: pre-wrap; - word-break: break-all; -} - -#wiki-content-container code { - background: #F5F5F5; -} diff --git a/view/es-es/hmessages.po b/view/es-es/hmessages.po index ce0a26aaa..17d4477c5 100644 --- a/view/es-es/hmessages.po +++ b/view/es-es/hmessages.po @@ -7256,7 +7256,7 @@ msgstr "Configuración del canal" #: ../../Zotlabs/Widget/Settings_menu.php:49 msgid "Privacy settings" -msgstr "Ajustes de peivacidad" +msgstr "Ajustes de privacidad" #: ../../Zotlabs/Widget/Settings_menu.php:56 msgid "Display settings" @@ -11807,7 +11807,7 @@ msgstr "Aprobar contacto" #: ../../Zotlabs/Module/Contactedit.php:431 #: ../../Zotlabs/Module/Connedit.php:717 msgid "Their" -msgstr "Su/Sus" +msgstr "Su" #: ../../Zotlabs/Module/Contactedit.php:432 #: ../../Zotlabs/Module/Connedit.php:718 diff --git a/view/es-es/hstrings.php b/view/es-es/hstrings.php index 1e4b43055..47a18171d 100644 --- a/view/es-es/hstrings.php +++ b/view/es-es/hstrings.php @@ -2,7 +2,7 @@ if(! function_exists("string_plural_select_es_es")) { function string_plural_select_es_es($n){ - return ($n != 1); + return ($n != 1 ? 1 : 0); }} App::$rtl = 0; App::$strings["plural_function_code"] = "(n != 1 ? 1 : 0)"; @@ -1619,7 +1619,7 @@ App::$strings["Remove term"] = "Eliminar término"; App::$strings["Suggested Chatrooms"] = "Salas de chat sugeridas"; App::$strings["Account settings"] = "Configuración de la cuenta"; App::$strings["Channel settings"] = "Configuración del canal"; -App::$strings["Privacy settings"] = "Ajustes de peivacidad"; +App::$strings["Privacy settings"] = "Ajustes de privacidad"; App::$strings["Display settings"] = "Ajustes de visualización"; App::$strings["Manage locations"] = "Gestión de ubicaciones (clones) del canal"; App::$strings["Overview"] = "Resumen"; @@ -2653,7 +2653,7 @@ App::$strings["Custom Filter"] = "Filtro personalizado"; App::$strings["Only import posts with this text"] = "Importar solo entradas que contengan este texto"; App::$strings["Do not import posts with this text"] = "No importar entradas que contengan este texto"; App::$strings["Approve contact"] = "Aprobar contacto"; -App::$strings["Their"] = "Su/Sus"; +App::$strings["Their"] = "Su"; App::$strings["My"] = "Mi"; App::$strings["Roles"] = "Roles"; App::$strings["Compare permissions"] = "Comparar permisos"; diff --git a/view/js/main.js b/view/js/main.js index f7709f9d1..3fe916d1d 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -164,8 +164,8 @@ $(document).ready(function() { jQuery.timeago.settings.allowFuture = true; $(document).on('click', '.notification, .message', function(e) { - let b64mid = $(this).data('b64mid'); - let notify_id = $(this).data('notify_id'); + let b64mid = this.dataset.b64mid; + let notify_id = this.dataset.notify_id; let path = $(this)[0].pathname.split('/')[1]; let stateObj = { b64mid: b64mid }; let singlethread_modules = ['display', 'hq']; @@ -882,7 +882,7 @@ function updateInit() { if($('#live-channel').length) { src = 'channel'; } if($('#live-pubstream').length) { src = 'pubstream'; } if($('#live-display').length) { src = 'display'; } - if($('#live-hq').length) { src = 'hq'; } + //if($('#live-hq').length) { src = 'hq'; } if($('#live-search').length) { src = 'search'; } // if($('#live-cards').length) { src = 'cards'; } // if($('#live-articles').length) { src = 'articles'; } diff --git a/view/js/mod_cloud.js b/view/js/mod_cloud.js index 1f444e4fe..7f9cb4fd1 100644 --- a/view/js/mod_cloud.js +++ b/view/js/mod_cloud.js @@ -14,6 +14,11 @@ $(document).ready(function () { // Per File Tools + // highlight and scroll into view if we got an id via hash + if(window.location.hash) { + $('#cloud-index-' + window.location.hash.substr(1)).addClass('cloud-index-active').get(0).scrollIntoView({block: 'center'}); + } + $('.cloud-tool-info-btn').on('click', function (e) { e.preventDefault(); let id = $(this).data('id'); diff --git a/view/js/mod_hq.js b/view/js/mod_hq.js index 5f8430b4d..dc274c5bf 100644 --- a/view/js/mod_hq.js +++ b/view/js/mod_hq.js @@ -1,17 +1,42 @@ $(document).ready(function() { - $(document).on('click', '.jot-toggle', function(e) { + $('.autotime').timeago(); + + if (bParam_mid) { + src = 'hq'; + $('.channel-activities-toggle').removeClass('d-none'); + } + else { + $('#channel-activities').removeClass('d-none'); + } + + $(document).one('click', '.notification, .message', function(e) { + page_load = false; + followUpPageLoad = true; + src = 'hq'; + $('#channel-activities').addClass('d-none'); + $('.channel-activities-toggle').removeClass('d-none'); + }); + + $(document).on('click', '.channel-activities-toggle', function(e) { $(window).scrollTop(0); $(document).trigger('hz:hqControlsClickAction'); + $('#channel-activities').toggleClass('d-none'); + $(this).toggleClass('active'); + }); + + $(document).on('click', '.jot-toggle', function(e) { + $(document).trigger('hz:hqControlsClickAction'); $('#jot-popup').toggle(); - $('#profile-jot-text').focus(); + $('#profile-jot-text').focus().get(0).scrollIntoView({block: 'center'}); + $(this).toggleClass('active'); }); $(document).on('click', '.notes-toggle', function(e) { - $(window).scrollTop(0); $(document).trigger('hz:hqControlsClickAction'); $('#personal-notes').toggleClass('d-none'); - $('#note-text').focus(); + $('#note-text-html').get(0).scrollIntoView({block: 'center'}); + $(this).toggleClass('active'); }); }); diff --git a/view/pdl/mod_hq.pdl b/view/pdl/mod_hq.pdl index 9e139d7b9..d396ffa81 100644 --- a/view/pdl/mod_hq.pdl +++ b/view/pdl/mod_hq.pdl @@ -6,6 +6,7 @@ [/widget] [/region] [region=content] +[widget=channel_activities][/widget] [widget=notes] [var=hidden]1[/var] [var=app]1[/var] diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 3b2370b7f..d282e1a3b 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -145,23 +145,6 @@ input[type=text], textarea { white-space: pre; } -pre code { - border: none; - padding: 1em 1.5em; -} - -code { - background: #ccc; - color: #000; -} - -pre { - background: #F5F5F5; - color: #333; - border:1px solid #ccc; - border-radius: $radius; -} - .heart { color: #FF0000; } @@ -209,7 +192,7 @@ nav { max-height: 50%; background: $comment_item_colour; padding: 1rem; - border-bottom: #ccc 1px solid; + border-bottom: #e0e0e0 1px solid; overflow: auto; -moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); -webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2); @@ -455,7 +438,7 @@ footer { .pager-prev, .pager-next, .pager_n { - border: 1px solid #ccc; + border: 1px solid #e0e0e0; background: transparent; padding: 4px; } @@ -706,7 +689,7 @@ nav .acpopup { */ .oauthapp { height: auto; overflow: auto; - border-bottom: 2px solid #cccccc; + border-bottom: 2px solid #e0e0e0; padding-bottom: 1em; margin-bottom: 1em; } @@ -1086,7 +1069,7 @@ img.mail-conv-sender-photo { .hide-comments-outer { background-color: $comment_item_colour; - border-top-color: #ccc; + border-top-color: #e0e0e0; border-style: solid; border-top-style: dashed; border-width: 1px 0px 0px 0px; @@ -1140,13 +1123,13 @@ img.mail-conv-sender-photo { .comment-edit-text { - border: 1px solid #ccc; + border: 1px solid #e0e0e0; border-radius: $radius; } .divgrow-showmore { display: block; - border-top: 1px dashed #ccc; + border-top: 1px dashed #e0e0e0; text-align: center; } @@ -1180,7 +1163,7 @@ img.mail-conv-sender-photo { } #datebrowse-sidebar select { - border: 1px solid #ccc; + border: 1px solid #e0e0e0; border-radius: $radius; } @@ -1265,7 +1248,7 @@ img.mail-conv-sender-photo { } .generic-content-wrapper { - border: 1px solid rgba(0, 0, 0, .2); + border: 1px solid #e0e0e0; border-radius: $radius; margin-bottom: 1.5rem; } @@ -1437,7 +1420,7 @@ main.fullscreen .section-content-wrapper-np { blockquote { font-size: 1rem; font-style: italic; - border-left: 3px solid #ccc; + border-left: 3px solid #e0e0e0; padding: 1em 0px 1em 1.5em; margin: 0px; } @@ -1612,7 +1595,7 @@ dl.bb-dl > dd > li { .onoffswitch.checkbox > div label { display: block; overflow: hidden; cursor: pointer; - border: 1px solid #ccc; + border: 1px solid #e0e0e0; border-radius: 12px; margin:0px; -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; @@ -1651,13 +1634,13 @@ dl.bb-dl > dd > li { .onoffswitch-inner:after { content: attr(data-off); padding-left: 21px; - background-color: $item_colour; color: #ccc; + background-color: $item_colour; color: #e0e0e0; text-align: left; } .onoffswitch-switch { display: block; width: 15px; margin:4px; - background: #ccc; + background: #e0e0e0; border-radius: 10px; position: absolute; top: 0; bottom: 0; right: 36px; -moz-transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s; @@ -1801,3 +1784,7 @@ span.default-highlight { .bootstrap-tagsinput { width: 100%; } + +.jg-entry img { + border-radius: $radius; +} diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index 3dbc29a96..fd79b02a9 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -80,13 +80,13 @@ if (! $nav_active_icon_colour) if (! $link_colour) $link_colour = '#0d6efd'; if (! $banner_colour) - $banner_colour = '#fff'; + $banner_colour = '#efefef'; if (! $bgcolour) $bgcolour = 'rgb(254,254,254)'; if (! $background_image) $background_image =''; if (! $item_colour) - $item_colour = 'rgb(238,238,238)'; + $item_colour = '#f6f6f6'; if (! $comment_item_colour) $comment_item_colour = 'rgb(255,255,255)'; if (! $item_opacity) diff --git a/view/theme/redbasic/schema/dark.css b/view/theme/redbasic/schema/dark.css index e7049a1c5..751ce25e8 100644 --- a/view/theme/redbasic/schema/dark.css +++ b/view/theme/redbasic/schema/dark.css @@ -40,13 +40,19 @@ option { color: $link_colour !important; } -.vcard, #contact-block, .widget { +.vcard, +#contact-block, +.widget { background-color: transparent; border: none; border-bottom: 1px solid #333; border-radius: 0px } +.vcard-card { + background-color: transparent; +} + #profile-photo-wrapper { border: none; } @@ -323,10 +329,6 @@ a, a:visited, a:link, .fakelink, .fakelink:visited, .fakelink:link { background-color: #222; } -.text-dark { - color: #aaa !important; -} - .group-selected, .fileas-selected, .categories-selected, .search-selected, a.active { color: #fff !important; text-decoration: underline !important; @@ -484,18 +486,18 @@ pre { /* category badge fix: */ -a.text-dark:focus, a.text-dark:hover { - color: #ddd !important; -} -.badge-warning { -/* background-color: #ffc927; */ +.bg-warning { + background-color: #e38916; +} +.bg-warning:hover, .bg-warning:focus { + background-color: #ffc927 !important; } -.badge-warning a.text-dark { - color: #333 !important; +.bg-warning a.text-dark { + color: #111 !important; } -.badge-warning a.text-dark:focus, .badge-warning a.text-dark:hover { - color: red !important; +.bg-warning a.text-dark:focus, .bg-warning a.text-dark:hover { + color: #bd0000 !important; text-decoration: none; } diff --git a/view/tpl/channel_activities.tpl b/view/tpl/channel_activities.tpl new file mode 100644 index 000000000..a675f71db --- /dev/null +++ b/view/tpl/channel_activities.tpl @@ -0,0 +1,21 @@ +<div class="mb-1 text-uppercase"> + <a href="{{$url}}"><i class="fa fa-fw fa-{{$icon}} generic-icons-nav"></i>{{$label}}</a> +</div> +<div class="row mb-3"> + {{foreach $items as $i}} + <div class="col-sm-4 mb-3"> + <div class="card"> + <a href="{{$i.url}}" class="text-dark"> + <div class="card-body"> + {{if $i.title}} + <strong>{{$i.title}}</strong> + <hr> + {{/if}} + {{$i.summary}} + </div> + <div class="card-footer text-muted autotime" title="{{$i.footer}}">{{$i.footer}}</div> + </a> + </div> + </div> + {{/foreach}} +</div> diff --git a/view/tpl/channel_activities_photos.tpl b/view/tpl/channel_activities_photos.tpl new file mode 100644 index 000000000..b0079f382 --- /dev/null +++ b/view/tpl/channel_activities_photos.tpl @@ -0,0 +1,19 @@ +<div class="mb-1 text-uppercase"> + <a href="{{$url}}"><i class="fa fa-fw fa-{{$icon}} generic-icons-nav"></i>{{$label}}</a> +</div> +<div id="photo-album" class="mb-4"> + {{foreach $items as $i}} + <a href="{{$i.url}}" title="{{$i.alt}}"> + <img src="{{$i.src}}" width="{{$i.width}}" height="{{$i.height}}" alt="{{$i.alt}}"> + <div class='jg-caption autotime' title="{{$i.edited}}"></div> + </a> + {{/foreach}} +</div> +<script> + $('#photo-album').justifiedGallery({ + border: 0, + margins: 3, + maxRowsCount: 1, + waitThumbnailsLoad: false + }); +</script> diff --git a/view/tpl/contact_edit_modal.tpl b/view/tpl/contact_edit_modal.tpl index ddb1557c1..72feb7138 100644 --- a/view/tpl/contact_edit_modal.tpl +++ b/view/tpl/contact_edit_modal.tpl @@ -24,29 +24,24 @@ </div> </div> <script> + let poi; let section = 'roles'; let sub_section; - - $('#edit-modal').on('hidden.bs.modal', function (e) { - if (window.location.hash) { - history.replaceState(null, '', 'connections'); - } - }) - - if (window.location.hash) { - poi = window.location.hash.substr(1); - init_contact_edit(poi); - } - - window.onhashchange = function() { + $(document).ready(function() { if (window.location.hash) { poi = window.location.hash.substr(1); init_contact_edit(poi); } - }; + window.onhashchange = function() { + if (window.location.hash) { + poi = window.location.hash.substr(1); + init_contact_edit(poi); + } + }; + }); $(document).on('click', '.contact-edit', function (e) { e.preventDefault(); @@ -101,6 +96,12 @@ } }); + $('#edit-modal').on('hidden.bs.modal', function (e) { + if (window.location.hash) { + history.replaceState(null, '', 'connections'); + } + }); + function init_contact_edit(poi) { if (!poi) return; diff --git a/view/tpl/messages_widget.tpl b/view/tpl/messages_widget.tpl index 83f563db6..ddb21beb5 100644 --- a/view/tpl/messages_widget.tpl +++ b/view/tpl/messages_widget.tpl @@ -69,7 +69,9 @@ $(document).ready(function () { $('.messages-timeago').timeago(); - $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active'); + if (bParam_mid) { + $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active'); + } }); $('#messages-widget').on('scroll', function() { @@ -130,7 +132,9 @@ else { $('#messages-empty').show(); } - $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active'); + if (bParam_mid) { + $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active'); + } $('#messages-loading').hide(); $('.messages-timeago').timeago(); diff --git a/view/tpl/page_display.tpl b/view/tpl/page_display.tpl index a320920c7..589de0b41 100644 --- a/view/tpl/page_display.tpl +++ b/view/tpl/page_display.tpl @@ -9,6 +9,11 @@ <div class="page-author"><a class="page-author-link" href="{{$auth_url}}">{{$author}}</a></div> <div class="page-date">{{$date}}</div> <div class="page-body">{{$body}}</div> + {{if $edit_link}} + <div class="position-fixed bottom-0 end-0 m-3"> + <a href="{{$edit_link}}" class="btn btn-lg btn-primary rounded-circle"><i class="fa fa-pencil"></i></a> + </div> + {{/if}} </div> </div> </div> diff --git a/view/tpl/page_display_empty.tpl b/view/tpl/page_display_empty.tpl index 9f000dee8..5a3bdc530 100644 --- a/view/tpl/page_display_empty.tpl +++ b/view/tpl/page_display_empty.tpl @@ -1 +1,6 @@ -{{$body}}
\ No newline at end of file +{{$body}} +{{if $edit_link}} +<div class="position-fixed bottom-0 end-0 m-3"> + <a href="{{$edit_link}}" class="btn btn-lg btn-primary rounded-circle"><i class="fa fa-pencil"></i></a> +</div> +{{/if}} |