forked from rDrama/rDrama
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: rDrama/rDrama#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>master
parent
786ba6aa56
commit
113a1b4959
|
@ -96,6 +96,9 @@ if (reload_page) {
|
||||||
|
|
||||||
const TH = document.getElementsByTagName('th')
|
const TH = document.getElementsByTagName('th')
|
||||||
for (const element of TH) {
|
for (const element of TH) {
|
||||||
|
if (element.classList.contains("disable-sort-click"))
|
||||||
|
continue;
|
||||||
|
|
||||||
element.addEventListener('click', () => {sort_table(element)});
|
element.addEventListener('click', () => {sort_table(element)});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th>@{{u1.username}} only (% unique)</th>
|
<th class="disable-sort-click">@{{u1.username}} only (% unique)</th>
|
||||||
<th>Both</th>
|
<th class="disable-sort-click">Both</th>
|
||||||
<th>@{{u2.username}} only (% unique)</th>
|
<th class="disable-sort-click">@{{u2.username}} only (% unique)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -25,11 +25,11 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Account Created</th>
|
<th class="disable-sort-click">Account Created</th>
|
||||||
<th>Alt Link Created</th>
|
<th>Alt Link Created</th>
|
||||||
<th>Manual</th>
|
<th>Manual</th>
|
||||||
<th>Delinked</th>
|
<th class="disable-sort-click">Delinked</th>
|
||||||
<th>Actions</th>
|
<th class="disable-sort-click">Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for user in alts %}
|
{% for user in alts %}
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>What you type</th>
|
<th class="disable-sort-click">What you type</th>
|
||||||
<th>What gets displayed</th>
|
<th class="disable-sort-click">What gets displayed</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -241,8 +241,8 @@ And we allow custom HTML in most places:
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>What you type</th>
|
<th class="disable-sort-click">What you type</th>
|
||||||
<th>What gets displayed</th>
|
<th class="disable-sort-click">What gets displayed</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
<table class="table table-striped shop">
|
<table class="table table-striped shop">
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Hat</th>
|
<th class="disable-sort-click">Hat</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
{% if SITE == 'rdrama.net' %}
|
{% if SITE == 'rdrama.net' %}
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<th>Owners</th>
|
<th>Owners</th>
|
||||||
<th>Price</th>
|
<th>Price</th>
|
||||||
<th>Actions</th>
|
<th class="disable-sort-click">Actions</th>
|
||||||
<th>Added on</th>
|
<th>Added on</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<p>Drama: any incident, scene, gaffe, rumor, opinion, or disagreement that is blown entirely out of proportion.</p>
|
<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><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>
|
<h3>What we want:</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><p>Arguments.</p></li>
|
<li><p>Arguments.</p></li>
|
||||||
|
|
|
@ -41,11 +41,11 @@
|
||||||
<div class="overflow-x-auto mt-1 mb-5"><table class="table table-striped shop">
|
<div class="overflow-x-auto mt-1 mb-5"><table class="table table-striped shop">
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Icon</th>
|
<th class="disable-sort-click">Icon</th>
|
||||||
<th>Title</th>
|
<th>Title</th>
|
||||||
<th>Price</th>
|
<th>Price</th>
|
||||||
<th>Owned</th>
|
<th>Owned</th>
|
||||||
<th>Buy</th>
|
<th class="disable-sort-click">Buy</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
<div class="overflow-x-auto mt-1"><table class="table table-striped mb-5">
|
<div class="overflow-x-auto mt-1"><table class="table table-striped mb-5">
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Statistic</th>
|
<th class="disable-sort-click">Statistic</th>
|
||||||
<th>Value</th>
|
<th class="disable-sort-click">Value</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for key, value in data.items() %}
|
{% for key, value in data.items() %}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<td>Blocking since</td>
|
<th class="disable-sort-click">Blocking since</td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="blockers-table">
|
<tbody id="blockers-table">
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<td>Following since</td>
|
<th class="disable-sort-click">Following since</td>
|
||||||
{% if v.id == u.id %}
|
{% if v.id == u.id %}
|
||||||
<th></th>
|
<th class="disable-sort-click"></th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
{% if v.id == u.id %}
|
{% if v.id == u.id %}
|
||||||
<th></th>
|
<th class="disable-sort-click"></th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<thead class="bg-primary text-white">
|
<thead class="bg-primary text-white">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Last visit</th>
|
<th class="disable-sort-click">Last visit</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for view in views %}
|
{% for view in views %}
|
||||||
|
|
Loading…
Reference in New Issue