Small tweaks
This commit is contained in:
parent
200befc65f
commit
7e0fc42700
|
@ -14,11 +14,11 @@
|
|||
|
||||
<div class="blog-author">
|
||||
{% if post["avatar"] %}
|
||||
<img src="/static/avatars/{{ post['avatar'] }}">
|
||||
<img src="/static/avatars/{{ post['avatar'] }}" alt="{{ post['profile']['name'] }}">
|
||||
{% elif post["photo"] %}
|
||||
<img src="{{ post['photo_url'] }}/{{ post['photo'] }}">
|
||||
<img src="{{ post['photo_url'] }}/{{ post['photo'] }}" alt="{{ post['profile']['name'] }}">
|
||||
{% else %}
|
||||
<img src="/static/avatars/default.png">
|
||||
<img src="/static/avatars/default.png" alt="{{ post['profile']['name'] }}">
|
||||
{% endif %}
|
||||
<br>
|
||||
|
||||
|
|
|
@ -98,6 +98,10 @@ function RophakoUpload() {
|
|||
window.location = data.msg;
|
||||
}
|
||||
},
|
||||
error: function() {
|
||||
window.alert("Upload error!");
|
||||
$("#upload-button").removeAttr("disabled");
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user