source: remit/remit_templates/index.html @ bc1da44

Last change on this file since bc1da44 was 695d358, checked in by Alex Dehnert <adehnert@…>, 11 years ago

Django 1.6: use new {% url %} syntax

Starting in Django 1.5, the argument to {% url %} is treated as a variable,
rather than a literal. To get a literal, we need to enclose the argument in
quotes. For Django 1.4 support, we also want to do {% load url from future %}
-- probably in more places than just base.html, but we'll see.

  • Property mode set to 100644
File size: 854 bytes
Line 
1{% extends "base.html" %}
2{% load url from future %}
3
4{% block title %}Welcome to Remit{% endblock %}
5{% block content %}
6
7<h2>Welcome to Remit</h2>
8
9<p>
10Remit is software that aims to help MIT student group manage their finances.
11</p>
12
13<ul>
14    {% if user.is_anonymous %}
15    <li><a href='{% url "login" %}'>Login</a></li>
16    {% endif %}
17    <li><a href="{% url "request_reimbursement" %}">Request reimbursement</a></li>
18    <li><a href="{% url "list_requests" %}">List requests</a></li>
19    {% if perms.finance_core.use_reporting %}
20    <li><a href="{% url "reporting" %}">Reporting</a></li>
21    {% endif %}
22    {% if user.is_staff %}
23    <li><a href='{% url "admin:index" %}'>Django admin interface</a></li>
24    {% endif %}
25    {% if user.is_authenticated %}
26    <li><a href='{% url "logout" %}'>Logout</a></li>
27    {% endif %}
28</ul>
29
30{% endblock %}
Note: See TracBrowser for help on using the repository browser.