Add "new reports" menu entry.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 30 Dec 2019 22:05:37 +0000 (22:05 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 30 Dec 2019 22:05:37 +0000 (22:05 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrreport/trunk@2898 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport_body.php

index 8d02a9b03932f080ea98a937a7edb16c353faf7b..23b7f1c9569abebea81777579755658ae702a4ce 100644 (file)
@@ -1162,6 +1162,11 @@ class WrReport {
                        $icon = MobileUI::iconClass('random', 'before');
                        $title = Title::newFromText('Region', NS_CATEGORY);
                        $menu->insert('region')->addComponent('Regionen', $title->getLocalURL(), $icon, array('id' => 'regionButton', 'data-event-name' => 'region'));
                        $icon = MobileUI::iconClass('random', 'before');
                        $title = Title::newFromText('Region', NS_CATEGORY);
                        $menu->insert('region')->addComponent('Regionen', $title->getLocalURL(), $icon, array('id' => 'regionButton', 'data-event-name' => 'region'));
+
+                       // add "new reports" entry
+                       $icon = MobileUI::iconClass('', 'before', 'mw-ui-icon-wr-new-reports');
+                       $title = Title::newFromText('Bahnberichte', NS_SPECIAL);
+                       $menu->insert('wrreportnew')->addComponent('Neue Bahnberichte', $title->getLocalURL(), $icon);
                }
        }
 
                }
        }