Browse Source

Small tweaks

pull/2/head
Noah Petherbridge 7 years ago
parent
commit
7e0fc42700
  1. 6
      rophako/www/blog/entry.inc.html
  2. 6
      rophako/www/rophako/multiupload.js

6
rophako/www/blog/entry.inc.html

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

6
rophako/www/rophako/multiupload.js

@ -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();
});
});

Loading…
Cancel
Save