From 789a602914342a9dc190212eba5f0ad8dbd38f86 Mon Sep 17 00:00:00 2001
From: ed
Date: Sat, 19 Jun 2021 01:18:48 +0200
Subject: [PATCH] save some more bytes on the wire
---
copyparty/web/browser.html | 206 ++++++++++++++++++------------------
copyparty/web/browser2.html | 86 +++++++--------
2 files changed, 146 insertions(+), 146 deletions(-)
diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html
index 7c98a20f..99fc6ba0 100644
--- a/copyparty/web/browser.html
+++ b/copyparty/web/browser.html
@@ -2,134 +2,134 @@
-
- ⇆🎉 {{ title }}
-
-
-
-
- {%- if css %}
-
- {%- endif %}
+
+ ⇆🎉 {{ title }}
+
+
+
+
+ {%- if css %}
+
+ {%- endif %}
-
+
-
- {%- if have_tags_idx %}
-
- {%- else %}
-
- {%- endif %}
-
-
+
+ {%- if have_tags_idx %}
+
+ {%- else %}
+
+ {%- endif %}
+
+
-
+
-
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
+
-
-
-
- 🌲
- {%- for n in vpnodes %}
- {{ n[1] }}
- {%- endfor %}
-
-
-
+
+
+
+ 🌲
+ {%- for n in vpnodes %}
+ {{ n[1] }}
+ {%- endfor %}
+
+
+
-
{{ logues[0] }}
+
{{ logues[0] }}
-
-
-
- c |
- File Name |
- Size |
- {%- for k in taglist %}
- {%- if k.startswith('.') %}
- {{ k[1:] }} |
- {%- else %}
- {{ k[0]|upper }}{{ k[1:] }} |
- {%- endif %}
- {%- endfor %}
- T |
- Date |
-
-
-
+
+
+
+ c |
+ File Name |
+ Size |
+ {%- for k in taglist %}
+ {%- if k.startswith('.') %}
+ {{ k[1:] }} |
+ {%- else %}
+ {{ k[0]|upper }}{{ k[1:] }} |
+ {%- endif %}
+ {%- endfor %}
+ T |
+ Date |
+
+
+
{%- for f in files %}
- {{ f.lead }} | {{ f.name|e }} | {{ f.sz }} |
- {%- if f.tags is defined %}
- {%- for k in taglist %}
- {{ f.tags[k] }} |
- {%- endfor %}
- {%- endif %}
- {{ f.ext }} | {{ f.dt }} |
+{{ f.lead }} | {{ f.name|e }} | {{ f.sz }} |
+ {%- if f.tags is defined %}
+ {%- for k in taglist %}
+{{ f.tags[k] }} |
+ {%- endfor %}
+ {%- endif %}
+{{ f.ext }} | {{ f.dt }} |
{%- endfor %}
-
-
-
- {{ logues[1] }}
+
+
+
+
{{ logues[1] }}
-
+
- {%- if srv_info %}
- {{ srv_info }}
- {%- endif %}
+ {%- if srv_info %}
+ {{ srv_info }}
+ {%- endif %}
-
+
-
-
-
-
+
+
+
+
diff --git a/copyparty/web/browser2.html b/copyparty/web/browser2.html
index f11e3619..2bf87d91 100644
--- a/copyparty/web/browser2.html
+++ b/copyparty/web/browser2.html
@@ -2,59 +2,59 @@
-
- {{ title }}
-
-
-
+
+ {{ title }}
+
+
+
- {%- if srv_info %}
- {{ srv_info }}
- {%- endif %}
+ {%- if srv_info %}
+ {{ srv_info }}
+ {%- endif %}
- {%- if have_b_u %}
-
-
- {%- endif %}
+ {%- if have_b_u %}
+
+
+ {%- endif %}
- {%- if logues[0] %}
- {{ logues[0] }}
- {%- endif %}
+ {%- if logues[0] %}
+ {{ logues[0] }}
+ {%- endif %}
-
-
-
- c |
- File Name |
- Size |
- Date |
-
-
-
- | parent folder | - | - |
+
-
- {%- if logues[1] %}
- {{ logues[1] }}
- {%- endif %}
-
-
+
+
+
+ {%- if logues[1] %}
+ {{ logues[1] }}
+ {%- endif %}
+
+