mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-13 12:33:23 +02:00
templ.
This commit is contained in:
parent
36960a4031
commit
eebdebc7cb
3 changed files with 136 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -5,3 +5,4 @@ labelbase.log
|
|||
bgt.log
|
||||
db/
|
||||
*.pyc
|
||||
static/
|
||||
|
|
|
|||
50
templates/_dropdown_profile.html
Normal file
50
templates/_dropdown_profile.html
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{% load i18n %}
|
||||
{% load labelbase_tags %}
|
||||
{% load sekizai_tags %}
|
||||
{% load bootstrap %}
|
||||
|
||||
<div class="dropdown-menu dropdown-menu-end py-0 dropdown-profile shadow border border-300" aria-labelledby="navbarDropdownUser" data-bs-popper="static">
|
||||
<div class="card position-relative border-0 flex">
|
||||
|
||||
<div class="card-body p-0">
|
||||
<div class="text-center pt-4 pb-3">
|
||||
<img class="rounded-circle" src="https://pbs.twimg.com/profile_images/1570432066348515330/26PtCuwF_400x400.jpg" width="72px" height="72px" alt="">
|
||||
<h6 class="mt-2 text-black">{{ user.username }}</h6>
|
||||
</div>
|
||||
</div>
|
||||
<div class="overflow-auto scrollbar" style="height: 10rem;">
|
||||
<ul class="profile nav d-flex flex-column mb-2 pb-1">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% block nav_userprofile %}{% endblock %}" href="JavaScript:void(0);" onclick="window.location='{% url 'userprofile' %}';"><span data-feather="user" class="align-text-bottom"></span> Profile Settings</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% block nav_profile %}{% endblock %}" href="JavaScript:void(0);" onclick="window.location='{% url 'two_factor:profile' %}';">{% if user.otp_device %}<span data-feather="shield" class="align-text-bottom"></span>{% else %}<span data-feather="shield-off" class="align-text-bottom"></span>{% endif %} {% trans "Account Security" %}</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% block nav_apikey %}{% endblock %}" href="JavaScript:void(0);" onclick="window.location='{% url 'apikey' %}';"><span data-feather="send" class="align-text-bottom"></span> API Key & Reference</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="card-footer p-0 border-top">
|
||||
<ul class="nav d-flex flex-column my-3">
|
||||
{% comment %}
|
||||
<li class="nav-item"><a class="nav-link px-3" href="#!">Add another account </a></li>
|
||||
<!--li class="nav-item"><a class="nav-link px-3" href="#!">Switch account </a></li-->
|
||||
{% endcomment %}
|
||||
</ul>
|
||||
{% comment %}
|
||||
<hr>
|
||||
{% endcomment %}
|
||||
<div class="px-3">
|
||||
<ul class="profile nav d-flex flex-column mb-2 pb-1">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link btn btn-outline-secondary" href="JavaScript:void(0);" onclick="window.location='{% url 'logout' %}';"><span data-feather="log-out" class="align-text-bottom"></span> {% trans "Logout" %}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="my-2 text-center"><small>
|
||||
<a class="text-600 me-1 termslink" href="JavaScript:void(0);" onclick="window.location='{% url 'privacy_policy' %}';">Privacy policy</a>•<a class="text-600 mx-1 termslink" href="JavaScript:void(0);" onclick="window.location='{% url 'terms' %}';">Terms</a>•<a class="text-600 mx-1 termslink">v1.0.0</a></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
85
templates/_labelbase_header_info_menu.html
Normal file
85
templates/_labelbase_header_info_menu.html
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
{% if labelbase %}
|
||||
<div class="row">
|
||||
<div class="col float-start">
|
||||
<h2 style="padding-top: 1em;">{% block title %}{{ labelbase.name }} {% endblock %}</h2>
|
||||
{% if labelbase.fingerprint %}<tt>{{ labelbase.fingerprint }} </tt>{% endif %}
|
||||
{% if labelbase.about %}
|
||||
<p>{{ labelbase.about}}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="col float-end" >
|
||||
<div class="btn-group float-end" role="group" style="padding-top: 2em;">
|
||||
<button type="button" class="rounded-start btn btn-sm btn-outline-secondary "
|
||||
data-bs-toggle="modal" data-bs-target="#addLabelModal">New Label</button>
|
||||
<!--button type="button" class="rounded-start d-md-none btn btn-sm btn-outline-secondary " data-bs-toggle="modal" data-bs-target="#addLabelModal">New</button-->
|
||||
{% comment %}
|
||||
<div class="btn-group" role="group">
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle " data-bs-toggle="dropdown" aria-expanded="false">
|
||||
Import
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#importBip329LabelsModal">BIP-0329 Labels</a></li>
|
||||
<li><a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#importBlueWalletCSVLabelsModal">BlueWallet CSV History</a></li>
|
||||
<li><a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#importBitboxCSVLabelsModal">BitBox App CSV History</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<a href="{% url 'export_labels' labelbase.id %}" class="btn btn-sm btn-outline-secondary">Export</a>
|
||||
{% endcomment %}
|
||||
<div class="btn-group" role="group">
|
||||
<!--button type="button" class="d-md-none btn btn-sm btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
Labels
|
||||
</button-->
|
||||
<button type="button" class="{#d-none d-md-block #} btn btn-sm btn-outline-secondary dropdown-toggle rounded-end me-2" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
Label Actions
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a class="dropdown-item" href="#">
|
||||
Delete Labels with Empty "label" Text
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item" href="#">
|
||||
Delete All Labels
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="btn-group" role="group">
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle rounded-start rounded-end" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
Labelbase
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#editLabelbaseModal">
|
||||
<i class="bi bi-pencil"></i> Edit Labelbase
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#exportLabelbaseModal">
|
||||
<i class="bi bi-pencil"></i> Export BIP-329 Labels
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#connectApiKeyLabelbaseModal">
|
||||
<i class="bi bi-link"></i> Connect API Key
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="dropdown-item" href="#" data-bs-toggle="modal" data-bs-target="#deleteLabelbaseModal">
|
||||
<i class="bi bi-trash"></i> Delete Labelbase and Labels
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<p>There is no such labelbase.</p>
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue