readthedocs.org/readthedocs/templates/base.html

163 lines
5.8 KiB
HTML
Raw Normal View History

{% load i18n %}
2010-08-14 15:11:06 +00:00
<!DOCTYPE html>
2012-10-13 23:56:49 +00:00
<html>
2010-08-14 15:11:06 +00:00
<head>
2010-08-14 15:11:06 +00:00
<!-- meta -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" type="image/png" href="{{ MEDIA_URL }}images/favicon.png">
2010-08-14 15:11:06 +00:00
<!-- title -->
<title>{% block title %}{% endblock %}{% block head_title %}{% endblock %} | {% block branding %}{% trans "Read the Docs" %} {% endblock %}</title>
2010-08-14 15:11:06 +00:00
<!-- css -->
2010-08-14 15:17:45 +00:00
<link rel="stylesheet" href="{{ MEDIA_URL }}css/core.css">
2010-08-15 17:32:45 +00:00
{% block extra_links %}{% endblock %}
<!-- jquery -->
2013-09-28 18:03:48 +00:00
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript">
if (!window.jQuery) {
document.write('<script src="{{ MEDIA_URL }}javascript/jquery/jquery-2.0.3.min.js"><\/script>');
}
</script>
<script type="text/javascript" src="{{ MEDIA_URL }}javascript/jquery/jquery-migrate-1.2.1.min.js"></script>
2012-12-18 07:49:11 +00:00
<script type="text/javascript" src="{{ MEDIA_URL }}javascript/jquery/jquery-ui-1.8.24.custom.min.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}javascript/instantsearch.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}javascript/base.js"></script>
{% block extra_scripts %}{% endblock %}
<!-- typekit -->
2012-07-29 21:17:08 +00:00
<!-- Old typekit
2012-06-12 03:01:20 +00:00
<script type="text/javascript" src="//use.typekit.com/xgl8ypn.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
2012-07-29 21:17:08 +00:00
-->
<script type="text/javascript" src="//use.typekit.net/haq4xtp.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
2010-08-14 15:11:06 +00:00
</head>
2010-08-15 04:33:12 +00:00
<body class="{% block body_class %}{% endblock %}">
{% block header-wrapper %}
{% include "core/header.html" %}
{% endblock %}
2010-08-14 16:35:16 +00:00
2010-08-31 22:23:40 +00:00
{% block dashboard_bar %}{% endblock %}
2010-08-16 04:07:40 +00:00
2010-08-15 05:42:32 +00:00
{% block project_editing %}{% endblock %}
2010-08-14 17:11:25 +00:00
2010-08-14 16:35:16 +00:00
<!-- BEGIN content-->
<div id="content">
2010-08-14 17:11:25 +00:00
<div class="wrapper">
2010-08-16 04:07:40 +00:00
2010-08-16 04:22:03 +00:00
{% if request.GET.docs_not_built %}
<div class="notification">
<p>{% trans "Your docs are currently being built. It may take a moment for them to appear." %}</p>
<p>{% trans "Read the Docs thanks you for your continued patience." %}</p>
2010-08-16 04:22:03 +00:00
</div>
{% endif %}
2010-08-16 04:07:40 +00:00
2010-08-14 17:55:53 +00:00
{% block content-header %}
{% endblock %}
{% block content %}
{% endblock %}
2010-08-14 17:11:25 +00:00
</div>
2010-08-14 16:35:16 +00:00
</div>
<!-- END content-->
2010-08-14 21:40:05 +00:00
<!-- BEGIN footer-->
<div id="footer">
<div class="wrapper">
2010-08-14 21:40:05 +00:00
<hr>
2014-01-17 08:15:58 +00:00
{% block footer-content %}
<p>{% blocktrans with "<a href='http://ericholscher.com/'>Eric Holscher</a>" as eric and "<a href='http://charlesleifer.com/'>Charles Leifer<a>" as charles and "<a href='http://bobbygrace.info/'>Bobby Grace</a>" as bobby and "<a href='http://djangodash.com/'>Django Dash</a>" as djangodash %}Copyright 2010-2013. Created by {{ eric }}, {{ charles }}, and {{ bobby }} for the 2010 {{ djangodash }}.{% endblocktrans %}
</p>
<a href="https://github.com/rtfd/readthedocs.org">Github</a> | <a href="http://read-the-docs.readthedocs.org">{% trans "Docs" %}</a>.
{% trans 'Made by <a href="https://github.com/rtfd/readthedocs.org/graphs/contributors">humans</a>. Funded by <a href="https://www.gittip.com/readthedocs/">readers like you</a>.' %}
</p>
{% endblock %}
<p>
Change Site Language
</p>
{% get_current_language as current_lang %}
2014-01-17 08:07:32 +00:00
<form action="/i18n/setlang/" method="post">{% csrf_token %}
<input name="next" type="hidden" value="/" />
{% csrf_token %}
<select style="float: left; height: 33px;" name="language">
{% for lang in LANGUAGES %}
{% if lang.0 == current_lang %}
<option selected="selected" value="{{ lang.0 }}">{{ lang.0|language_name_local }} [{{ lang.1 }}]</option>
{% else %}
2014-01-17 08:07:32 +00:00
<option value="{{ lang.0 }}">{{ lang.0|language_name_local }} [{{ lang.1 }}]</option>
{% endif %}
}
2014-01-17 08:07:32 +00:00
{% endfor %}
</select>
<input style="float: left; height: 33px; margin: 0px;" type="submit" value="Change Language" name="submit">
</form>
<br>
<br>
2013-10-24 21:39:28 +00:00
<p>
Read the Docs Announcements
<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="http://readthedocs.us3.list-manage2.com/subscribe/post?u=a6a22369cc2b356379cf789ca&amp;id=1759385fc5" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
2013-10-24 21:56:12 +00:00
<input style="float: left; height: 20px;"type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
<input style="float: left; height: 33px; margin: 0px;" type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe">
2013-10-24 21:39:28 +00:00
</form>
</div>
</p>
<!--End mc_embed_signup-->
2010-08-14 21:40:05 +00:00
</div>
</div>
<!-- END footer-->
2010-08-14 15:11:06 +00:00
</body>
2010-08-15 05:59:23 +00:00
<!-- BEGIN google analytics -->
2010-08-15 03:55:43 +00:00
<script type="text/javascript">
var _gaq = _gaq || [];
2014-08-16 20:10:15 +00:00
_gaq.push(['_setAccount', '{{ GLOBAL_ANALYTICS_CODE }}']);
2010-08-15 03:55:43 +00:00
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
$('.rtfd-header-search input:text').autocomplete({
source: '{% url "search_autocomplete" %}',
2010-08-15 05:38:50 +00:00
minLength: 2,
open: function(event, ui) {
ac_top = $('.ui-autocomplete').css('top');
$('.ui-autocomplete').css({'width': '233px', 'top': ac_top + 10 });
}
2010-08-15 05:38:50 +00:00
});
{% block footerjs %}{% endblock %}
2010-08-15 03:55:43 +00:00
</script>
2010-08-15 05:59:23 +00:00
<!-- END google analytics -->
2010-08-14 15:11:06 +00:00
</html>