Skip to content
Snippets Groups Projects
Commit a6665608 authored by anonymous's avatar anonymous
Browse files

ODPSH-169: empty start page

parent c9a71db3
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,8 @@ abort = base.abort ...@@ -10,6 +10,8 @@ abort = base.abort
class OdshRouteController(HomeController): class OdshRouteController(HomeController):
def info_page(self): def info_page(self):
return base.render('info_page.html') return base.render('info_page.html')
def start(self):
return base.render('start.html')
class OdshUserController(UserController): class OdshUserController(UserController):
def me(self, locale=None): def me(self, locale=None):
......
...@@ -139,6 +139,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm ...@@ -139,6 +139,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
def before_map(self, map): def before_map(self, map):
map.connect('info_page', '/info_page', controller='ckanext.odsh.controller:OdshRouteController', action='info_page') map.connect('info_page', '/info_page', controller='ckanext.odsh.controller:OdshRouteController', action='info_page')
map.connect('start', '/', controller='ckanext.odsh.controller:OdshRouteController', action='start')
# redirect all user routes to custom controller # redirect all user routes to custom controller
with SubMapper(map, controller='ckanext.odsh.controller:OdshUserController') as m: with SubMapper(map, controller='ckanext.odsh.controller:OdshUserController') as m:
......
Startseite
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment