Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
This commit is contained in:
commit
909f67fb3a
@ -69,6 +69,8 @@ class Cal extends \Zotlabs\Web\Controller {
|
|||||||
notice( t('Permissions denied.') . EOL);
|
notice( t('Permissions denied.') . EOL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav_set_selected('Calendar');
|
||||||
|
|
||||||
$sql_extra = permissions_sql($channel['channel_id'],get_observer_hash(),'event');
|
$sql_extra = permissions_sql($channel['channel_id'],get_observer_hash(),'event');
|
||||||
|
|
||||||
|
@ -27,6 +27,8 @@ function nav($template = 'default') {
|
|||||||
</script>
|
</script>
|
||||||
EOT;
|
EOT;
|
||||||
|
|
||||||
|
$is_owner = (((local_channel()) && ((App::$profile_uid == local_channel()) || (App::$profile_uid == 0))) ? true : false);
|
||||||
|
|
||||||
if(local_channel()) {
|
if(local_channel()) {
|
||||||
$channel = App::get_channel();
|
$channel = App::get_channel();
|
||||||
$observer = App::get_observer();
|
$observer = App::get_observer();
|
||||||
@ -39,17 +41,17 @@ EOT;
|
|||||||
intval(get_account_id())
|
intval(get_account_id())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
$sitelocation = (($is_owner) ? '' : App::$profile['reddress']);
|
||||||
}
|
}
|
||||||
elseif(remote_channel())
|
elseif(remote_channel()) {
|
||||||
$observer = App::get_observer();
|
$observer = App::get_observer();
|
||||||
|
$sitelocation = ((App::$profile['reddress']) ? App::$profile['reddress'] : '@' . App::get_hostname());
|
||||||
|
}
|
||||||
|
|
||||||
require_once('include/conversation.php');
|
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']);
|
$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) {
|
if($p['view_stream'] && $cal_link) {
|
||||||
$tabs[] = [
|
$tabs[] = [
|
||||||
'label' => t('Events'),
|
'label' => t('Calendar'),
|
||||||
'url' => z_root() . $cal_link,
|
'url' => z_root() . $cal_link,
|
||||||
'sel' => ((argv(0) == 'cal' || argv(0) == 'events') ? 'active' : ''),
|
'sel' => ((argv(0) == 'cal') ? 'active' : ''),
|
||||||
'title' => t('Events'),
|
'title' => t('Calendar'),
|
||||||
'id' => 'event-tab',
|
'id' => 'event-tab',
|
||||||
'icon' => 'calendar'
|
'icon' => 'calendar'
|
||||||
];
|
];
|
||||||
|
2
view/css/bootstrap-red.css
vendored
2
view/css/bootstrap-red.css
vendored
@ -19,7 +19,6 @@ nav .dropdown-menu {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media screen and (max-width: 767px) {
|
@media screen and (max-width: 767px) {
|
||||||
.navbar {
|
.navbar {
|
||||||
padding: .5rem 7px;
|
padding: .5rem 7px;
|
||||||
@ -41,6 +40,7 @@ nav .dropdown-menu {
|
|||||||
|
|
||||||
.navbar-toggler-right {
|
.navbar-toggler-right {
|
||||||
padding: 0.2rem 0;
|
padding: 0.2rem 0;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navbar-collapse-1 i {
|
#navbar-collapse-1 i {
|
||||||
|
@ -161,10 +161,6 @@ nav {
|
|||||||
filter:alpha(opacity=$nav_percent_min_opacity);
|
filter:alpha(opacity=$nav_percent_min_opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
#nav-app-link {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
#powered-by {
|
#powered-by {
|
||||||
font-size: 0.5rem;
|
font-size: 0.5rem;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -1260,6 +1256,12 @@ img.mail-conv-sender-photo {
|
|||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#nav-app-link {
|
||||||
|
padding: 0 !important;
|
||||||
|
line-height: 1.175;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.page-title {
|
.page-title {
|
||||||
margin: 7px 0px;
|
margin: 7px 0px;
|
||||||
}
|
}
|
||||||
@ -1497,6 +1499,11 @@ blockquote {
|
|||||||
left: 0px;
|
left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#nav-app-link-wrapper {
|
||||||
|
min-width: 0;
|
||||||
|
flex-basis: 25%;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.shareable_element_text {
|
.shareable_element_text {
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{if $userinfo}}
|
{{if $userinfo}}
|
||||||
<div class="dropdown usermenu">
|
<div class="dropdown">
|
||||||
<div class="fakelink" data-toggle="dropdown">
|
<div class="fakelink usermenu" data-toggle="dropdown">
|
||||||
<img id="avatar" src="{{$userinfo.icon}}" alt="{{$userinfo.name}}">
|
<img id="avatar" src="{{$userinfo.icon}}" alt="{{$userinfo.name}}">
|
||||||
<i class="fa fa-caret-down"></i>
|
<i class="fa fa-caret-down"></i>
|
||||||
</div>
|
</div>
|
||||||
@ -59,10 +59,17 @@
|
|||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-nav mr-auto">
|
{{if $sel.name}}
|
||||||
<div><a id="nav-app-link" href="{{$url}}" class="nav-link">{{$sel.name}}</a></div>
|
<div id="nav-app-link-wrapper" class="navbar-nav mr-auto">
|
||||||
|
<a id="nav-app-link" href="{{$url}}" class="nav-link text-truncate">
|
||||||
|
{{$sel.name}}
|
||||||
|
{{if $sitelocation}}
|
||||||
|
<br><small class="text-muted">{{$sitelocation}}</small>
|
||||||
|
{{/if}}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
<div class="navbar-toggler-right">
|
<div class="navbar-toggler-right">
|
||||||
{{if $nav.help.6}}
|
{{if $nav.help.6}}
|
||||||
<button id="context-help-btn" class="navbar-toggler border-0" type="button" onclick="contextualHelp(); return false;">
|
<button id="context-help-btn" class="navbar-toggler border-0" type="button" onclick="contextualHelp(); return false;">
|
||||||
|
Reference in New Issue
Block a user