Put all Insights elements into boxes

This commit is contained in:
Mark Veidemanis 2022-07-21 13:52:17 +01:00
parent 5f2e4f9ce5
commit 9f808c43ee
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
5 changed files with 140 additions and 166 deletions

View File

@ -1,10 +1,5 @@
<div id="channels"> <div id="channels">
<div class="panel is-primary" style="max-height: 30em; overflow: auto">
<p class="panel-heading">
Channels
</p>
{% for chan in chans %} {% for chan in chans %}
<a class="panel-block is-active">
<span class="panel-icon"> <span class="panel-icon">
<i class="fa-solid fa-hashtag" aria-hidden="true"></i> <i class="fa-solid fa-hashtag" aria-hidden="true"></i>
</span> </span>
@ -17,7 +12,5 @@
class="button is-small"> class="button is-small">
{{ chan }} {{ chan }}
</span> </span>
</a>
{% endfor %} {% endfor %}
</div> </div>
</div>

View File

@ -1,11 +1,33 @@
{% load static %} {% load static %}
{% load index %} {% load index %}
<div
style="display: none;"
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-vals='{"net": "{{ item.net }}", "nick": "{{ item.nick }}"}'
hx-post="{% url 'chans_insights' %}"
hx-trigger="load"
hx-target="#channels"
hx-swap="outerHTML">
</div>
<div
style="display: none;"
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-vals='{"net": "{{ item.net }}", "nick": "{{ item.nick }}"}'
hx-post="{% url 'nicks_insights' %}"
hx-trigger="load"
hx-target="#nicks"
hx-swap="outerHTML">
</div>
<div
style="display: none;"
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-vals='{"net": "{{ item.net }}", "nick": "{{ item.nick }}"}'
hx-post="{% url 'meta_insights' %}"
hx-trigger="load"
hx-target="#meta"
hx-swap="outerHTML">
</div>
<div id="info"> <div id="info">
<div class="panel is-primary">
<p class="panel-heading">
Information
</p>
<div class="panel-block is-active">
{% if item is not None %} {% if item is not None %}
<div class="table-container"> <div class="table-container">
<table class="table is-fullwidth is-hoverable"> <table class="table is-fullwidth is-hoverable">
@ -81,32 +103,3 @@
</div> </div>
{% endif %} {% endif %}
</div> </div>
<div
style="display: none;"
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-vals='{"net": "{{ item.net }}", "nick": "{{ item.nick }}"}'
hx-post="{% url 'chans_insights' %}"
hx-trigger="load"
hx-target="#channels"
hx-swap="outerHTML">
</div>
<div
style="display: none;"
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-vals='{"net": "{{ item.net }}", "nick": "{{ item.nick }}"}'
hx-post="{% url 'nicks_insights' %}"
hx-trigger="load"
hx-target="#nicks"
hx-swap="outerHTML">
</div>
<div
style="display: none;"
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-vals='{"net": "{{ item.net }}", "nick": "{{ item.nick }}"}'
hx-post="{% url 'meta_insights' %}"
hx-trigger="load"
hx-target="#meta"
hx-swap="outerHTML">
</div>
</div>
</div>

View File

@ -75,6 +75,7 @@
</div> </div>
<div class="tile is-parent"> <div class="tile is-parent">
<article class="tile is-child box"> <article class="tile is-child box">
<h5 class="subtitle is-5">Nicks</h5>
<div id="nicks"></div> <div id="nicks"></div>
</article> </article>
</div> </div>
@ -82,12 +83,14 @@
<div class="tile"> <div class="tile">
<div class="tile is-parent is-vertical"> <div class="tile is-parent is-vertical">
<article class="tile is-child box"> <article class="tile is-child box">
<h5 class="subtitle is-5">Info</h5>
<div id="info"></div> <div id="info"></div>
</article> </article>
</div> </div>
<div class="tile is-parent"> <div class="tile is-parent">
<article class="tile is-child box"> <article class="tile is-child box">
<h5 class="subtitle is-5">Meta</h5>
<div id="meta"></div> <div id="meta"></div>
</article> </article>
</div> </div>
@ -95,6 +98,7 @@
</div> </div>
<div class="tile is-parent"> <div class="tile is-parent">
<article class="tile is-child box"> <article class="tile is-child box">
<h5 class="subtitle is-5">Channels</h5>
<div id="channels"></div> <div id="channels"></div>
</article> </article>
</div> </div>

View File

@ -1,12 +1,5 @@
<div id="meta"> <div id="meta">
<div class="panel is-primary" style="max-height: 30em; overflow: auto">
<p class="panel-heading">
Meta
</p>
<a class="panel-block is-active">
<span class="panel-icon">
<i class="fa-solid fa-hashtag" aria-hidden="true"></i> <i class="fa-solid fa-hashtag" aria-hidden="true"></i>
</span>
<span <span
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}' hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-post="{% url 'modal_drilldown' %}" hx-post="{% url 'modal_drilldown' %}"
@ -16,6 +9,4 @@
class="button is-small"> class="button is-small">
bbb bbb
</span> </span>
</a>
</div>
</div> </div>

View File

@ -1,9 +1,4 @@
<div id="nicks"> <div id="nicks">
<div class="panel is-primary" style="max-height: 30em; overflow: auto">
<p class="panel-heading">
Nicks
</p>
<a class="panel-block is-active">
<span class="panel-icon"> <span class="panel-icon">
<i class="fa-solid fa-hashtag" aria-hidden="true"></i> <i class="fa-solid fa-hashtag" aria-hidden="true"></i>
</span> </span>
@ -16,6 +11,4 @@
class="button is-small"> class="button is-small">
aaa aaa
</span> </span>
</a>
</div>
</div> </div>