Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (65 sloc) 3.07 KB
$def with (content, user, context, counts, query='', stats={})
$def show_counts(context):
$if counts[context] and context == 'new': ($counts[context])
$def show_left_menu():
$for _context, name in [('pending', 'No reference'), ('new', 'To review'), ('admitted', 'Admitted'), ('all', 'All Applicants'), ('rejected', 'Rejected'), ('reviewed', 'My Reviews')]:
$if _context == 'new' and counts['new']:
$if context == _context:
<a class=selected href="/$_context" id="$_context">$name $:show_counts(_context)</a>
<a href="/$_context" id="$_context">$name $:show_counts(_context)</a>
$if _context == 'new' and counts['new']:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Language" content="en-us"/>
<title>Machine Learning Summer School Admin - $context.capitalize()</title>
<link href="/css/defaults.css" rel="stylesheet" type="text/css"/>
<link rel="icon" type="image/png" href="/img/favicon.ico" />
$# <script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
$# <script type="text/javascript" src="/js/thickbox.js"></script>
$# <link rel="stylesheet" href="/css/thickbox.css" type="text/css" />
<div class="topmenu">
$# <a class=selected href="/">Applicants</a>
<ul class="extlinks">\
$if not user.is_logged:
<li><a href="/account/help">How to use?</a></li>
<li><a href="/account/register">Register</a></li>
<li class="last"><a href="/account/login">Sign in</a></li>
<li class="login"><a href="/">Welcome $user.nickname, $</a></li>
<li><a href="/account/help">How to use?</a></li>
<li><a href="/settings">Settings</a></li>
<li class="last"><a href="/account/logout">Sign out</a></li>
$#<li class="logo"><a href="">Machine Learning Summer School 2009 - Admin</a></li>
<div class="searchbar">
<form action="/search" method="get">
<input class="search" type="text" name="query" value="$query">
<input type="submit" value="Search">
<div class="stats">
$for status in ['admitted', 'rejected', 'undecided']:
<span class="$status">$status.capitalize(): $stats[status]</span> -
<span class="allocated_amount">Financial support: \$$stats.allocated_amount</span>
<div class="leftmenu">
<div class="content" id="content_$context">
<div class="copyright">
Interface by <a href="">Alex Ksikes</a> |
<a href="$url_quote('[MLSS ADMIN] feedback')"><strong>feedback</a></strong> |
<a href=""><strong>source code</strong></a>
<script src="/js/defaults.js"></script>
Jump to Line
Something went wrong with that request. Please try again.