return request.website.render("website_blog.index", values)
# TODO: Refactor (used in website_blog.js for archive links)
+ # => the archive links should be generated server side
@website.route(['/blog/nav'], type='http', auth="public", multilang=True)
def nav(self, **post):
cr, uid, context = request.cr, request.uid, request.context
e.preventDefault();
var $ul = $(this).next("ul");
if (!$ul.find('li').length) {
- // TODO: Why POST? A GET would be more appropriate...
+ // TODO: Why POST? (to pass the domain) A GET would be more appropriate...
// This should be done server side anyway...
$.post('/blog/nav', {'domain': $(this).data("domain")}, function (result) {
var blog_id = +window.location.pathname.split("/").pop();