{% extends 'forum/master.twig' %} {% from 'macros.twig' import avatar %} {% from 'forum/macros.twig' import forum_header %} {% set title = 'Forum Leaderboard ยป ' ~ leaderboard_name %} {% set canonical_url = url('forum-leaderboard', { 'id': leaderboard_id, 'mode': '', }) %} {% block content %} {{ forum_header(title, [], false, canonical_url, [ { 'html': ' Markdown', 'url': url('forum-leaderboard', {'id': leaderboard_id, 'mode': 'markdown'}), 'display': leaderboard_mode != 'markdown', }, { 'html': ' Table', 'url': url('forum-leaderboard', {'id': leaderboard_id}), 'display': leaderboard_mode == 'markdown', }, ]) }}