mirror of
https://github.com/StefBuwalda/WebTech.git
synced 2025-10-30 19:29:58 +00:00
Changed default image so static/icons can be cleared without issue
This commit is contained in:
@@ -5,7 +5,7 @@ from flask_login import LoginManager # type: ignore
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
# App Config
|
# App Config
|
||||||
app = Flask(__name__)
|
app = Flask(__name__, instance_relative_config=True)
|
||||||
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///services.sqlite"
|
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///services.sqlite"
|
||||||
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False # Wat is dit?
|
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False # Wat is dit?
|
||||||
app.config["SECRET_KEY"] = "bvjchsygvduycgsyugc" # Andere secret key
|
app.config["SECRET_KEY"] = "bvjchsygvduycgsyugc" # Andere secret key
|
||||||
|
|||||||
@@ -10,20 +10,23 @@
|
|||||||
<div class="col" onclick="location.href='{{service.url}}';" style="cursor: pointer;">
|
<div class="col" onclick="location.href='{{service.url}}';" style="cursor: pointer;">
|
||||||
{{service["name"]}}
|
{{service["name"]}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-3 dots dropdown">
|
<div class="col-sm-3 dots dropdown">
|
||||||
<button class="btn btn-light py-0" type="button" id="threeDotDropdown" data-bs-toggle="dropdown" aria-expanded="false">
|
<button class="btn btn-light py-0" type="button" id="threeDotDropdown" data-bs-toggle="dropdown"
|
||||||
|
aria-expanded="false">
|
||||||
⋮
|
⋮
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu" aria-labelledby="threeDotDropdown">
|
<ul class="dropdown-menu" aria-labelledby="threeDotDropdown">
|
||||||
<li>
|
<li>
|
||||||
<a class="dropdown-item" href="{{ url_for('dash.edit_service', service_id=service.id) }}">Edit</a>
|
<a class="dropdown-item"
|
||||||
|
href="{{ url_for('dash.edit_service', service_id=service.id) }}">Edit</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<hr class="dropdown-divider">
|
<hr class="dropdown-divider">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<form action="{{ url_for('dash.delete_service', service_id=service.id) }}" method="POST" style="display:inline;">
|
<form action="{{ url_for('dash.delete_service', service_id=service.id) }}" method="POST"
|
||||||
|
style="display:inline;">
|
||||||
<button style="color: red;" type="submit" class="dropdown-item">Delete</button>
|
<button style="color: red;" type="submit" class="dropdown-item">Delete</button>
|
||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
@@ -32,7 +35,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-9" onclick="location.href='{{service.url}}';" style="cursor: pointer;">
|
<div class="col-sm-9" onclick="location.href='{{service.url}}';" style="cursor: pointer;">
|
||||||
<img class="fit-picture" src="{{ url_for('static', filename='icons/'+service['icon'])}}">
|
<img class="fit-picture" src="{{ url_for('static', filename='icons/'+service['icon'])}}"
|
||||||
|
onerror="this.onerror=null; this.src='{{url_for('static', filename='google.png')}}';">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -43,4 +47,4 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{%endblock%}
|
{%endblock%}
|
||||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
BIN
application/static/icons/1/vaultwarden.png
Normal file
BIN
application/static/icons/1/vaultwarden.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.5 KiB |
Reference in New Issue
Block a user