custom url and also asset import fix
This commit is contained in:
@@ -964,8 +964,8 @@ def assets():
|
|||||||
file.save(os.path.join(current_app.config["MISC_UPLOAD_FOLDER"], fname+str(i)+"."+ftype))
|
file.save(os.path.join(current_app.config["MISC_UPLOAD_FOLDER"], fname+str(i)+"."+ftype))
|
||||||
|
|
||||||
if "images_zip" in request.files:
|
if "images_zip" in request.files:
|
||||||
file = request.files["images_zip"]
|
images_file = request.files["images_zip"]
|
||||||
with zipfile.ZipFile(file, "r") as zipf:
|
with zipfile.ZipFile(images_file, "r") as zipf:
|
||||||
for f in zipf.namelist():
|
for f in zipf.namelist():
|
||||||
zipf.extract(f)
|
zipf.extract(f)
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
{% if pins %}
|
{% if pins %}
|
||||||
<div class="heading">Pinned</div>
|
<div class="heading">Pinned</div>
|
||||||
{% for pin in pins %}
|
{% for pin in pins %}
|
||||||
<div class="navitem">> {% if pin[22] %}<a href="{{ url_for('home.page', mid=pin[22]) }}">View Page</a>{%else%}<a href="{{ url_for('home.page', mid=pin[0]) }}">{{ pin[3]|safe }}</a>{%endif%}</div>
|
<div class="navitem">> {% if pin[22] %}<a href="{{ url_for('home.page', mid=pin[22]) }}">{{ pin[3]|safe }}</a>{%else%}<a href="{{ url_for('home.page', mid=pin[0]) }}">{{ pin[3]|safe }}</a>{%endif%}</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user