mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 09:12:11 +01:00 
			
		
		
		
	Move default profile picture in member app
This commit is contained in:
		| 
		 Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB  | 
@@ -15,7 +15,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
 | 
				
			|||||||
                <div class="col">
 | 
					                <div class="col">
 | 
				
			||||||
                    <div class="card bg-light border-success mb-4 text-center">
 | 
					                    <div class="card bg-light border-success mb-4 text-center">
 | 
				
			||||||
                        <a id="profile_pic_link" href="#">
 | 
					                        <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">
 | 
					                                 id="profile_pic" alt="" class="card-img-top">
 | 
				
			||||||
                        </a>
 | 
					                        </a>
 | 
				
			||||||
                        <div class="card-body text-center text-break">
 | 
					                        <div class="card-body text-center text-break">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -38,7 +38,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
 | 
				
			|||||||
        {#  Preview note profile (picture, username and balance) #}
 | 
					        {#  Preview note profile (picture, username and balance) #}
 | 
				
			||||||
        <div class="col-md-3" id="note_infos_div">
 | 
					        <div class="col-md-3" id="note_infos_div">
 | 
				
			||||||
            <div class="card bg-light border-success shadow mb-4">
 | 
					            <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>
 | 
					                        id="profile_pic" alt="" class="img-fluid rounded mx-auto"></a>
 | 
				
			||||||
                <div class="card-body text-center">
 | 
					                <div class="card-body text-center">
 | 
				
			||||||
                    <span id="user_note"></span>
 | 
					                    <span id="user_note"></span>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -122,7 +122,7 @@ function displayStyle (note) {
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
function displayNote (note, alias, user_note_field = null, profile_pic_field = null) {
 | 
					function displayNote (note, alias, user_note_field = null, profile_pic_field = null) {
 | 
				
			||||||
    if (!note.display_image) {
 | 
					    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;
 | 
					    let img = note.display_image;
 | 
				
			||||||
    if (alias !== note.name && note.name)
 | 
					    if (alias !== note.name && note.name)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -158,7 +158,7 @@ function reset() {
 | 
				
			|||||||
    $("#consos_list").html("");
 | 
					    $("#consos_list").html("");
 | 
				
			||||||
    $("#note").val("");
 | 
					    $("#note").val("");
 | 
				
			||||||
    $("#note").attr("data-original-title", "").tooltip("hide");
 | 
					    $("#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", "#");
 | 
					    $("#profile_pic_link").attr("href", "#");
 | 
				
			||||||
    refreshHistory();
 | 
					    refreshHistory();
 | 
				
			||||||
    refreshBalance();
 | 
					    refreshBalance();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -40,7 +40,7 @@ function reset(refresh=true) {
 | 
				
			|||||||
    $("#first_name").val("");
 | 
					    $("#first_name").val("");
 | 
				
			||||||
    $("#bank").val("");
 | 
					    $("#bank").val("");
 | 
				
			||||||
    $("#user_note").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", "#");
 | 
					    $("#profile_pic_link").attr("href", "#");
 | 
				
			||||||
    if (refresh) {
 | 
					    if (refresh) {
 | 
				
			||||||
        refreshBalance();
 | 
					        refreshBalance();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user