Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use new static location in templates

  • Loading branch information...
commit 733a8a6909a611fb8c7025fffc33aa12130c8461 1 parent bb0fd8f
@Torkn authored
View
21 sentry/templates/sentry/layout.html
@@ -1,24 +1,25 @@
{% load i18n %}
{% load sentry_helpers %}
-
+{% load static %}
+{% get_static_prefix as STATIC_PREFIX %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="robots" content="NONE,NOARCHIVE">
<link href="//fonts.googleapis.com/css?family=Yanone+Kaffeesatz:light,regular&amp;subset=latin" rel="stylesheet" type="text/css">
- <link href="{{ STATIC_URL }}sentry/styles/global.css" rel="stylesheet" type="text/css"/>
- <link href="{{ STATIC_URL }}sentry/images/sentry.png" rel="shortcut icon"/>
+ <link href="{{ STATIC_PREFIX }}sentry/styles/global.css" rel="stylesheet" type="text/css"/>
+ <link href="{{ STATIC_PREFIX }}sentry/images/sentry.png" rel="shortcut icon"/>
<title>{% block title %}Sentry{% endblock %}</title>
- <script type="text/javascript" src="{{ STATIC_URL }}sentry/scripts/jquery.js"></script>
- <script type="text/javascript" src="{{ STATIC_URL }}sentry/scripts/jquery.animate-colors-min.js"></script>
- <script type="text/javascript" src="{{ STATIC_URL }}sentry/scripts/highcharts.js"></script>
- <script type="text/javascript" src="{{ STATIC_URL }}sentry/scripts/global.js"></script>
+ <script type="text/javascript" src="{{ STATIC_PREFIX }}sentry/scripts/jquery.js"></script>
+ <script type="text/javascript" src="{{ STATIC_PREFIX }}sentry/scripts/jquery.animate-colors-min.js"></script>
+ <script type="text/javascript" src="{{ STATIC_PREFIX }}sentry/scripts/highcharts.js"></script>
+ <script type="text/javascript" src="{{ STATIC_PREFIX }}sentry/scripts/global.js"></script>
<script type="text/javascript">
Sentry.config({
- mediaUrl: '{{ STATIC_URL }}sentry/',
+ mediaUrl: '{{ STATIC_PREFIX }}sentry/',
apiUrl: '{% url sentry-ajax %}',
- defaultImage: '{{ STATIC_URL }}sentry/images/sentry.png'
+ defaultImage: '{{ STATIC_PREFIX }}sentry/images/sentry.png'
});
{% if has_realtime %}
Sentry.realtime.enable();
@@ -30,7 +31,7 @@
{% block body %}
<div id="header">
<div class="container">
- <h1><a href="{% url sentry %}"><img src="{{ STATIC_URL }}sentry/images/sentry.png" border="0" width="32"/>Sentry</a></h1>
+ <h1><a href="{% url sentry %}"><img src="{{ STATIC_PREFIX }}sentry/images/sentry.png" border="0" width="32"/>Sentry</a></h1>
<h2>{% block heading %}{% trans "Dashboard" %}{% endblock %}</h2>
{% block search %}
<form id="search" method="GET" action="{% url sentry-search %}">
View
4 sentry/templates/sentry/partial/_notification.html
@@ -1,9 +1,11 @@
+{% load static %}
+{% get_static_prefix as STATIC_PREFIX %}
<doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="robots" content="NONE,NOARCHIVE">
- <link href="{{ STATIC_URL }}sentry/images/sentry.png" rel="shortcut icon"/>
+ <link href="{{ STATIC_PREFIX }}sentry/images/sentry.png" rel="shortcut icon"/>
<style type="text/css">
html * { padding:0; margin:0; }
body * * { padding:0; }
Please sign in to comment.
Something went wrong with that request. Please try again.