script_root to absolute URLs

This commit is contained in:
James Turk 2011-09-22 10:53:33 -04:00
parent 84c9c105fd
commit 4174a25595
3 changed files with 7 additions and 7 deletions

View File

@ -2,11 +2,11 @@
<html>
<head>
<title>{% block title %} {% endblock %} </title>
<link rel="stylesheet" href="static/blueprint/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="static/blueprint/print.css" type="text/css" media="print">
<link rel="stylesheet" href="{{request.script_root}}/static/blueprint/screen.css" type="text/css" media="screen, projection">
<link rel="stylesheet" href="{{request.script_root}}/static/blueprint/print.css" type="text/css" media="print">
<!--[if lt IE 8]>
<link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection">
<![endif]-->
<link rel="stylesheet" href="{request.script_root}}/css/blueprint/ie.css" type="text/css" media="screen, projection">
<![endif]-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<style type="text/css">
body { font-family: sans-serif; }

View File

@ -1,7 +1,7 @@
<tr{% if log.error %} class="error" {% endif %}>
<td>{{log.action}}</td>
<td><a href="/tracked/{{log.url}}">{{log.url}}</td>
<td><a href="{{request.script_root}}/tracked/{{log.url}}">{{log.url}}</td>
<td>{{log.timestamp.strftime("%Y-%m-%d %H:%M:%S")}}</td>
<td>{% if log.error %}{{log.error}}{% endif %}</td>
</tr>

View File

@ -8,14 +8,14 @@ Oyster Logs
<div class="span-2">
{% if offset %}
<a class="button" href="/log/?offset={{prev_offset}}">&laquo; Prev</a>
<a class="button" href="{{request.script_root}}/log/?offset={{prev_offset}}">&laquo; Prev</a>
{% endif %}
&nbsp;
</div>
<div class="span-2 prepend-14 last">
{% if next_offset %}
<a class="button" href="/log/?offset={{next_offset}}">Next &raquo;</a>
<a class="button" href="{{request.script_root}}/log/?offset={{next_offset}}">Next &raquo;</a>
{% endif %}
</div>