Commit 1e70bf97 authored by Michal Čihař's avatar Michal Čihař

Serve all media files from static

Issue #605
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 0af227bc
......@@ -14,32 +14,32 @@
<meta name="description" content="{{ description }}" />
{% endif %}
<link rel="stylesheet" type="text/css" href="{% get_media_prefix %}bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/bootstrap.min.css' %}" />
{% if LANGUAGE_BIDI %}
<link rel="stylesheet" type="text/css" href="{% get_media_prefix %}bootstrap/css/bootstrap-rtl.min.css" />
<link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/bootstrap-rtl.min.css' %}" />
{% endif %}
<link rel="stylesheet" type="text/css" href="{% get_media_prefix %}bootstrap/css/bootstrap-theme.min.css" />
<link rel="stylesheet" type="text/css" href="{% get_media_prefix %}font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="{% get_media_prefix %}font-linux/font-linux.css" />
<link rel="stylesheet" type="text/css" href="{% get_media_prefix %}bootstrap/css/datepicker3.css" />
<link rel="stylesheet" type="text/css" href="{% get_media_prefix %}chartist.min.css" />
<link rel="stylesheet" type="text/css" href="{% get_media_prefix %}style-bootstrap.css" />
<link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/bootstrap-theme.min.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'font-awesome/css/font-awesome.min.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'font-linux/font-linux.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/datepicker3.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'chartist.min.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'style-bootstrap.css' %}" />
<script src="{% url 'js-catalog' %}" type="text/javascript"></script>
<script src="{% get_media_prefix %}js/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="{% get_media_prefix %}js/jquery.cookie.js" type="text/javascript"></script>
<script src="{% get_media_prefix %}js/jquery.autosize.min.js" type="text/javascript"></script>
<script src="{% get_media_prefix %}js/jquery.sortElements.js" type="text/javascript"></script>
<script src="{% get_media_prefix %}js/mousetrap.min.js" type="text/javascript"></script>
<script src="{% get_media_prefix %}js/mousetrap-global-bind.min.js" type="text/javascript"></script>
<script src="{% get_media_prefix %}js/chartist.min.js" type="text/javascript"></script>
<script src="{% get_media_prefix %}bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="{% get_media_prefix %}loader-bootstrap.js" type="text/javascript"></script>
<script src="{% get_media_prefix %}js/bootstrap-datepicker.js" type="text/javascript"></script>
<script src="{% static 'js/jquery-1.11.3.min.js' %}" type="text/javascript"></script>
<script src="{% static 'js/jquery.cookie.js' %}" type="text/javascript"></script>
<script src="{% static 'js/jquery.autosize.min.js' %}" type="text/javascript"></script>
<script src="{% static 'js/jquery.sortElements.js' %}" type="text/javascript"></script>
<script src="{% static 'js/mousetrap.min.js' %}" type="text/javascript"></script>
<script src="{% static 'js/mousetrap-global-bind.min.js' %}" type="text/javascript"></script>
<script src="{% static 'js/chartist.min.js' %}" type="text/javascript"></script>
<script src="{% static 'bootstrap/js/bootstrap.min.js' %}" type="text/javascript"></script>
<script src="{% static 'loader-bootstrap.js' %}" type="text/javascript"></script>
<script src="{% static 'js/bootstrap-datepicker.js' %}" type="text/javascript"></script>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="image_src" type="image/png" href="{% get_media_prefix %}weblate-128.png"/>
<link rel="apple-touch-icon" href="{% get_media_prefix %}weblate-128.png"/>
<link rel="image_src" type="image/png" href="{% static 'weblate-128.png' %}"/>
<link rel="apple-touch-icon" href="{% static 'weblate-128.png' %}"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="robots" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
......@@ -68,7 +68,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{% url 'home' %}"><img class="avatar" src="{% get_media_prefix %}weblate-128.png" /> {{ site_title }}</a>
<a class="navbar-brand" href="{% url 'home' %}"><img class="avatar" src="{% static 'weblate-128.png' %}" /> {{ site_title }}</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
......
......@@ -13,24 +13,24 @@
<meta property="og:site_name" content="{% if site_title %}{{ site_title }}{% else %}Weblate{% endif %}" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="image_src" type="image/png" href="{% get_media_prefix %}weblate-128.png"/>
<link rel="apple-touch-icon" href="{% get_media_prefix %}weblate-128.png"/>
<link rel="image_src" type="image/png" href="{% static 'weblate-128.png' %}"/>
<link rel="apple-touch-icon" href="{% static 'weblate-128.png' %}"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="robots" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="{% get_media_prefix %}bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/bootstrap.min.css' %}" />
{% if LANGUAGE_BIDI %}
<link rel="stylesheet" type="text/css" href="{% get_media_prefix %}bootstrap/css/bootstrap-rtl.min.css" />
<link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/bootstrap-rtl.min.css' %}" />
{% endif %}
<link rel="stylesheet" type="text/css" href="{% get_media_prefix %}bootstrap/css/bootstrap-theme.min.css" />
<link rel="stylesheet" type="text/css" href="{% get_media_prefix %}style-bootstrap.css" />
<link rel="stylesheet" type="text/css" href="{% static 'bootstrap/css/bootstrap-theme.min.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'style-bootstrap.css' %}" />
</head>
<body {% if LANGUAGE_BIDI %}class="dir-rtl"{% endif %}>
<img class="engage-icon" src="{% get_media_prefix %}weblate-128.png" width="128" height="128" />
<img class="engage-icon" src="{% static 'weblate-128.png' %}" width="128" height="128" />
<div class="engage content ui-widget-content ui-corner-all">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment