Browse Source

update tables output structure

Signed-off-by: r4sas <r4sas@i2pmail.org>
master
R4SAS 4 years ago
parent
commit
15ffc0cee1
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 9
      public/css/style.css
  2. 10
      templates/alive.twig
  3. 10
      templates/all.twig
  4. 10
      templates/latest.twig
  5. 14
      templates/search.twig

9
public/css/style.css

@ -366,6 +366,11 @@ body {
padding: 10px; padding: 10px;
} }
.table__cell_center-bold {
text-align: center;
font-weight: bold;
}
.pagination { .pagination {
margin-top: 40px; margin-top: 40px;
display: flex; display: flex;
@ -613,6 +618,10 @@ body {
min-width: 48px; min-width: 48px;
} }
.table__cell_full-b32 {
display: none;
}
.text-input { .text-input {
padding: 0 6px; padding: 0 6px;
font-size: 16px; font-size: 16px;

10
templates/alive.twig

@ -12,15 +12,19 @@
<thead class="table__head"> <thead class="table__head">
<tr class="table__row"> <tr class="table__row">
<th class="table__cell">Domain</th> <th class="table__cell">Domain</th>
<th class="table__cell">Base32</th> <th class="table__cell"><dfn title="Address Helper">AH</dfn></th>
<th class="table__cell"><dfn title="Base32 address">B32</dfn></th>
<th class="table__cell table__cell_full-b32">Full Base32</th>
<th class="table__cell">Last seen</th> <th class="table__cell">Last seen</th>
</tr> </tr>
</thead> </thead>
<tbody class="table__body"> <tbody class="table__body">
{% for host in hosts %} {% for host in hosts %}
<tr class="table__row"> <tr class="table__row">
<td class="table__cell"><a href="http://{{ host.host }}/?i2paddresshelper={{ host.base64 }}">{{ host.host }}</a></td> <td class="table__cell"><a href="http://{{ host.host }}/">{{ host.host }}</a></td>
<td class="table__cell table__cell_long-ass"><a href="http://{{ host.base32 }}.b32.i2p/">{{ host.base32 }}.b32.i2p</a></td> <td class="table__cell table__cell_center-bold"><a href="http://{{ host.host }}/?i2paddresshelper={{ host.base64 }}">A</a></td>
<td class="table__cell table__cell_center-bold"><a href="http://{{ host.base32 }}.b32.i2p/">B</a></td>
<td class="table__cell table__cell_full-b32 table__cell_long-ass">{{ host.base32 }}.b32.i2p</td>
<td class="table__cell">{{ host.last_seen }}</td> <td class="table__cell">{{ host.last_seen }}</td>
</tr> </tr>
{% endfor %} {% endfor %}

10
templates/all.twig

@ -13,15 +13,19 @@
<thead class="table__head"> <thead class="table__head">
<tr class="table__row"> <tr class="table__row">
<th class="table__cell">Domain</th> <th class="table__cell">Domain</th>
<th class="table__cell">Base32</th> <th class="table__cell"><dfn title="Address Helper">AH</dfn></th>
<th class="table__cell"><dfn title="Base32 address">B32</dfn></th>
<th class="table__cell table__cell_full-b32">Full Base32</th>
<th class="table__cell">Last seen</th> <th class="table__cell">Last seen</th>
</tr> </tr>
</thead> </thead>
<tbody class="table__body"> <tbody class="table__body">
{% for host in hosts %} {% for host in hosts %}
<tr class="table__row"> <tr class="table__row">
<td class="table__cell"><a href="http://{{ host.host }}/?i2paddresshelper={{ host.base64 }}">{{ host.host }}</a></td> <td class="table__cell"><a href="http://{{ host.host }}/">{{ host.host }}</a></td>
<td class="table__cell table__cell_long-ass"><a href="http://{{ host.base32 }}.b32.i2p/">{{ host.base32 }}.b32.i2p</a></td> <td class="table__cell table__cell_center-bold"><a href="http://{{ host.host }}/?i2paddresshelper={{ host.base64 }}">A</a></td>
<td class="table__cell table__cell_center-bold"><a href="http://{{ host.base32 }}.b32.i2p/">B</a></td>
<td class="table__cell table__cell_full-b32 table__cell_long-ass">{{ host.base32 }}.b32.i2p</td>
<td class="table__cell">{{ host.last_seen != '0000-00-00 00:00:00' ? host.last_seen : 'Never' }}</td> <td class="table__cell">{{ host.last_seen != '0000-00-00 00:00:00' ? host.last_seen : 'Never' }}</td>
</tr> </tr>
{% endfor %} {% endfor %}

10
templates/latest.twig

@ -13,15 +13,19 @@
<thead class="table__head"> <thead class="table__head">
<tr class="table__row"> <tr class="table__row">
<th class="table__cell">Domain</th> <th class="table__cell">Domain</th>
<th class="table__cell">Base32</th> <th class="table__cell"><dfn title="Address Helper">AH</dfn></th>
<th class="table__cell"><dfn title="Base32 address">B32</dfn></th>
<th class="table__cell table__cell_full-b32">Full Base32</th>
<th class="table__cell">Added</th> <th class="table__cell">Added</th>
</tr> </tr>
</thead> </thead>
<tbody class="table__body"> <tbody class="table__body">
{% for host in hosts %} {% for host in hosts %}
<tr class="table__row"> <tr class="table__row">
<td class="table__cell"><a href="http://{{ host.host }}/?i2paddresshelper={{ host.base64 }}">{{ host.host }}</a></td> <td class="table__cell"><a href="http://{{ host.host }}/">{{ host.host }}</a></td>
<td class="table__cell table__cell_long-ass"><a href="http://{{ host.base32 }}.b32.i2p/">{{ host.base32 }}.b32.i2p</a></td> <td class="table__cell table__cell_center-bold"><a href="http://{{ host.host }}/?i2paddresshelper={{ host.base64 }}">A</a></td>
<td class="table__cell table__cell_center-bold"><a href="http://{{ host.base32 }}.b32.i2p/">B</a></td>
<td class="table__cell table__cell_full-b32 table__cell_long-ass">{{ host.base32 }}.b32.i2p</td>
<td class="table__cell">{{ host.add_date }}</td> <td class="table__cell">{{ host.add_date }}</td>
</tr> </tr>
{% endfor %} {% endfor %}

14
templates/search.twig

@ -20,16 +20,20 @@
<table class="table"> <table class="table">
<thead class="table__head"> <thead class="table__head">
<tr class="table__row"> <tr class="table__row">
<td class="table__cell">Domain</td> <th class="table__cell">Domain</th>
<td class="table__cell">Base32</td> <th class="table__cell"><dfn title="Address Helper">AH</dfn></th>
<td class="table__cell">Last seen</td> <th class="table__cell"><dfn title="Base32 address">B32</dfn></th>
<th class="table__cell table__cell_full-b32">Full Base32</th>
<th class="table__cell">Last seen</th>
</tr> </tr>
</thead> </thead>
<tbody class="table__body"> <tbody class="table__body">
{% for host in result %} {% for host in result %}
<tr class="table__row"> <tr class="table__row">
<td class="table__cell"><a href="http://{{ host.host }}/?i2paddresshelper={{ host.base64 }}">{{ host.host }}</a></td> <td class="table__cell"><a href="http://{{ host.host }}/">{{ host.host }}</a></td>
<td class="table__cell table__cell_long-ass"><a href="http://{{ host.base32 }}.b32.i2p/">{{ host.base32 }}.b32.i2p</a></td> <td class="table__cell table__cell_center-bold"><a href="http://{{ host.host }}/?i2paddresshelper={{ host.base64 }}">A</a></td>
<td class="table__cell table__cell_center-bold"><a href="http://{{ host.base32 }}.b32.i2p/">B</a></td>
<td class="table__cell table__cell_full-b32 table__cell_long-ass">{{ host.base32 }}.b32.i2p</td>
<td class="table__cell">{{ host.last_seen != '0000-00-00 00:00:00' ? host.last_seen : 'Never' }}</td> <td class="table__cell">{{ host.last_seen != '0000-00-00 00:00:00' ? host.last_seen : 'Never' }}</td>
</tr> </tr>
{% endfor %} {% endfor %}

Loading…
Cancel
Save