regluit/frontend/templates/base.html

74 lines
3.0 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 %}
{% url regluit.frontend.views.edit_user as editurl %}
{% url rightsholders as rhtoolsurl %}
<html>
<head>
<title>unglue.it {% block title %}{% endblock %}</title>
<link type="text/css" rel="stylesheet" href="/static/css/layout.css" />
<link href="/static/css/book-panel.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/static/js/jquery-1.6.3.min.js"></script>
<script type="text/javascript" src="/static/js/book-panel.js"></script>
{% block extra_head %}{% endblock %}
</head>
<body>
<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" style="float: left; margin-left: 50px;">
<div class="js-search-inner">
<form action="{% url search %}" method="get">
<input type="text" placeholder="Search for a book..." size="25" class="inputbox" name="q" value="{{ q }}">
<input type="button" onclick="this.form.searchword.focus();" class="button" value="Search">
</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 }}</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="#"><span>Tour</span></a></li>
<li><a href="#"><span>FAQs</span></a></li>
<li><a href="#"><span>Help</span></a></li>
{% if not user.is_authenticated %}
<li class="last"><a href="{% url registration_register %}"><span>sign up</span></a></li>
{% endif %}
</ul>
</div>
</div>
</div>
{% block topsection %}{% endblock %}
{% block content %}{% endblock %}
</div>
2011-09-13 18:35:06 +00:00
<div id="footer">
2011-10-14 02:19:14 +00:00
<p>
<a href="{{privacyurl}}"><span>Privacy</span></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="{{rhtoolsurl}}"><span>Rightsholder tools</span></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="{% url api_help %}"<span>API</span></a>&nbsp;&nbsp;&nbsp;&nbsp;
2011-10-14 02:19:14 +00:00
{% if user.is_authenticated %}
<a href="{{editurl}}"><span>Settings</span></a>&nbsp;&nbsp;&nbsp;&nbsp;
{% endif %}
</p>
2011-09-13 18:35:06 +00:00
</div>
</body>
</html>