regluit/frontend/templates/base.html

137 lines
4.9 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
{# raw url references raise test errors in tests for django registration; this is a workaround #}
{% url privacy as privacyurl %}
2011-12-16 22:19:59 +00:00
{% url terms as termsurl %}
{% url regluit.frontend.views.edit_user as editurl %}
{% url rightsholders as rhtoolsurl %}
{% url faq as faqurl %}
{% url rh_admin as adminurl %}
{% load truncatechars %}
<html>
<head>
<title>unglue.it {% block title %}{% endblock %}</title>
<link type="text/css" rel="stylesheet" href="/static/css/sitewide.css" />
2011-11-15 18:54:13 +00:00
<link REL="SHORTCUT ICON" HREF="/static/images/favicon.ico">
{% block extra_css %}{% endblock %}
{% block base_js %}
2011-11-15 18:54:13 +00:00
<script type="text/javascript" src="/static/js/jquery-1.6.3.min.js"></script>
{% endblock %}
<script type="text/javascript" src="/static/js/watermark_init.js"></script>
<script type="text/javascript" src="/static/js/watermark_change.js"></script>
{% block extra_head %}
{% endblock %}
</head>
<body>
<div id="feedback">
<p><a href="/feedback/?page={{request.build_absolute_uri|urlencode:""}}">Feedback</a></p>
</div>
<div id="js-page-wrap">
2011-10-14 02:19:14 +00:00
<div id="js-header">
<div class="js-main">
<div class="js-logo">
<a href="/"><img src="/static/images/logo.png" alt="unglue.it" title="unglue.it" /></a>
</div>
{% if not suppress_search_box %}
<div class="js-search">
<div class="js-search-inner">
<form action="{% url search %}" method="get">
<div class="inputalign">
2011-12-12 21:09:18 +00:00
<input type="text" id="watermark" size="25" onfocus="imgfocus()" onblur="imgblur(15)" class="inputbox" name="q" value="{{ q }}">
<input type="submit" class="button">
</div>
</form>
</div>
</div>
{% endif %}
<div class="js-topmenu">
2011-10-14 02:19:14 +00:00
<ul class="menu">
{% if user.is_authenticated %}
<li class="first"><a href="/supporter/{{user.username}}"><span id="welcome">Welcome, {{ user.username|truncatechars:20 }}</span></a></li>
<li><a href="{% url auth_logout %}"><span>Sign Out</span></a></li>
{% else %}
<li class="first"><a href="{% url auth_login %}?next={% firstof request.path '/' %}"><span>Sign In</span></a></li>
{% endif %}
<li><a href="/stub/tour"><span>Tour</span></a></li>
<li><a href="{{faqurl}}"><span>FAQs</span></a></li>
<li><a href="/stub/Help"><span>Help</span></a></li>
{% if not user.is_authenticated %}
<li class="last" id="expander"><a href="{% url registration_register %}"><span>sign up</span></a></li>
{% endif %}
</ul>
</div>
</div>
</div>
{% block topsection %}{% endblock %}
{% block content %}{% endblock %}
2012-01-10 21:27:31 +00:00
</div>
2011-09-13 18:35:06 +00:00
<div id="footer">
<div class="js-main">
2011-11-15 21:14:09 +00:00
<div class="column">
<span>About unglue.it</span>
<ul>
<li><a href="/stub/about">About</a></li>
<li><a href="http://www.gluejar.com/Blog">Blog</a></li>
<li><a href="/press">Press</a></li>
2012-01-06 15:42:17 +00:00
<li><a href="http://eepurl.com/fKLfI">Newsletter</a></li>
2011-11-15 21:14:09 +00:00
</ul>
</div>
<div class="column">
<span>Your account</span>
<ul>
{% if user.is_authenticated %}
<li><a href="{{editurl}}">Settings</a></li>
{% endif %}
<li><a href="{{rhtoolsurl}}">Rights Holder Tools</a></li>
<li><a href="{{privacyurl}}">Privacy</a></li>
2011-12-16 22:19:59 +00:00
<li><a href="{{termsurl}}">Terms and Conditions</a></li>
{% if user.is_staff %}
<li><a href="{{adminurl}}">Unglue.it Administration</a></li>
{% endif %}
2011-11-15 21:14:09 +00:00
</ul>
</div>
<div class="column">
<span>Help</span>
<ul>
2012-01-06 15:42:17 +00:00
<li><a href="{{faqurl}}">General FAQ</a></li>
<li><a href="/faq/rightsholders/">Rights Holder FAQ</a></li>
2011-11-15 21:14:09 +00:00
<li><a href="{% url api_help %}">API</a></li>
<li><a href="mailto:support@gluejar.com">support@gluejar.com</a>
2011-11-15 21:14:09 +00:00
</ul>
</div>
<div class="column">
<span>Contact</span>
<ul>
<li>General inquiries</li>
<li><a href="mailto:aqf@gluejar.com">aqf@gluejar.com</a></li>
<li>Rights Holders</li>
<li><a href="mailto:rights@gluejar.com">rights@gluejar.com</a></li>
</ul>
</div>
2011-09-13 18:35:06 +00:00
</div>
2011-11-15 21:14:09 +00:00
</div>
{% block counter %}
<script type="text/javascript">
var sc_project=7447776;
var sc_invisible=1;
var sc_security="9ae2ba93";
var sc_https=1;
var scJsHost = (("https:" == document.location.protocol) ?
"https://secure." : "http://www.");
document.write("<sc"+"ript type='text/javascript' src='" +
scJsHost +
"statcounter.com/counter/counter_xhtml.js'></"+"script>");</script>
<noscript><div class="statcounter"><a title="web
statistics" href="http://statcounter.com/free-web-stats/"
class="statcounter"><img class="statcounter"
src="https://c.statcounter.com/7447776/0/9ae2ba93/1/"
alt="web statistics" /></a></div></noscript>
{% endblock %}
</body>
</html>