added a contact info page
This commit is contained in:
parent
3befb855ac
commit
0e0fb1ded3
|
@ -70,7 +70,7 @@ class UpdateDirectory(Directory):
|
|||
|
||||
|
||||
class ArticlesDirectory(Directory):
|
||||
_q_exports = ('editor_info', 'accessibility')
|
||||
_q_exports = ('editor_info', 'accessibility', 'contact')
|
||||
|
||||
def editor_info(self):
|
||||
return self.page_edit('editor_info', _('Editor Informations'))
|
||||
|
@ -78,6 +78,9 @@ class ArticlesDirectory(Directory):
|
|||
def accessibility(self):
|
||||
return self.page_edit('accessibility', _('Accessibility Statement'))
|
||||
|
||||
def contact(self):
|
||||
return self.page_edit('contact', _('Contact'))
|
||||
|
||||
|
||||
def page_edit [html] (self, filename, title):
|
||||
'<h2>%s</h2>' % title
|
||||
|
|
|
@ -229,8 +229,7 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
'liberty', 'token', 'saml', 'register', 'ident',
|
||||
('informations-editeur', 'informations_editeur'), 'index2',
|
||||
('announces', 'announces_dir'),
|
||||
'accessibility',
|
||||
'help']
|
||||
'accessibility', 'contact', 'help']
|
||||
|
||||
announces_dir = AnnouncesDirectory()
|
||||
|
||||
|
@ -377,6 +376,9 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
def accessibility(self):
|
||||
return self.page_view('accessibility', _('Accessibility Statement'))
|
||||
|
||||
def contact(self):
|
||||
return self.page_view('contact', _('Contact'))
|
||||
|
||||
def help(self):
|
||||
raise NotImplementedError
|
||||
|
||||
|
|
Reference in New Issue