1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-03-04 10:38:14 +00:00
calibre-web/cps/templates/basic_layout.html

148 lines
2.4 KiB
HTML
Raw Permalink Normal View History

2024-02-28 18:37:13 +00:00
<!DOCTYPE html>
<html lang="{{ current_user.locale }}">
2024-04-03 10:40:13 +01:00
<head>
<title>{{instance}} | {{title}}</title>
<meta charset="utf-8">
<meta name='viewport' content='initial-scale=1,maximum-scale=5,user-scalable=no' />
<style>
body {
margin: 0;
}
nav {
2024-04-06 14:45:51 +10:00
height: 75px;
padding: 5px 20px;
width: 100%;
display: table;
box-sizing: border-box;
border-bottom: 1px solid black;
}
nav > * {
display: inline-block;
display: table-cell;
vertical-align: middle;
float: none;
text-align: center;
width: auto;
}
nav > *:first-child {
text-align: left;
width: 1%;
}
nav > *:last-child {
text-align: right;
width: 1%;
2024-04-03 10:40:13 +01:00
}
nav > a {
color: black;
2024-04-03 13:26:56 +01:00
margin: 0 20px;
2024-04-03 10:40:13 +01:00
}
.search {
2024-04-03 13:26:56 +01:00
margin: auto auto;
2024-04-03 10:40:13 +01:00
}
2024-04-03 13:26:56 +01:00
form > input {
width: 18ch;
2024-04-03 10:40:13 +01:00
padding-left: 4px;
}
2024-04-03 13:26:56 +01:00
form > * {
2024-04-06 14:45:51 +10:00
height: 50px;
2024-04-03 10:40:13 +01:00
background-color: white;
border-radius: 0;
border: 1px solid #ccc;
padding: 0;
margin: 0;
display: inline-block;
vertical-align: top;
}
2024-04-03 13:26:56 +01:00
form > span {
2024-04-03 10:40:13 +01:00
margin-left: -5px;
}
2024-04-03 13:26:56 +01:00
button {
2024-04-03 10:40:13 +01:00
border: none;
padding: 0 10px;
2024-04-03 10:40:13 +01:00
margin: 0;
2024-04-06 14:45:51 +10:00
width: 160px;
2024-04-03 10:40:13 +01:00
height: 100%;
background-color: white;
}
.body {
padding: 5px 20px;
2024-04-03 10:40:13 +01:00
}
2024-04-03 13:26:56 +01:00
a {
2024-04-03 10:40:13 +01:00
color: black;
}
2024-04-03 13:26:56 +01:00
img {
2024-04-03 10:40:13 +01:00
width: 150px;
height: 250px;
object-fit: cover;
}
2024-04-03 13:12:39 +01:00
.listing {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-right: 20px;
}
.pagination {
padding: 10px 0;
height: 20px;
2024-04-06 14:45:51 +10:00
font-weight: 700;
2024-04-03 13:12:39 +01:00
}
.pagination > div {
float: left;
}
.pagination > div:last-child {
float: right;
}
2024-04-03 10:40:13 +01:00
</style>
</head>
<body>
<div>
2024-02-28 18:37:13 +00:00
<div>
2024-04-03 10:40:13 +01:00
{% if current_user.is_authenticated or g.allow_anonymous %}
<nav>
2024-04-03 13:26:56 +01:00
<a href="/basic">
2024-04-06 14:45:51 +10:00
<span><h1>{{_('Home')}}</h1></span>
2024-04-03 13:26:56 +01:00
</a>
<div class="search">
<form role="search" action="{{url_for('basic.index')}}" method="GET">
2024-02-28 18:37:13 +00:00
<input type="text" id="query" name="query" placeholder="{{_('Search Library')}}" value="{{searchterm}}">
<span>
<button type="submit" id="query_submit">{{_('Search')}}</button>
</span>
2024-04-03 13:26:56 +01:00
</form>
</div>
2024-02-28 18:37:13 +00:00
{% if not current_user.is_anonymous %}
2024-04-03 13:26:56 +01:00
<a href="{{url_for('web.logout')}}">
2024-02-28 18:37:13 +00:00
<span>{{_('Logout')}}</span>
</a>
{% endif %}
2024-04-03 10:40:13 +01:00
</nav>
{% endif %}
2024-02-28 18:37:13 +00:00
</div>
2024-04-03 10:40:13 +01:00
</div>
<div class="body">
{% block body %}
{% endblock %}
</div>
</body>
2024-02-28 18:37:13 +00:00
</html>