Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/docs/recent-changes.html \
src/templates/docs/revisions.html \
src/templates/docs/search-results.html \
src/templates/docs/recent-changes.html \
src/templates/docs/revisions.html \
src/templates/docs/search-results.html \
- src/templates/docs/tree.html
+ src/templates/docs/tree.html \
+ src/templates/docs/watchlist.html
templates_docsdir = $(templatesdir)/docs
templates_docsdir = $(templatesdir)/docs
templates_wiki_DATA = \
src/templates/wiki/confirm-delete.html \
templates_wiki_DATA = \
src/templates/wiki/confirm-delete.html \
- src/templates/wiki/edit.html \
- src/templates/wiki/watchlist.html
+ src/templates/wiki/edit.html
templates_wikidir = $(templatesdir)/wiki
templates_wikidir = $(templatesdir)/wiki
(r"/docs/recent\-changes", docs.RecentChangesHandler),
(r"/docs/search", docs.SearchHandler),
(r"/docs/tree", docs.TreeHandler),
(r"/docs/recent\-changes", docs.RecentChangesHandler),
(r"/docs/search", docs.SearchHandler),
(r"/docs/tree", docs.TreeHandler),
+ (r"/docs/watchlist", docs.WatchlistHandler),
(r"/docs((?:[A-Za-z0-9\-_\/]+)?(?:.*)\.(?:\w+))$", docs.FileHandler),
(r"/docs([A-Za-z0-9\-_\/]+)?", docs.PageHandler),
(r"/docs((?:[A-Za-z0-9\-_\/]+)?(?:.*)\.(?:\w+))$", docs.FileHandler),
(r"/docs([A-Za-z0-9\-_\/]+)?", docs.PageHandler),
(r"/actions/restore", wiki.ActionRestoreHandler),
(r"/actions/upload", wiki.ActionUploadHandler),
(r"/actions/restore", wiki.ActionRestoreHandler),
(r"/actions/upload", wiki.ActionUploadHandler),
- # Handlers
- (r"/watchlist", wiki.WatchlistHandler),
-
# Media
(r"([A-Za-z0-9\-_\/]+)?/_files", wiki.FilesHandler),
# Media
(r"([A-Za-z0-9\-_\/]+)?/_files", wiki.FilesHandler),
self.render("docs/tree.html", pages=self.backend.wiki)
self.render("docs/tree.html", pages=self.backend.wiki)
+class WatchlistHandler(base.BaseHandler):
+ @tornado.web.authenticated
+ def get(self):
+ pages = self.backend.wiki.get_watchlist(self.current_user)
+
+ self.render("docs/watchlist.html", pages=pages)
+
+
class HeaderModule(ui_modules.UIModule):
@property
def page(self):
class HeaderModule(ui_modules.UIModule):
@property
def page(self):
self.render("wiki/files/index.html", path=path, files=files)
self.render("wiki/files/index.html", path=path, files=files)
-class WatchlistHandler(base.BaseHandler):
- @tornado.web.authenticated
- def get(self):
- pages = self.backend.wiki.get_watchlist(self.current_user)
-
- self.render("wiki/watchlist.html", pages=pages)
-
-
class WikiListModule(ui_modules.UIModule):
def render(self, pages, link_revision=False, show_breadcrumbs=True,
show_author=True, show_changes=False):
class WikiListModule(ui_modules.UIModule):
def render(self, pages, link_revision=False, show_breadcrumbs=True,
show_author=True, show_changes=False):