editable button

This commit is contained in:
Ville Rantanen
2023-07-24 20:45:59 +03:00
parent 875bec721f
commit b99e18f3b2
2 changed files with 2 additions and 24 deletions

View File

@@ -170,6 +170,8 @@ table.form > * > tr > td, th {
.button_image {
height: 50px;
width: 50px;
display: block;
}
.navbar a:hover, .dropdown:hover .dropbtn {

View File

@@ -11,33 +11,9 @@
</head>
<body>
<nav>
<!--
<a class=logo href="{{ url_for('index') }}">⛤</a>
<div style="margin:auto"></div>
{%- if user is not none -%}
<a href="{{ url_for('user_edit') }}">
{{- user.name }}
{%- if user.is_banned() %} (banned for {{ format_until(user.banned_until) }}){% endif -%}
</a>
<span> | </span>
{%- if user.is_admin() -%}
<a href="{{ url_for('admin') }}">Admin panel</a>
<span> | </span>
{%- endif -%}
<a href="{{ url_for('logout') }}">Logout</a>
{%- else -%}
{%- if config.registration_enabled -%}
<a href="{{ url_for('register') }}">Register</a>
<span> | </span>
{%- endif -%}
<a href="{{ url_for('login') }}">Login</a>
{%- endif -%}
<a href="https://www.markdownguide.org/cheat-sheet/" target=_blank>Syntax help</a>
-->
<div class="navbar">
<div class="dropdown">
<button class="dropbtn"><img class="button_image" src={{ url_for('static', filename='button.png') }}>
<!--i class="fa fa-caret-down"></i-->
</button>
<div class="dropdown-content">
<a href="{{ url_for('index') }}">Home</a>