rename channel app events to calendar and add nav_set_selected() to /cal

This commit is contained in:
Mario Vavti 2017-11-07 11:22:11 +01:00
parent 1bb6dfc9a0
commit 47fbdda409
3 changed files with 6 additions and 7 deletions

View File

@ -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');

View File

@ -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'
];

View File

@ -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 {