regluit/frontend/templates/base.html

203 lines
8.8 KiB
HTML
Raw Normal View History

2016-05-11 14:36:20 +00:00
<!DOCTYPE html>
2018-04-27 22:03:22 +00:00
{% load sass_tags %}
2018-04-25 21:16:46 +00:00
<html lang="en">
<head>
2012-03-09 20:04:10 +00:00
<meta charset="utf-8" />
2018-04-25 20:13:27 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2015-06-04 19:15:59 +00:00
<meta name="referrer" content="origin" />
<title>unglue.it {% block title %}{% endblock %}</title>
2018-02-13 18:21:10 +00:00
<link REL="SHORTCUT ICON" HREF="/static/images/favicon.ico">
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' %}" />
2018-11-03 20:56:58 +00:00
2018-07-29 19:39:06 +00:00
<link rel="SHORTCUT ICON" href="{% url 'favicon'%}">
2018-11-03 20:56:58 +00:00
{% block extra_css %}{% endblock %}
2017-12-05 23:46:18 +00:00
2017-12-07 21:55:16 +00:00
<link href="{% sass_src 'scss/global.scss' %}" rel="stylesheet" type="text/css" />
2018-02-08 04:56:59 +00:00
<link href="{% sass_src 'scss/header.scss' %}" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="/static/css/font-awesome.min.css" />
2018-02-13 18:21:10 +00:00
<script type="text/javascript" src="{{ jquery_home }}"></script>
<script type="text/javascript" src="/static/js/jquery.cookie.js"></script>
<script type="text/javascript" src="/static/js/sitewide1.js"></script>
2018-11-03 20:56:58 +00:00
{% block extra_js %}
{% endblock %}
{% if show_langs %}
<script>
var $j = jQuery.noConflict();
$j(document).ready(function(){
$j('.show_langs').click(function(){
$j(this).next().toggle();
});
});
</script>
{% endif %}
{% block extra_head %}
{% endblock %}
</head>
<body>
<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>
</div>
2012-05-21 14:03:56 +00:00
<div id="about_expandable">
<div id="about_collapser" class="collapser_x">X</div>
<div id="lightbox">
<!-- content will be inserted here by hijax.js -->
</div>
</div>
2012-05-21 14:03:56 +00:00
2018-02-08 04:56:59 +00:00
<div id="page-wrapper">
<div id="header">
<div id="header-logo">
<a href="{% url 'landing' %}"><img src="/static/images/logo.png" alt="unglue.it" title="unglue.it"/></a>
</div>
<div id="header-search-bar">
<form action="{% url 'search' %}" method="get">
2018-04-25 21:16:46 +00:00
<input role="search" type="text" placeholder="Search" id="nowatermark" size="25" onfocus="imgfocus()" onblur="imgblur(15)" class="inputbox" name="q" value="{{ q }}"></input>
2018-02-08 04:56:59 +00:00
<i class="fa fa-search"></i>
</form>
</div>
<div id="header-login">
2016-05-25 15:53:29 +00:00
{% block signin %}
2012-10-19 16:01:28 +00:00
{% if user.is_authenticated %}
2018-05-18 18:20:20 +00:00
<a href="{% url 'supporter' user %}#edit" class="notifications-badge-holder">
2018-05-16 22:06:54 +00:00
<img class="user-avatar" src="{{ user.profile.avatar_url }}" height=36 width="36" alt="Avatar for {{ user.username }}" title="{{ user.username }}" />
2018-05-17 17:43:02 +00:00
{% if unseen_count %}
<span class="notifications-badge unseen_count">{{ unseen_count }}</span>
{% endif %}
2018-05-16 22:06:54 +00:00
</a>
2012-10-19 16:01:28 +00:00
{% else %}
2018-02-08 04:56:59 +00:00
<a class="notbutton hijax" href="{% url 'superlogin' %}?next={% if request.GET.next %}{{ request.GET.next|urlencode }}{% else %}{{ request.get_full_path|urlencode}}{% endif %}"><span>Log In</span></a>
2018-02-27 19:49:11 +00:00
<a class="button success" href="{% url 'registration_register' %}?next={% if request.GET.next %}{{ request.GET.next|urlencode }}{% else %}{{ request.get_full_path|urlencode}}{% endif %}">Sign Up</a>
2012-10-19 16:01:28 +00:00
{% endif %}
2016-05-25 15:53:29 +00:00
{% endblock %}
</div>
2018-02-08 04:56:59 +00:00
<div id="header-menu">
2018-02-15 00:51:17 +00:00
<label for="menu-drilldown-box" toggle-header-menu>
<i class="fa fa-bars"></i>
</label>
2018-02-20 19:46:56 +00:00
<div id="top-menu" style="visibility: hidden;">
2018-02-15 00:51:17 +00:00
<ul class="vertical menu drilldown" data-drilldown >
<label for="menu-drilldown-box">
<li toggle-header-menu><a href="#">Back</a></li>
</label>
2018-05-18 18:20:20 +00:00
{% if True or user.is_authenticated %}
2018-02-20 18:14:14 +00:00
<li>
<a href="#">Account</a>
<ul class="menu vertical nested">
2012-10-19 16:19:56 +00:00
<li>
2018-05-18 18:20:20 +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>
2012-10-19 16:19:56 +00:00
{% else %}
<span id="no_notifications_for_you" class="unseen_count">0</span>
2012-10-19 16:19:56 +00:00
{% endif %}
</a>
</li>
2018-05-16 22:30:14 +00:00
<li><a href="{% url 'supporter' user %}#edit">Profile Settings</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 %}
<li><a href="{% url 'auth_logout' %}">Sign out</a></li>
2012-10-19 16:01:28 +00:00
</ul>
2018-02-20 18:14:14 +00:00
</li>
{% endif %}
2018-02-20 18:14:14 +00:00
<li>
<a href="#">About Unglue.it</a>
<ul class="menu vertical nested">
2018-02-20 19:52:37 +00:00
<li><a href="{% url 'about' %}">Concept</a></li>
2018-02-20 18:14:14 +00:00
<li><a href="https://blog.unglue.it/">Blog</a></li>
2018-02-20 19:52:37 +00:00
<li><a href="{% url 'press' %}">Press</a></li>
2018-02-20 18:14:14 +00:00
<li><a href="http://eepurl.com/fKLfI">Newsletter</a></li>
</ul>
</li>
2018-02-20 19:52:37 +00:00
<li><a href="{% url 'faq' %}">FAQ</a></li>
<li><a href="{% url 'feedback' %}?page={{request.build_absolute_uri|urlencode:""}}">Help</a></li>
2018-02-13 17:25:00 +00:00
</ul>
2018-02-15 00:51:17 +00:00
</div>
</div>
</div>
{% block news %}
{% endblock %}
2018-02-08 04:56:59 +00:00
{% block topsection %}{% endblock %}
{% block content %}{% endblock %}
{% block footer %}
2018-02-13 16:34:32 +00:00
<div class="footer utilityheaders">
2011-11-15 21:14:09 +00:00
<div class="column">
<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>
2018-02-13 16:34:32 +00:00
<div class="column show-for-medium">
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>
{% 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>
{% 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>
2018-02-13 16:34:32 +00:00
<div class="column show-for-medium">
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>
{% endblock %}
2018-02-08 04:56:59 +00:00
</div>
{% block counter %}
{% if show_google_analytics %}
<script type="text/javascript">
2018-02-08 04:56:59 +00:00
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-28369982-1']);
_gaq.push(['_trackPageview']);
2018-02-08 04:56:59 +00:00
(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);
})();
2018-02-08 04:56:59 +00:00
</script>
{% endif %}
{% endblock %}
2018-04-24 23:42:52 +00:00
<script type="text/javascript" src="/static/scss/foundation/dist/js/foundation.js"></script>
</body>
</html>