aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Module/Cal.php2
-rw-r--r--include/nav.php18
-rw-r--r--view/theme/redbasic/css/style.css10
-rwxr-xr-xview/tpl/navbar_default.tpl11
4 files changed, 26 insertions, 15 deletions
diff --git a/Zotlabs/Module/Cal.php b/Zotlabs/Module/Cal.php
index 41676ce02..c8403e979 100644
--- a/Zotlabs/Module/Cal.php
+++ b/Zotlabs/Module/Cal.php
@@ -69,6 +69,8 @@ class Cal extends \Zotlabs\Web\Controller {
notice( t('Permissions denied.') . EOL);
return;
}
+
+ nav_set_selected('Calendar');
$sql_extra = permissions_sql($channel['channel_id'],get_observer_hash(),'event');
diff --git a/include/nav.php b/include/nav.php
index af0ebbae2..9df50c9fe 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -27,6 +27,8 @@ function nav($template = 'default') {
</script>
EOT;
+ $is_owner = (((local_channel()) && ((App::$profile_uid == local_channel()) || (App::$profile_uid == 0))) ? true : false);
+
if(local_channel()) {
$channel = App::get_channel();
$observer = App::get_observer();
@@ -39,17 +41,17 @@ EOT;
intval(get_account_id())
);
}
+ $sitelocation = (($is_owner) ? '' : App::$profile['reddress']);
}
- elseif(remote_channel())
+ elseif(remote_channel()) {
$observer = App::get_observer();
+ $sitelocation = ((App::$profile['reddress']) ? App::$profile['reddress'] : '@' . App::get_hostname());
+ }
require_once('include/conversation.php');
- $is_owner = (((local_channel()) && ((App::$profile_uid == local_channel()) || (App::$profile_uid == 0))) ? true : false);
+
$channel_apps[] = channel_apps($is_owner, App::$profile['channel_address']);
- $myident = (($channel) ? $channel['xchan_addr'] : '');
-
- $sitelocation = (($myident) ? $myident : App::get_hostname());
/**
*
@@ -438,10 +440,10 @@ function channel_apps($is_owner = false, $nickname = null) {
if($p['view_stream'] && $cal_link) {
$tabs[] = [
- 'label' => t('Events'),
+ 'label' => t('Calendar'),
'url' => z_root() . $cal_link,
- 'sel' => ((argv(0) == 'cal' || argv(0) == 'events') ? 'active' : ''),
- 'title' => t('Events'),
+ 'sel' => ((argv(0) == 'cal') ? 'active' : ''),
+ 'title' => t('Calendar'),
'id' => 'event-tab',
'icon' => 'calendar'
];
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index 3228a8b02..0fe823b7e 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -161,10 +161,6 @@ nav {
filter:alpha(opacity=$nav_percent_min_opacity);
}
-#nav-app-link {
- white-space: nowrap;
-}
-
#powered-by {
font-size: 0.5rem;
position: absolute;
@@ -1260,6 +1256,12 @@ img.mail-conv-sender-photo {
border-radius: $radius;
}
+#nav-app-link {
+ padding: 0 !important;
+ line-height: 1.175;
+ white-space: nowrap;
+}
+
.page-title {
margin: 7px 0px;
}
diff --git a/view/tpl/navbar_default.tpl b/view/tpl/navbar_default.tpl
index b330993c8..d02ad2e97 100755
--- a/view/tpl/navbar_default.tpl
+++ b/view/tpl/navbar_default.tpl
@@ -17,8 +17,8 @@
</div>
{{/if}}
{{if $userinfo}}
-<div class="dropdown usermenu">
- <div class="fakelink" data-toggle="dropdown">
+<div class="dropdown">
+ <div class="fakelink usermenu" data-toggle="dropdown">
<img id="avatar" src="{{$userinfo.icon}}" alt="{{$userinfo.name}}">
<i class="fa fa-caret-down"></i>
</div>
@@ -60,7 +60,12 @@
{{/if}}
</div>
<div class="navbar-nav mr-auto">
- <div><a id="nav-app-link" href="{{$url}}" class="nav-link">{{$sel.name}}</a></div>
+ <a id="nav-app-link" href="{{$url}}" class="nav-link">
+ {{$sel.name}}
+ {{if $sitelocation}}
+ <br><small>{{$sitelocation}}</small>
+ {{/if}}
+ </a>
</div>
{{/if}}
<div class="navbar-toggler-right">