editable button
This commit is contained in:
@@ -170,6 +170,8 @@ table.form > * > tr > td, th {
|
|||||||
|
|
||||||
.button_image {
|
.button_image {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
width: 50px;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar a:hover, .dropdown:hover .dropbtn {
|
.navbar a:hover, .dropdown:hover .dropbtn {
|
||||||
|
|||||||
@@ -11,33 +11,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<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="navbar">
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="dropbtn"><img class="button_image" src={{ url_for('static', filename='button.png') }}>
|
<button class="dropbtn"><img class="button_image" src={{ url_for('static', filename='button.png') }}>
|
||||||
<!--i class="fa fa-caret-down"></i-->
|
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-content">
|
<div class="dropdown-content">
|
||||||
<a href="{{ url_for('index') }}">Home</a>
|
<a href="{{ url_for('index') }}">Home</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user