1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <meta http-equiv="Content-type" content="application/xhtml+xml; charset=<% settings.charset %>" />
7 <link rel="stylesheet" media="all" href="<% request.uri_base %>/css/style.css" />
9 <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
11 <meta name="viewport" content="width=device-width, initial-scale=1"/>
12 <link rel="alternate" type="application/rss+xml" title="The Anarchist Library" href="<% request.uri_base %>/rss.xml" />
14 <%# we always include jquery %>
15 <script type="text/javascript"
16 src="<% request.uri_base %>/js/jquery.js"></script>
17 <script type="text/javascript" >
18 $(document).ready(function() {
19 $('a#sec-sub-menu').click(function() {
20 $('ul#sec-nav-submenu').slideToggle('medium');
25 <script type="text/javascript"
26 src="<% request.uri_base %>/js/markitup/jquery.markitup.js"></script>
27 <script type="text/javascript"
28 src="<% request.uri_base %>/js/markitup/sets/muse/set.js"></script>
29 <link rel="stylesheet" type="text/css"
30 href="<% request.uri_base %>/js/markitup/skins/markitup/style.css" />
31 <link rel="stylesheet" type="text/css"
32 href="<% request.uri_base %>/js/markitup/sets/muse/style.css" />
33 <script type="text/javascript" >
34 $(document).ready(function() {
35 $("#maintextarea").markItUp(mySettings);
39 <link rel="stylesheet" type="text/css"
40 href="<% request.uri_base %>/css/smoothness/jquery-ui-1.8.18.custom.css" />
41 <script type="text/javascript"
42 src="<% request.uri_base %>/js/jquery-ui-1.8.18.custom.min.js">
44 <script type="text/javascript"
45 src="<% request.uri_base %>/js/ckeditor/ckeditor.js">
47 <script type="text/javascript"
48 src="<% request.uri_base %>/js/ckeditor/adapters/jquery.js">
50 <script type="text/javascript"
51 src="<% request.uri_base %>/js/jquery.validate.js">
56 <%# title block, templates should pass the shared hash %>
58 <% IF shared.escapedtitle %>
59 <% shared.escapedtitle %> | The Anarchist Library
61 The Anarchist Library | An archive of anarchist literature
64 <% IF shared.scraperignore %>
65 <meta name="robots" content="noindex,nofollow" />
70 <div class="loggedin">
71 Logged is as “<% session.user %>”:
72 <a href="/admin">Go to the queue manager</a> | <a href="/logout">Logout</a>
75 <div id="secondary-menu">
77 <li><a href="/special/about"
78 <% IF request.path == '/special/about' %>
81 title="info and contacts">About</a>
84 <a href="#" id="sec-sub-menu">Other languages</a>
85 <ul id="sec-nav-submenu">
87 <a href="http://fi.theanarchistlibrary.org">Finnish</a>
90 <a href="http://ru.theanarchistlibrary.org">Russian</a>
93 <a href="http://anarhisticka-biblioteka.net/">Serbo-Croatian</a>
97 <li><a href="/special/distro"
98 <% IF request.path == '/special/distro' %>
101 title="distribution">Distro</a>
104 <a href="http://bookshelf.theanarchistlibrary.org"
105 title="general help, documentation, personal pages...">
110 <a href="/bookbuilder"
111 <% IF request.path == "/bookbuilder" %>
114 title="Create custom PDFs (almost) on the fly">
119 <a href="/random">Random text</a>
127 <form id="formsearchbox" action="/search">
129 <input type="text" name="query" value="" size="12" /><br />
130 <input type="submit" value="Full text search" /></p>
133 <div id="bannerimage">
134 <a title="The Anarchist Library" href="/">
136 title="Beneath the Library the stones, beneath the stones the beach!"
137 alt="The Anarchist Library" src="/images/titlebanner.png"
138 id="title-banner-img" />
144 <li><a href="/authors"
145 <% IF nav == 'authors' %>id="current"<% END %>
146 title="texts sorted by author">Authors</a></li>
147 <li><a href="/library"
148 <% IF nav == 'titles' %>id="current"<% END %>
149 title="texts sorted by title">Titles</a></li>
150 <li><a href="/topics"
151 <% IF nav == 'topics' %>id="current"<% END %>
152 title="texts sorted by topics">Topics</a></li>
154 <% IF directives.file %>
155 <a href="/library/<% directives.file %>?edit">
158 <% IF session.user %>
159 <a href="/library/<%- directives.file -%>/history">History</a>
163 <% IF request.path == "/new" %>
166 title="Add a new text to the library">
172 <% IF directives.file %>
173 <a href="/bookbuilder?addme=<% directives.file %>">
174 Add this text to your book
185 <%# the flash message %>
186 <% IF flash.alreadyloggedin || flash.committed || flash.bookcreated || flash.authonly %>
187 <div class="flashmessage">
188 <% IF flash.alreadyloggedin %>
189 You're already logged in
191 <% IF flash.authonly %>
192 Logging in is required for this action
194 <% IF flash.committed %>
195 <!-- CHANGE THIS IF YOU WANT TO RUN IN UNMODERATED MODE -->
196 Thanks, <% flash.committed %> files committed; Your text is held
197 for approval. Subscribe to the <a href="/rss.xml">RSS feed</a> if you
198 want to be notified when the text will be published.
200 <% IF flash.bookcreated %>
201 Your book has been created and is waiting to be compiled. This
202 operation may take about 10 minutes. Please
203 visit <a href="/bookbuilder">this page to check the status</a>
204 <% ELSIF (session.latestbook && (request.path != '/bookbuilder')) %>
205 You have a book waiting <a href="/bookbuilder">here</a>
214 <img src="/images/feed-icon-28x28.png" alt="syndicate" id="rssicon" />