web/views/wdoc.py
branchstable
changeset 3495 438576c5b1d1
parent 1977 606923dff11b
child 3503 06bced8edddf
child 3818 9522e51d8644
--- a/web/views/wdoc.py	Mon Sep 28 10:55:36 2009 +0200
+++ b/web/views/wdoc.py	Mon Sep 28 10:56:37 2009 +0200
@@ -15,12 +15,11 @@
 from logilab.common.changelog import ChangeLog
 from logilab.mtconverter import CHARSET_DECL_RGX
 
-from cubicweb.selectors import match_form_params
+from cubicweb.selectors import match_form_params, yes
 from cubicweb.view import StartupView
 from cubicweb.utils import strptime, todate
 from cubicweb.common.uilib import rest_publish
-from cubicweb.web import NotFound
-
+from cubicweb.web import NotFound, action
 _ = unicode
 
 # table of content management #################################################
@@ -235,3 +234,28 @@
                     break
         w('') # blank line
         self.w(rest_publish(self, '\n'.join(restdata)))
+
+
+class ChangeLogAction(action.Action):
+    id = 'changelog'
+    __select__ = yes()
+
+    category = 'footer'
+    order = 1
+    title = ChangeLogView.title
+
+    def url(self):
+        return self.req.build_url('changelog')
+
+
+class AboutAction(action.Action):
+    id = 'about'
+    __select__ = yes()
+
+    category = 'footer'
+    order = 2
+    title = _('about this site')
+
+    def url(self):
+        return self.req.build_url('doc/about')
+