rename channel app events to calendar and add nav_set_selected() to /cal
This commit is contained in:
parent
1bb6dfc9a0
commit
47fbdda409
@ -70,6 +70,8 @@ class Cal extends \Zotlabs\Web\Controller {
|
||||
return;
|
||||
}
|
||||
|
||||
nav_set_selected('Calendar');
|
||||
|
||||
$sql_extra = permissions_sql($channel['channel_id'],get_observer_hash(),'event');
|
||||
|
||||
$first_day = get_pconfig(local_channel(),'system','cal_first_day');
|
||||
|
@ -440,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'
|
||||
];
|
||||
|
@ -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;
|
||||
@ -1258,6 +1254,7 @@ img.mail-conv-sender-photo {
|
||||
#nav-app-link {
|
||||
padding: 0 !important;
|
||||
line-height: 1.175;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
|
Reference in New Issue
Block a user