regluit/frontend/templates/base.html

151 lines
5.8 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 %}
2012-01-15 18:19:35 +00:00
{% url about as abouturl %}
{% url press as pressurl %}
{% url rh_admin as adminurl %}
{% load truncatechars %}
<html>
<head>
2012-03-09 20:04:10 +00:00
<meta charset="utf-8" />
<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 %}
2012-03-08 02:47:40 +00:00
<script type="text/javascript" src="{{ jquery_home }}"></script>
{% endblock %}
{% block extra_js %}
{% 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:""}}" class="nounderline">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>
{% if unseen_count %}
<a href="/notification" id="unseen_count"><div id="yes">{{ unseen_count }}</div></a>
{% else %}
<a href="/notification" id="unseen_count"><div id="no">0</div></a>
{% endif %}
</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="{{ faqurl }}"><span>FAQs</span></a></li>
2012-01-15 18:19:35 +00:00
<li><a href="{{ pressurl }}"><span>Press</span></a></li>
<li><a href="/"><span>Home</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>
2012-01-15 20:37:08 +00:00
{% if is_preview %}
<div class="preview_top">
2012-01-15 19:57:30 +00:00
Welcome to the alpha version of Unglue.It. This site is a preview of our full functionality; some things (including pledging) aren't turned on yet. If something seems broken or confusing -- or if you find something you love! -- please give us <a href="/feedback">feedback</a>. Thank you for your interest, and have fun.
</div>
{% endif %}
{% 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">
2012-03-08 02:47:40 +00:00
<span>About unglue.it</span>
<ul>
<li><a href="{{ abouturl }}">About</a></li>
<li><a href="http://www.gluejar.com/Blog">Blog</a></li>
<li><a href="{{ pressurl }}">Press</a></li>
<li><a href="http://eepurl.com/fKLfI">Newsletter</a></li>
</ul>
2011-11-15 21:14:09 +00:00
</div>
<div class="column">
2012-03-08 02:47:40 +00:00
<span>Your account</span>
<ul>
{% if user.is_authenticated %}
<li><a href="{{editurl}}">Account Settings</a></li>
{% endif %}
<li><a href="{{rhtoolsurl}}">Rights Holder Tools</a></li>
<li><a href="{{privacyurl}}">Privacy</a></li>
<li><a href="{{termsurl}}">Terms of Use</a></li>
2012-03-08 02:47:40 +00:00
{% if user.is_staff %}
<li><a href="{{adminurl}}">Unglue.it Administration</a></li>
{% endif %}
</ul>
2011-11-15 21:14:09 +00:00
</div>
<div class="column">
2012-03-08 02:47:40 +00:00
<span>Help</span>
<ul>
<li><a href="{{faqurl}}">General FAQ</a></li>
<li><a href="/faq/rightsholders/">Rights Holder FAQ</a></li>
<li><a href="{% url api_help %}">API</a></li>
<li><a href="mailto:support@gluejar.com">support@gluejar.com</a>
</ul>
2011-11-15 21:14:09 +00:00
</div>
<div class="column">
2012-03-08 02:47:40 +00:00
<span>Contact</span>
<ul>
<li>General inquiries</li>
<li><a href="mailto:faq@gluejar.com">faq@gluejar.com</a></li>
<li>Rights Holders</li>
<li><a href="mailto:rights@gluejar.com">rights@gluejar.com</a></li>
</ul>
2011-11-15 21:14:09 +00:00
</div>
2012-03-08 02:47:40 +00:00
</div>
</div>
{% block counter %}
<script type="text/javascript">
2012-01-16 17:16:45 +00:00
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-28369982-1']);
_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);
})();
</script>{% endblock %}
</body>
</html>