Browse Source

Small tweaks

pull/2/head
Noah Petherbridge 5 years ago
parent
commit
7e0fc42700
2 changed files with 8 additions and 4 deletions
  1. +3
    -3
      rophako/www/blog/entry.inc.html
  2. +5
    -1
      rophako/www/rophako/multiupload.js

+ 3
- 3
rophako/www/blog/entry.inc.html View File

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


+ 5
- 1
rophako/www/rophako/multiupload.js View File

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