small lil tisms: table column sort disabling, remove ugly https:// string from rules (#112)

* about the rdrama_rules, when I changed from http:// to https:// the other day, in some browsers it now displays the protocol tag which is ugly and inconsistent. Not sure why on some browsers it did not display "http://" before
* about the sorting: I will disable sorting on more table columns later on. This is all I can do right now

Reviewed-on: #112
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
pull/113/head
mummified-corroding-granny 2023-02-06 02:07:39 +00:00 committed by Aevann
parent 786ba6aa56
commit 113a1b4959
12 changed files with 25 additions and 22 deletions

View File

@ -96,6 +96,9 @@ if (reload_page) {
const TH = document.getElementsByTagName('th')
for (const element of TH) {
if (element.classList.contains("disable-sort-click"))
continue;
element.addEventListener('click', () => {sort_table(element)});
}

View File

@ -16,9 +16,9 @@
<thead class="bg-primary text-white">
<tr>
<th></th>
<th>@{{u1.username}} only (% unique)</th>
<th>Both</th>
<th>@{{u2.username}} only (% unique)</th>
<th class="disable-sort-click">@{{u1.username}} only (% unique)</th>
<th class="disable-sort-click">Both</th>
<th class="disable-sort-click">@{{u2.username}} only (% unique)</th>
</tr>
</thead>
<tr>

View File

@ -25,11 +25,11 @@
<tr>
<th>#</th>
<th>Name</th>
<th>Account Created</th>
<th class="disable-sort-click">Account Created</th>
<th>Alt Link Created</th>
<th>Manual</th>
<th>Delinked</th>
<th>Actions</th>
<th class="disable-sort-click">Delinked</th>
<th class="disable-sort-click">Actions</th>
</tr>
</thead>
{% for user in alts %}

View File

@ -9,8 +9,8 @@
<thead class="bg-primary text-white">
<tr>
<th>Name</th>
<th>What you type</th>
<th>What gets displayed</th>
<th class="disable-sort-click">What you type</th>
<th class="disable-sort-click">What gets displayed</th>
</tr>
</thead>
<tbody>
@ -241,8 +241,8 @@ And we allow custom HTML in most places:
<thead class="bg-primary text-white">
<tr>
<th>Name</th>
<th>What you type</th>
<th>What gets displayed</th>
<th class="disable-sort-click">What you type</th>
<th class="disable-sort-click">What gets displayed</th>
</tr>
</thead>
<tbody>

View File

@ -37,7 +37,7 @@
<table class="table table-striped shop">
<thead class="bg-primary text-white">
<tr>
<th>Hat</th>
<th class="disable-sort-click">Hat</th>
<th>Name</th>
<th>Description</th>
{% if SITE == 'rdrama.net' %}
@ -45,7 +45,7 @@
{% endif %}
<th>Owners</th>
<th>Price</th>
<th>Actions</th>
<th class="disable-sort-click">Actions</th>
<th>Added on</th>
</tr>
</thead>

View File

@ -1,6 +1,6 @@
<p>Drama: any incident, scene, gaffe, rumor, opinion, or disagreement that is blown entirely out of proportion.</p>
<p><strong>Do your part to keep our community healthy by blowing everything out of proportion and making literally everything as dramatic as possible.</strong></p>
<p><a href="https://rdrama.net" rel="nofollow noopener" target="_blank">https://rdrama.net</a> caters to drama in all forms such as: <strong>Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyond™</strong>. There isn't drama we won't touch, and we want it all.</p>
<p><a href="https://rdrama.net" rel="nofollow noopener" target="_blank">rdrama.net</a> caters to drama in all forms such as: <strong>Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyond™</strong>. There isn't drama we won't touch, and we want it all.</p>
<h3>What we want:</h3>
<ul>
<li><p>Arguments.</p></li>

View File

@ -41,11 +41,11 @@
<div class="overflow-x-auto mt-1 mb-5"><table class="table table-striped shop">
<thead class="bg-primary text-white">
<tr>
<th>Icon</th>
<th class="disable-sort-click">Icon</th>
<th>Title</th>
<th>Price</th>
<th>Owned</th>
<th>Buy</th>
<th class="disable-sort-click">Buy</th>
<th>Description</th>
</tr>
</thead>

View File

@ -4,8 +4,8 @@
<div class="overflow-x-auto mt-1"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>Statistic</th>
<th>Value</th>
<th class="disable-sort-click">Statistic</th>
<th class="disable-sort-click">Value</th>
</tr>
</thead>
{% for key, value in data.items() %}

View File

@ -6,7 +6,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Name</th>
<td>Blocking since</td>
<th class="disable-sort-click">Blocking since</td>
</tr>
</thead>
<tbody id="blockers-table">

View File

@ -6,9 +6,9 @@
<thead class="bg-primary text-white">
<tr>
<th>Name</th>
<td>Following since</td>
<th class="disable-sort-click">Following since</td>
{% if v.id == u.id %}
<th></th>
<th class="disable-sort-click"></th>
{% endif %}
</tr>
</thead>

View File

@ -7,7 +7,7 @@
<tr>
<th>Name</th>
{% if v.id == u.id %}
<th></th>
<th class="disable-sort-click"></th>
{% endif %}
</tr>
</thead>

View File

@ -6,7 +6,7 @@
<thead class="bg-primary text-white">
<tr>
<th>Name</th>
<th>Last visit</th>
<th class="disable-sort-click">Last visit</th>
</tr>
</thead>
{% for view in views %}