1
0
Derivar 0
pull/2/head
Noah 2014-06-24 18:59:00 +00:00
ascendente 200befc65f
cometimento 7e0fc42700
2 ficheiros modificados com 8 adições e 4 eliminações

Ver ficheiro

@ -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>

Ver ficheiro

@ -98,6 +98,10 @@ function RophakoUpload() {
window.location = data.msg;
}
},
error: function() {
window.alert("Upload error!");
$("#upload-button").removeAttr("disabled");
},
});
};
@ -188,4 +192,4 @@ function RophakoUpload() {
$(document).ready(function() {
new RophakoUpload().ready();
});
});