2011-09-04 04:21:51 +00:00
|
|
|
<!DOCTYPE html>
|
2011-09-29 23:27:31 +00:00
|
|
|
{# 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 %}
|
2012-10-15 13:52:32 +00:00
|
|
|
{% url manage_account as editurl %}
|
2011-10-03 16:50:34 +00:00
|
|
|
{% url rightsholders as rhtoolsurl %}
|
2011-11-12 03:51:12 +00:00
|
|
|
{% url faq as faqurl %}
|
2012-01-15 18:19:35 +00:00
|
|
|
{% url about as abouturl %}
|
|
|
|
{% url press as pressurl %}
|
2011-11-16 19:45:37 +00:00
|
|
|
{% url rh_admin as adminurl %}
|
2012-05-24 19:29:45 +00:00
|
|
|
{% url landing as landingurl %}
|
2012-05-11 18:13:09 +00:00
|
|
|
{% url new_edition '' '' as editionurl %}
|
2013-01-27 01:35:52 +00:00
|
|
|
{% url libraries as librariesurl %}
|
2013-02-07 14:10:20 +00:00
|
|
|
{% url about_specific 'main' as aboutmainurl %}
|
2011-12-29 17:50:09 +00:00
|
|
|
{% load truncatechars %}
|
2011-10-03 16:50:34 +00:00
|
|
|
|
2011-09-04 04:21:51 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
2012-03-09 20:04:10 +00:00
|
|
|
<meta charset="utf-8" />
|
2011-09-26 18:43:41 +00:00
|
|
|
<title>unglue.it {% block title %}{% endblock %}</title>
|
2013-04-02 15:58:50 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="/static/css/sitewide3.css" />
|
2011-11-15 18:54:13 +00:00
|
|
|
<link REL="SHORTCUT ICON" HREF="/static/images/favicon.ico">
|
2011-11-29 23:14:25 +00:00
|
|
|
{% block extra_css %}{% endblock %}
|
2012-03-08 02:47:40 +00:00
|
|
|
<script type="text/javascript" src="{{ jquery_home }}"></script>
|
2013-03-08 19:16:24 +00:00
|
|
|
<script type="text/javascript" src="/static/js/jquery.cookie.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/sitewide.js"></script>
|
2011-12-12 19:10:49 +00:00
|
|
|
<script type="text/javascript" src="/static/js/watermark_init.js"></script>
|
|
|
|
<script type="text/javascript" src="/static/js/watermark_change.js"></script>
|
2013-03-08 19:16:24 +00:00
|
|
|
{% block extra_js %}
|
|
|
|
{% endblock %}
|
2012-07-21 20:26:16 +00:00
|
|
|
{% if show_langs %}
|
|
|
|
<script>
|
|
|
|
var $j = jQuery.noConflict();
|
|
|
|
$j(document).ready(function(){
|
|
|
|
$j('.show_langs').click(function(){
|
|
|
|
$j(this).next().toggle();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
2011-11-18 14:22:21 +00:00
|
|
|
{% block extra_head %}
|
|
|
|
{% endblock %}
|
2011-09-04 04:21:51 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2012-01-09 20:53:09 +00:00
|
|
|
<div id="feedback">
|
2012-01-15 17:04:43 +00:00
|
|
|
<p><a href="/feedback/?page={{request.build_absolute_uri|urlencode:""}}" class="nounderline">Feedback</a></p>
|
2012-01-09 20:53:09 +00:00
|
|
|
</div>
|
2012-05-21 14:03:56 +00:00
|
|
|
|
2012-06-13 19:50:57 +00:00
|
|
|
<div id="about_expandable">
|
|
|
|
<div id="about_collapser" class="collapser_x">X</div>
|
|
|
|
<div id="lightbox">
|
2012-08-27 19:35:29 +00:00
|
|
|
<!-- content will be inserted here by hijax.js -->
|
2012-06-13 19:50:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-05-21 14:03:56 +00:00
|
|
|
|
2011-09-21 15:11:36 +00:00
|
|
|
<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">
|
2012-05-24 19:29:45 +00:00
|
|
|
<a href="{{ landingurl }}"><img src="/static/images/logo.png" alt="unglue.it" title="unglue.it" /></a>
|
2011-09-04 04:21:51 +00:00
|
|
|
</div>
|
2011-10-14 02:32:30 +00:00
|
|
|
{% if not suppress_search_box %}
|
2011-11-07 20:11:52 +00:00
|
|
|
<div class="js-search">
|
2011-10-14 02:32:30 +00:00
|
|
|
<div class="js-search-inner">
|
|
|
|
<form action="{% url search %}" method="get">
|
2011-12-13 21:17:51 +00:00
|
|
|
<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 }}">
|
2011-12-13 21:17:51 +00:00
|
|
|
<input type="submit" class="button">
|
|
|
|
</div>
|
2011-10-14 02:32:30 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2012-10-19 16:01:28 +00:00
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<div class="js-topmenu" id="authenticated">
|
|
|
|
<ul class="menu">
|
|
|
|
<li>
|
2012-11-06 14:54:42 +00:00
|
|
|
<a href="#"><span id="welcome">Hi, {{ user.username }}</span></a>
|
2012-10-19 16:01:28 +00:00
|
|
|
</li>
|
2012-11-20 20:28:45 +00:00
|
|
|
<li>
|
2013-03-14 19:43:24 +00:00
|
|
|
<img class="user-avatar" src="{{ user.profile.avatar_url }}" height=36 width="36" alt="Avatar for {{ user.username }}" title="{{ user.username }}" />
|
2012-11-20 20:48:41 +00:00
|
|
|
{% if unseen_count %}
|
|
|
|
<a href="/notification"><span id="i_haz_notifications_badge">{{ unseen_count }}</span></a>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
</ul>
|
2012-10-19 16:01:28 +00:00
|
|
|
<ul id="user_menu">
|
2013-03-14 19:33:00 +00:00
|
|
|
<li><a href="{% url supporter user %}">Wishlist</a></li>
|
2012-10-19 16:19:56 +00:00
|
|
|
<li>
|
|
|
|
<a href="/notification"><span>Messages</span>
|
|
|
|
{% if unseen_count %}
|
|
|
|
<span id="i_haz_notifications" class="unseen_count">{{ unseen_count }}</span>
|
|
|
|
{% else %}
|
|
|
|
<span id="no_notifications_for_you" class="unseen_count">0</span>
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</li>
|
2013-03-14 19:33:00 +00:00
|
|
|
<li><a href="{% url supporter user %}#edit" id="profile_edit"><span>Profile Settings</span></a></li>
|
2012-11-20 18:40:25 +00:00
|
|
|
<li><a href="{% url manage_account %}"><span>Account & Pledges</span></a></li>
|
2012-10-19 16:01:28 +00:00
|
|
|
<li><a href="{% url auth_logout %}"><span>Sign Out</span></a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="js-topmenu">
|
|
|
|
<ul class="menu">
|
2013-03-08 07:43:11 +00:00
|
|
|
<li><a href="{% url superlogin %}?next={% if request.GET.next %}{{ request.GET.next|urlencode }}{% else %}{{ request.get_full_path|urlencode}}{% endif %}" class="hijax"><span>Sign In</span></a></li>
|
|
|
|
{% if not suppress_search_box %}
|
2012-11-16 20:47:03 +00:00
|
|
|
{% ifnotequal request.get_full_path "/accounts/register/" %}
|
|
|
|
{% comment %}
|
|
|
|
don't display this on landing page where it's superseded by big signup box in splash area
|
|
|
|
{% endcomment %}
|
2013-03-08 07:43:11 +00:00
|
|
|
<li id="expander" class="last"><a href="{% url registration_register %}?next={% if request.GET.next %}{{ request.GET.next|urlencode }}{% else %}{{ request.get_full_path|urlencode}}{% endif %}"><span>Sign Up</span></a></li>
|
2012-11-16 20:47:03 +00:00
|
|
|
{% endifnotequal %}
|
2012-11-06 14:34:31 +00:00
|
|
|
{% endif %}
|
2012-10-19 16:01:28 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2011-09-04 04:21:51 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2012-09-18 18:16:06 +00:00
|
|
|
{% block news %}
|
2013-03-28 14:59:36 +00:00
|
|
|
{% if not suppress_search_box %}
|
|
|
|
{% comment %}
|
|
|
|
Not needed on newly designed home page?
|
|
|
|
{% endcomment %}
|
2012-09-11 18:03:33 +00:00
|
|
|
<div class="launch_top">
|
2013-04-02 15:21:44 +00:00
|
|
|
De Gruyter to work with Unglue.it: <a href="https://unglue.it/pid/popular/4311">Wish for your favorites!</a>
|
2012-05-17 01:43:45 +00:00
|
|
|
</div>
|
2013-03-28 14:59:36 +00:00
|
|
|
{% endif %}
|
2012-09-18 18:16:06 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2011-10-13 16:23:16 +00:00
|
|
|
{% block topsection %}{% endblock %}
|
2011-09-04 04:21:51 +00:00
|
|
|
{% block content %}{% endblock %}
|
2012-01-10 21:27:31 +00:00
|
|
|
</div>
|
2012-09-18 18:16:06 +00:00
|
|
|
{% block footer %}
|
2011-09-13 18:35:06 +00:00
|
|
|
<div id="footer">
|
2011-11-16 16:01:45 +00:00
|
|
|
<div class="js-main">
|
2011-11-15 21:14:09 +00:00
|
|
|
<div class="column">
|
2012-05-08 20:15:23 +00:00
|
|
|
<span>About Unglue.it</span>
|
2012-03-08 02:47:40 +00:00
|
|
|
<ul>
|
2013-02-07 14:10:20 +00:00
|
|
|
<li><a href="{{ aboutmainurl }}" class="hijax">Concept</a></li>
|
2012-10-19 16:01:28 +00:00
|
|
|
<li><a href="{{ abouturl }}">Team</a></li>
|
|
|
|
<li><a href="http://blog.unglue.it">Blog</a></li>
|
|
|
|
<li><a href="{{ pressurl }}">Press</a></li>
|
|
|
|
<li><a href="http://eepurl.com/fKLfI">Newsletter</a></li>
|
2012-03-08 02:47:40 +00:00
|
|
|
</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>
|
2012-10-19 16:01:28 +00:00
|
|
|
{% 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>
|
|
|
|
{% if user.is_staff %}
|
|
|
|
<li><a href="{{ adminurl }}">Unglue.it Administration</a></li>
|
|
|
|
<li><a href="{{ editionurl }}">Create New Editions</a></li>
|
|
|
|
{% endif %}
|
2012-03-08 02:47:40 +00:00
|
|
|
</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>
|
2012-10-19 16:01:28 +00:00
|
|
|
<li><a href="{{ faqurl }}">General FAQ</a></li>
|
2013-04-09 16:31:19 +00:00
|
|
|
<li><a href="{% url faq_location 'rightsholders' %}">Author/Publisher FAQ</a></li>
|
2012-10-19 16:01:28 +00:00
|
|
|
<li><a href="{% url api_help %}">API</a></li>
|
|
|
|
<li><a href="mailto:support@gluejar.com">support@gluejar.com</a>
|
2013-01-27 01:35:52 +00:00
|
|
|
<li><a href="{{ librariesurl }}">Unglue.it ♥ Libraries</a>
|
2012-03-08 02:47:40 +00:00
|
|
|
</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>
|
2012-10-19 16:01:28 +00:00
|
|
|
<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>
|
2012-03-08 02:47:40 +00:00
|
|
|
</ul>
|
2011-11-15 21:14:09 +00:00
|
|
|
</div>
|
2012-03-08 02:47:40 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-09-18 18:16:06 +00:00
|
|
|
{% endblock %}
|
2011-11-29 23:14:25 +00:00
|
|
|
{% block counter %}
|
2012-10-23 14:24:16 +00:00
|
|
|
{% if show_google_analytics %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
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>
|
|
|
|
{% endif %}
|
2012-09-18 18:16:06 +00:00
|
|
|
{% endblock %}
|
2011-09-04 04:21:51 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|