home » zplus/dokk.org.git
Author zPlus <zplus@peers.community> 2023-09-04 03:41:31
Committer zPlus <zplus@peers.community> 2023-09-04 03:41:31
Commit 089aa59 (patch)
Tree 2b0da48
Parent(s)

Add plaintext view to library page.


commits diff: 95d6a37..089aa59
2 files changed, 12 insertions, 8 deletionsdownload


Diffstat
-rw-r--r-- pages/templates/library/item.tpl 13
-rw-r--r-- static/css/dokk.css 7

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+7/-6 M   pages/templates/library/item.tpl
index 6fe7f13..a4a7aa1
old size: 2K - new size: 2K
@@ -50,13 +50,9 @@
50 50 <a href="/library">DOKK Library</a>
51 51 </div>
52 52
53 - <div>
54 - <object type="application/pdf" data="https://blob.dokk.org/pdf/{{ item_id }}.pdf">
55 - <pre>{{ plaintext }}</pre>
56 - </object>
57 - </div>
53 + <object type="application/pdf" data="https://blob.dokk.org/pdf/{{ item_id }}.pdf"></object>
58 54
59 - <div class="details">
55 + <div class="info">
60 56 <h1>{{ data["library:title"] }}</h1>
61 57
62 58 <p>
@@ -73,6 +69,11 @@
73 69 {% endfor%}
74 70 </p>
75 71 </div>
72 +
73 + <details>
74 + <summary>Plaintext</summary>
75 + <pre>{{ plaintext }}</pre>
76 + </details>
76 77 </div>
77 78
78 79 {% endblock %}

+5/-2 M   static/css/dokk.css
index 587f6d2..ddf5784
old size: 2K - new size: 2K
@@ -33,15 +33,18 @@ body > .library_item {
33 33 }
34 34
35 35 body > .library_item object {
36 - box-shadow: 0 0 2rem 0 #AAA;
37 36 height: 80vh;
38 37 width: 100%;
39 38 }
40 39
41 - body > .library_item > .details {
40 + body > .library_item > .info {
42 41 padding: 3rem 5rem;
43 42 }
44 43
44 + body > .library_item > details {
45 + padding: 0rem 5rem 3rem 5rem;
46 + }
47 +
45 48 body > .mimi_and_eunice_strip {
46 49 padding: 1rem;
47 50 }