autoversion css
This commit is contained in:
parent
161abbe874
commit
f489f5f6c5
|
@ -12,6 +12,7 @@ import zlib
|
||||||
from pony.flask import Pony
|
from pony.flask import Pony
|
||||||
from flask import Flask, request, redirect, url_for, render_template, Response, session, abort, flash
|
from flask import Flask, request, redirect, url_for, render_template, Response, session, abort, flash
|
||||||
from flask_caching import Cache
|
from flask_caching import Cache
|
||||||
|
from flaskext.autoversion import Autoversion
|
||||||
|
|
||||||
from .models import *
|
from .models import *
|
||||||
|
|
||||||
|
@ -39,7 +40,8 @@ app.config["PONY"] = {
|
||||||
'create_db': True
|
'create_db': True
|
||||||
}
|
}
|
||||||
app.config["CACHE_TYPE"] = "simple"
|
app.config["CACHE_TYPE"] = "simple"
|
||||||
|
app.autoversion = True
|
||||||
|
av = Autoversion(app)
|
||||||
cache = Cache(app)
|
cache = Cache(app)
|
||||||
|
|
||||||
# this local cache is risky business if app hosting is done with subprocesses as it will not sync. Waitress is fine though
|
# this local cache is risky business if app hosting is done with subprocesses as it will not sync. Waitress is fine though
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
flask>=1.1.2
|
flask>=1.1.2
|
||||||
pony>=0.7.13
|
pony>=0.7.13
|
||||||
waitress>=1.4.4
|
waitress>=1.4.4
|
||||||
flask-caching>=1.9.0
|
flask-caching>=1.9.0
|
||||||
|
Flask-Autoversion>=0.1.0
|
|
@ -1,5 +1,5 @@
|
||||||
table.dataTable.table-sm > thead > tr > th :not(.sorting_disabled) {
|
table.dataTable.table-sm > thead > tr > th :not(.sorting_disabled) {
|
||||||
padding-right: 0;
|
padding: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTable > thead > tr > th[class*="sort"]:before,
|
.dataTable > thead > tr > th[class*="sort"]:before,
|
||||||
|
@ -7,6 +7,6 @@ table.dataTable.table-sm > thead > tr > th :not(.sorting_disabled) {
|
||||||
content: "" !important;
|
content: "" !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.dataTable.table-sm > thead > tr > th {
|
th {
|
||||||
padding: 1px !important;
|
padding: 1px !important;
|
||||||
}
|
}
|
|
@ -39,7 +39,7 @@
|
||||||
setInterval(update, 30000);
|
setInterval(update, 30000);
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename="static.css") }}"/>
|
<link rel="stylesheet" type="text/css" href="{{ static_autoversion("static.css") }}"/>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<input id="searchbox" class="form-control" type="text" placeholder="Search">
|
<input id="searchbox" class="form-control" type="text" placeholder="Search">
|
||||||
|
|
Loading…
Reference in New Issue