2023-12-16 10:00:19 +00:00
{% extends "layout.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
2023-12-17 03:23:28 +00:00
< div class = "mx-width-1050 m-auto p-0-10 p-b-0" >
2023-12-16 10:00:19 +00:00
< div class = "p-1-5 mb-1 bg-light-grey rounded overflow-hidden" >
< div class = "float-right w25 aspect-64 ml-1 relative" >
{% if this.image %}
< img style = "position: absolute; max-width: 100%; max-height: 100%" src = "{{ (" images / " + this . image ) | asseturl } } " >
{% else %}
< svg xmlns = "http://www.w3.org/2000/svg" height = "100%" width = "100%" version = "1.1" preserveAspectRatio = "xMidYMid meet" xmlns:xlink = "http://www.w3.org/1999/xlink" viewBox = "0 0 600 900" style = "fill: currentColor; position: absolute" >
2023-12-17 03:23:28 +00:00
< rect y = "5" width = "590px" x = "5" height = "890px" style = "fill: rgb(209 213 219);" > < / rect >
< polygon points = "360,895 510,895 595,810 595,660" fill = "#5BCEFA" / >
< polygon points = "390,895 480,895 595,780 595,690" fill = "#F5A9B8" / >
< polygon points = "420,895 450,895 595,750 595,720" fill = "#FFF" / >
2024-03-16 17:05:08 +00:00
< text y = "935" x = "-212" font-size = "19" font-weight = "bold" fill = "black" transform = "rotate(-45)" font-family = "sans" style = "text-anchor:middle" > Trans rights< / text >
< text y = "955" x = "-212" font-size = "19" font-weight = "bold" fill = "black" transform = "rotate(-45)" font-family = "sans" style = "text-anchor:middle" > are human rights< / text >
2023-12-17 03:23:28 +00:00
< polygon points = "5,130 5,200 330,5 220,5" fill = "red" > < / polygon >
< text y = "150" x = "-20" transform = "rotate(-31)" fill = "#e5d579" font-weight = "bold" font-size = "20" font-family = "sans" > Comrades Library< / text >
< rect y = "5" width = "590px" style = "fill: none; stroke-width:5; stroke: currentColor" x = "5" height = "890px" / >
2023-12-16 10:00:19 +00:00
< text font-family = "serif" font-weight = "bold" >
{% set name = this.title.split("? ")[0] %}
2024-03-26 23:33:36 +00:00
< tspan y = "200" x = "580" font-size = "{{ 62 - name|length }}" style = "text-anchor:end;font-variant-caps: small-caps;" > {{ name }}< / tspan >
< tspan y = "240" x = "575" font-size = "25" style = "text-anchor:end;font-style:italic;" > {{ this.author }}< / tspan >
{% if this.pub_date %}< tspan y = "270" x = "575" font-size = "21" style = "text-anchor:end" > Published {{ this.pub_date }}< / tspan > {% endif %}
2023-12-16 10:00:19 +00:00
< / text >
< / svg >
{% endif %}
< / div >
< p class = "bold text-3xl" > {{ this.title }}< / p >
{% if this.subtitle %}< p class = "subtitle" > {{ this.subtitle }}< / p > {% endif %}
2024-02-01 15:50:10 +00:00
{% if this.author %}< p > {{ this.author }}< / p > {% endif %}
< p class = "italics" > {% if this.publisher %}{{ this.publisher }}, {% endif %}{{ this.pub_date }}< / p >
2023-12-16 10:00:19 +00:00
< div class = "mt-2" >
2024-03-16 17:05:08 +00:00
{% if this.html %}< p > < a href = "/lib/html/{{ this.html }}/" > Read online< / a > < / p > {% endif %}
2024-03-17 00:17:38 +00:00
{% if this.prolewiki %}< p > < a href = "https://en.prolewiki.org/wiki/Library:{{ this.prolewiki }}" > Read on ProleWiki< / a > < / p > {% endif %}
2024-03-16 17:05:08 +00:00
{% if this.epub %}< p { % if this . html % } class = "mt-1" { % endif % } > Download EPUB:< / p > {% for item in this.epub %}< p > {% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}< a href = "{{ url }}" > {{ url.split('://')[1].split('/')[0] }}< / a > {% else %}< a href = "/lib/epub/{{ url }}" > comlib.encryptionin.space< / a > {% endif %}{% if not loop.last %}, {% endif %}{% endfor %}< / p > {% endfor %}{% endif %}
2023-12-29 14:26:36 +00:00
{% if this.orig %}< p { % if this . epub % } class = "mt-1" { % endif % } > Download source PDF:< / p > {% for item in this.orig %}< p > {% set urls = item.split(", ") %}{% for url in urls %}{% if "http" in url %}< a href = "{{ url }}" > {{ url.split('://')[1].split('/')[0] }}< / a > {% else %}< a href = "/lib/cache/{{ url }}" > cached< / a > {% endif %}{% if not loop.last %}, {% endif %}{% endfor %}< / p > {% endfor %}{% endif %}
2023-12-16 10:00:19 +00:00
< / div >
< / div >
< / div >
{% endblock %}