oshipka update with default favicons
This commit is contained in:
parent
3362e6131c
commit
1048122def
@ -5,22 +5,45 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{{ _("Project") }}</title>
|
||||
<link rel="icon" type="image/png" sizes="32x32"
|
||||
href="{{ url_for('static', filename='favicons/favicon-32x32.png') }}">
|
||||
<link rel="icon" type="image/png" sizes="96x96"
|
||||
href="{{ url_for('static', filename='favicons/favicon-96x96.png') }}">
|
||||
<link rel="icon" type="image/png" sizes="16x16"
|
||||
href="{{ url_for('static', filename='favicons/favicon-16x16.png') }}">
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: "Open Sans", Arial, sans-serif;
|
||||
color: #444;
|
||||
color: #ddd;
|
||||
padding: 0 1em;
|
||||
background-color:#222;
|
||||
}
|
||||
|
||||
main {
|
||||
max-width: 1200px;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
a:link {
|
||||
color: green;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: green;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: yellow;
|
||||
}
|
||||
|
||||
a:active {
|
||||
color: red;
|
||||
}
|
||||
|
||||
nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
background: white;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@ -145,12 +168,12 @@
|
||||
}
|
||||
|
||||
table tr {
|
||||
background-color: #fff;
|
||||
background-color: #111;
|
||||
border-top: 1px solid #aaa;
|
||||
}
|
||||
|
||||
table tr:nth-child(2n) {
|
||||
background-color: #f5f5f5;
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
table th, table td {
|
||||
|
@ -207,6 +207,10 @@ def register_filters(app):
|
||||
dt = solve_query(dt)
|
||||
return dt.strftime(formatting)
|
||||
|
||||
@app.template_filter('to_dt')
|
||||
def to_dt(dt_str, formatting="%Y%m%d"):
|
||||
return datetime.datetime.strptime(dt_str, formatting)
|
||||
|
||||
@app.template_filter('to_tz')
|
||||
def to_tz(dt, human_tz="utc", formatting='%H:%M', include_offset=True):
|
||||
if type(dt) is str:
|
||||
|
@ -5,6 +5,8 @@
|
||||
<source src="{{ url_for('oshipka_bp.get_media', filepath=instance.[[ column.name ]]) }}" type="video/mp4">
|
||||
<source src="{{ url_for('oshipka_bp.get_media', filepath=instance.[[ column.name ]]) }}" type="video/webm">
|
||||
</video>
|
||||
[%- elif column.type in ['audio'] %]
|
||||
<audio src="{{ url_for('oshipka_bp.get_media', filepath=instance.[[ column.name ]]) }}" controls id="display-[[ name|camel_to_snake ]]-[[ column.name ]]"></audio>
|
||||
[%- elif column.type in ['relationship'] %]
|
||||
[%- if column.multiple %]
|
||||
<li id="display-[[ name|camel_to_snake ]]-[[ column.name ]]"><strong>{{ _("[[ column.name|pluralize ]]") }}</strong>: {{ instance.[[ column.name|pluralize ]] }}</li>
|
||||
|
Loading…
Reference in New Issue
Block a user