diff --git a/media/pic/default.png b/apps/member/static/member/img/default_picture.png similarity index 100% rename from media/pic/default.png rename to apps/member/static/member/img/default_picture.png diff --git a/apps/note/templates/note/conso_form.html b/apps/note/templates/note/conso_form.html index 07c63488984c08ee80d70de782a3f950ba18e360..d5914055f184728456dc4008d645e231303929b6 100644 --- a/apps/note/templates/note/conso_form.html +++ b/apps/note/templates/note/conso_form.html @@ -15,7 +15,7 @@ SPDX-License-Identifier: GPL-3.0-or-later <div class="col"> <div class="card bg-light border-success mb-4 text-center"> <a id="profile_pic_link" href="#"> - <img src="/media/pic/default.png" + <img src="{% static "member/img/default_picture.png" %}" id="profile_pic" alt="" class="card-img-top"> </a> <div class="card-body text-center text-break"> diff --git a/apps/note/templates/note/transaction_form.html b/apps/note/templates/note/transaction_form.html index acb09bebe7e1e476a3b7bc73e9a1c56799c06ae3..15478219ac8f06aaeda4b81014cd2c7c5617ec27 100644 --- a/apps/note/templates/note/transaction_form.html +++ b/apps/note/templates/note/transaction_form.html @@ -38,7 +38,7 @@ SPDX-License-Identifier: GPL-2.0-or-later {# Preview note profile (picture, username and balance) #} <div class="col-md-3" id="note_infos_div"> <div class="card bg-light border-success shadow mb-4"> - <a id="profile_pic_link" href="#"><img src="/media/pic/default.png" + <a id="profile_pic_link" href="#"><img src="{% static "member/img/default_picture.png" %}" id="profile_pic" alt="" class="img-fluid rounded mx-auto"></a> <div class="card-body text-center"> <span id="user_note"></span> diff --git a/note_kfet/static/js/base.js b/note_kfet/static/js/base.js index a20c72bc8ef05a50991587b9217ca59a79e0f5f1..8315f01a58387f2cfcf954b503735f7daeb74de8 100644 --- a/note_kfet/static/js/base.js +++ b/note_kfet/static/js/base.js @@ -122,7 +122,7 @@ function displayStyle (note) { */ function displayNote (note, alias, user_note_field = null, profile_pic_field = null) { if (!note.display_image) { - note.display_image = '/media/pic/default.png'; + note.display_image = '/static/member/img/default_picture.png'; } let img = note.display_image; if (alias !== note.name && note.name) diff --git a/note_kfet/static/js/consos.js b/note_kfet/static/js/consos.js index fc04b2b2ac86cde6dc9b68b3679bbfad7058f227..ec5a0940a24e04cda9ecbde58a833284edb05329 100644 --- a/note_kfet/static/js/consos.js +++ b/note_kfet/static/js/consos.js @@ -158,7 +158,7 @@ function reset() { $("#consos_list").html(""); $("#note").val(""); $("#note").attr("data-original-title", "").tooltip("hide"); - $("#profile_pic").attr("src", "/media/pic/default.png"); + $("#profile_pic").attr("src", "/static/member/img/default_picture.png"); $("#profile_pic_link").attr("href", "#"); refreshHistory(); refreshBalance(); diff --git a/note_kfet/static/js/transfer.js b/note_kfet/static/js/transfer.js index 28b28aefcab7fcde64993ed98ecde5d1b592225a..cbae74568b6899cea1e4b1353c5680b976283177 100644 --- a/note_kfet/static/js/transfer.js +++ b/note_kfet/static/js/transfer.js @@ -40,7 +40,7 @@ function reset(refresh=true) { $("#first_name").val(""); $("#bank").val(""); $("#user_note").val(""); - $("#profile_pic").attr("src", "/media/pic/default.png"); + $("#profile_pic").attr("src", "/static/member/img/default_picture.png"); $("#profile_pic_link").attr("href", "#"); if (refresh) { refreshBalance();