2016-05-11 14:36:20 +00:00
|
|
|
<!DOCTYPE html>
|
2018-01-30 03:56:18 +00:00
|
|
|
{% load truncatechars %}{% load sass_tags %}
|
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" />
|
2015-06-04 19:15:59 +00:00
|
|
|
<meta name="referrer" content="origin" />
|
2011-09-26 18:43:41 +00:00
|
|
|
<title>unglue.it {% block title %}{% endblock %}</title>
|
2018-01-05 21:23:56 +00:00
|
|
|
<meta name="twitter:card" content="summary" />
|
|
|
|
<meta name="twitter:site" content="@unglueit" />
|
|
|
|
{% block extra_meta %}{% endblock %}
|
2018-01-30 03:56:18 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="{% sass_src 'scss/sitewide4.scss' %}" />
|
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>
|
2013-05-31 14:46:26 +00:00
|
|
|
<script type="text/javascript" src="/static/js/sitewide1.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">
|
2015-08-18 15:03:49 +00:00
|
|
|
<p><a href="{% url '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">
|
2016-05-11 14:36:20 +00:00
|
|
|
<a href="{% url 'landing' %}"><img src="/static/images/logo.png" alt="unglue.it" title="unglue.it" /></a>
|
2011-09-04 04:21:51 +00:00
|
|
|
</div>
|
2016-04-26 18:38:32 +00:00
|
|
|
{% block search_box %}
|
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">
|
2015-04-28 03:24:02 +00:00
|
|
|
<form action="{% url 'search' %}" method="get">
|
2011-12-13 21:17:51 +00:00
|
|
|
<div class="inputalign">
|
2015-02-12 15:00:01 +00:00
|
|
|
<input type="text" id="nowatermark" 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 %}
|
2016-04-26 18:38:32 +00:00
|
|
|
{% endblock %}
|
2016-05-25 15:53:29 +00:00
|
|
|
{% block signin %}
|
2012-10-19 16:01:28 +00:00
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<div class="js-topmenu" id="authenticated">
|
|
|
|
<ul class="menu">
|
|
|
|
<li>
|
2016-06-20 17:08:23 +00:00
|
|
|
<a class="notbutton" href="#"><span id="welcome">Hi, {{ user.username }} <i class="fa fa-chevron-down"> </i></span></a>
|
2012-10-19 16:01:28 +00:00
|
|
|
</li>
|
2014-11-10 18:40:25 +00:00
|
|
|
<li>{% block avatar %}
|
|
|
|
<img class="user-avatar" src="{{ user.profile.avatar_url }}" height=36 width="36" alt="Avatar for {{ user.username }}" title="{{ user.username }}" />{% endblock %}
|
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">
|
2015-04-28 03:24:02 +00:00
|
|
|
<li><a class="notbutton" href="{% url 'supporter' user %}">My Faves</a></li>
|
2012-10-19 16:19:56 +00:00
|
|
|
<li>
|
2015-04-09 13:21:59 +00:00
|
|
|
<a class="notbutton" href="/notification"><span>Notices</span>
|
2012-10-19 16:19:56 +00:00
|
|
|
{% 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>
|
2015-04-28 03:24:02 +00:00
|
|
|
<li><a class="notbutton" href="{% url 'supporter' user %}#edit" id="profile_edit"><span>Profile Settings</span></a></li>
|
|
|
|
<li><a class="notbutton" href="{% url 'manage_account' %}"><span>Account & Pledges</span></a></li>
|
2014-04-09 19:11:34 +00:00
|
|
|
{% if user.rights_holder.all %}
|
2016-05-11 14:36:20 +00:00
|
|
|
<li><a class="notbutton" href="{% url 'rightsholders' %}">Rights Holder Tools</a></li>
|
2014-04-09 19:11:34 +00:00
|
|
|
{% endif %}
|
2015-04-28 03:24:02 +00:00
|
|
|
<li><a class="notbutton" href="{% url 'auth_logout' %}"><span>Sign Out</span></a></li>
|
2012-10-19 16:01:28 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="js-topmenu">
|
|
|
|
<ul class="menu">
|
2016-06-20 17:08:23 +00:00
|
|
|
<li><a class="notbutton hijax" href="{% url 'superlogin' %}?next={% if request.GET.next %}{{ request.GET.next|urlencode }}{% else %}{{ request.get_full_path|urlencode}}{% endif %}"><span>Sign In</span></a></li>
|
2013-03-08 07:43:11 +00:00
|
|
|
{% if not suppress_search_box %}
|
2016-07-25 18:50:19 +00:00
|
|
|
{% if request.get_full_path != "/accounts/register/" %}
|
2015-04-28 03:24:02 +00:00
|
|
|
<li class="last"><a class="btn btn-signup" href="{% url 'registration_register' %}?next={% if request.GET.next %}{{ request.GET.next|urlencode }}{% else %}{{ request.get_full_path|urlencode}}{% endif %}">Sign Up <i class="fa fa-chevron-right"></i></a></li>
|
2016-07-25 18:50:19 +00:00
|
|
|
{% endif %}
|
2012-11-06 14:34:31 +00:00
|
|
|
{% endif %}
|
2012-10-19 16:01:28 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-05-25 15:53:29 +00:00
|
|
|
{% endblock %}
|
2011-09-04 04:21:51 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2012-09-18 18:16:06 +00:00
|
|
|
{% block news %}
|
|
|
|
{% 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>
|
2016-05-11 14:36:20 +00:00
|
|
|
<li><a href="{% url 'about_specific' 'main' %}" class="hijax">Concept</a></li>
|
2016-04-12 18:32:22 +00:00
|
|
|
<li><a href="https://blog.unglue.it">Blog</a></li>
|
2016-05-11 14:36:20 +00:00
|
|
|
<li><a href="{% url 'press' %}">Press</a></li>
|
2012-10-19 16:01:28 +00:00
|
|
|
<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 %}
|
2016-05-11 14:36:20 +00:00
|
|
|
<li><a href="{% url 'manage_account' %}">Account Settings</a></li>
|
2017-11-07 15:43:40 +00:00
|
|
|
<li><a href="{% url 'new_edition' '' '' %}">Add Books to Unglue.it</a></li>
|
2012-10-19 16:01:28 +00:00
|
|
|
{% endif %}
|
2017-11-07 15:43:40 +00:00
|
|
|
<li><a href="{% url 'rightsholders' %}">For Rights Holders</a></li>
|
2016-05-11 14:36:20 +00:00
|
|
|
<li><a href="{% url 'privacy' %}">Privacy</a></li>
|
|
|
|
<li><a href="{% url 'terms' %}">Terms of Use</a></li>
|
2013-11-28 03:14:52 +00:00
|
|
|
{% for library in user.libraries.all %}
|
2015-04-28 03:24:02 +00:00
|
|
|
<li><a href="{% url 'library_admin' library.id %}">{{ library }} Administration</a></li>
|
2013-11-28 03:14:52 +00:00
|
|
|
{% endfor %}
|
2012-10-19 16:01:28 +00:00
|
|
|
{% if user.is_staff %}
|
2016-05-11 14:36:20 +00:00
|
|
|
<li><a href="{% url 'rh_admin' %}">Unglue.it Administration</a></li>
|
2012-10-19 16:01:28 +00:00
|
|
|
{% 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>
|
2016-05-11 14:36:20 +00:00
|
|
|
<li><a href="{% url 'faq' %}">General FAQ</a></li>
|
2015-04-28 03:24:02 +00:00
|
|
|
<li><a href="{% url 'faq_location' 'rightsholders' %}">Author/Publisher FAQ</a></li>
|
|
|
|
<li><a href="{% url 'api_help' %}">API</a></li>
|
2015-08-18 15:03:49 +00:00
|
|
|
<li><a href="{% url 'feedback' %}?page={{request.build_absolute_uri|urlencode:""}}">Support</a>
|
2017-11-18 21:35:19 +00:00
|
|
|
<li><a href="{% url 'libraries' %}">Unglue.it for 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>
|
2018-04-25 15:23:29 +00:00
|
|
|
<li> <a href="mailto:info@ebookfoundation.org"><i class="fa fa-envelope fa-2x"></i></a> <a href="https://twitter.com/unglueit"><i class="fa fa-twitter fa-2x"></i></a> <a href="https://facebook.com/unglueit"><i class="fa fa-facebook fa-2x"></i></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>
|
|
|
|
|
|
|
|
|