mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 16:45:41 +01:00
Update pinry tag handler and spinner
This commit is contained in:
@@ -201,3 +201,10 @@ a {
|
|||||||
.form-actions {
|
.form-actions {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.spinner {
|
||||||
|
background: url('../img/loader.gif');
|
||||||
|
width: 31px;
|
||||||
|
height: 31px;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|||||||
@@ -14,9 +14,13 @@ function renderTemplate(templateId, context) {
|
|||||||
|
|
||||||
|
|
||||||
function cleanTags(tags) {
|
function cleanTags(tags) {
|
||||||
if (typeof tags === 'string') {
|
if (typeof tags === 'string' && tags.length > 0) {
|
||||||
tags = tags.split(',');
|
tags = tags.split(/[\s,]+/);
|
||||||
for (var i in tags) tags[i] = tags[i].trim();
|
for (var i in tags) {
|
||||||
|
tags[i] = tags[i].trim();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
return tags;
|
return tags;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
\ \:\ \__\/ \ \:\ \ \:\ \__\/
|
\ \:\ \__\/ \ \:\ \ \:\ \__\/
|
||||||
\__\/ \__\/ \__\/ -->
|
\__\/ \__\/ \__\/ -->
|
||||||
|
|
||||||
<title>{{ SITE_NAME }} - {% block title %}{% endblock %}</title>
|
<title>{% block title %}{{ SITE_NAME }}{% endblock %}</title>
|
||||||
|
|
||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Monoton"/>
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Monoton"/>
|
||||||
|
|||||||
@@ -1,14 +1,6 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}Recent Pins{% endblock %}
|
|
||||||
|
|
||||||
{% block yield %}
|
{% block yield %}
|
||||||
<div id="pins"></div>
|
<div id="pins"></div>
|
||||||
<div class="container spinner">
|
<div class="spinner"></div>
|
||||||
<div class="row">
|
|
||||||
<div class="span12" align="center">
|
|
||||||
<img src="{{ STATIC_URL }}img/loader.gif" alt="Loader">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user