From b155c8167ddd5562f30fcfadd9eeb60d80e2619e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 3 May 2022 17:36:29 +0200 Subject: [locations/news] Add per-location news/help/loginscreentext --- modules-available/locations/pages/details.inc.php | 1 + modules-available/locations/templates/location-subnets.html | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'modules-available/locations') diff --git a/modules-available/locations/pages/details.inc.php b/modules-available/locations/pages/details.inc.php index d2ec7b24..77f96221 100644 --- a/modules-available/locations/pages/details.inc.php +++ b/modules-available/locations/pages/details.inc.php @@ -342,6 +342,7 @@ class SubPage 'locationname' => $loc['locationname'], 'list' => $rows, 'roomplanner' => Module::get('roomplanner') !== false, + 'news' => Module::get('news') !== false && User::hasPermission('.news.*', $loc['locationid']), 'parents' => Location::getLocations($loc['parentlocationid'], $locationId, true) ); diff --git a/modules-available/locations/templates/location-subnets.html b/modules-available/locations/templates/location-subnets.html index 85c5a744..976c3cc7 100644 --- a/modules-available/locations/templates/location-subnets.html +++ b/modules-available/locations/templates/location-subnets.html @@ -91,6 +91,12 @@ {{lang_openingTime}} + {{#news}} + + + {{lang_editNews}} + + {{/news}} {{#roomplanner}} -- cgit v1.2.3-55-g7522