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

View File

@ -1,7 +1,7 @@
<tr{% if log.error %} class="error" {% endif %}> <tr{% if log.error %} class="error" {% endif %}>
<td>{{log.action}}</td> <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>{{log.timestamp.strftime("%Y-%m-%d %H:%M:%S")}}</td>
<td>{% if log.error %}{{log.error}}{% endif %}</td> <td>{% if log.error %}{{log.error}}{% endif %}</td>
</tr> </tr>

View File

@ -8,14 +8,14 @@ Oyster Logs
<div class="span-2"> <div class="span-2">
{% if offset %} {% 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 %} {% endif %}
&nbsp; &nbsp;
</div> </div>
<div class="span-2 prepend-14 last"> <div class="span-2 prepend-14 last">
{% if next_offset %} {% 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 %} {% endif %}
</div> </div>