aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-08-10 00:45:40 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-08-10 00:45:40 +0200
commita8a003a636ee34505b127f83e534336a13bc505a (patch)
treef271b2b3534338b84d0d6bf41c8e70fb45a65460
parentWhen displaying all articles (unread + read) titles of unread articles are em... (diff)
downloadnewspipe-a8a003a636ee34505b127f83e534336a13bc505a.tar.gz
newspipe-a8a003a636ee34505b127f83e534336a13bc505a.tar.bz2
newspipe-a8a003a636ee34505b127f83e534336a13bc505a.zip
Bold/Unbold the title of the article with jQuery.
-rw-r--r--pyaggr3g470r/static/js/articles.js2
-rw-r--r--pyaggr3g470r/templates/home.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/static/js/articles.js b/pyaggr3g470r/static/js/articles.js
index 4f27b802..51273f3d 100644
--- a/pyaggr3g470r/static/js/articles.js
+++ b/pyaggr3g470r/static/js/articles.js
@@ -40,6 +40,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Requires jQuery') }
}
else {
// here, filter == "all"
+ $(this).parent().parent().parent().children("td:nth-child(2)").css( "font-weight", "bold" );
$(this).removeClass('glyphicon-unchecked').addClass('glyphicon-check');
$("#unread-"+feed_id).text(parseInt($("#unread-"+feed_id).text()) + 1);
}
@@ -59,6 +60,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Requires jQuery') }
}
else {
// here, filter == "all"
+ $(this).parent().parent().parent().children("td:nth-child(2)").css( "font-weight", "normal" );
$(this).removeClass('glyphicon-check').addClass('glyphicon-unchecked');
if (parseInt($("#unread-"+feed_id).text()) == 1) {
$("#unread-"+feed_id).remove();
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html
index 551b2d72..708e491e 100644
--- a/pyaggr3g470r/templates/home.html
+++ b/pyaggr3g470r/templates/home.html
@@ -95,10 +95,8 @@
{% for article in articles %}
<tr data-article="{{ article.id }}" data-feed="{{ article.feed_id }}">
<td><a href="/article/redirect/{{ article.id}}" target="_blank">{{ article.source.title|safe }}</a></td>
- <td>
- {% if filter_ == 'all' and article.readed == False %}<b>{% endif %}
+ <td {%if filter_ == 'all' and article.readed == False %}style='font-weight:bold'{% endif %}>
<a href="/article/{{ article.id }}">{{ article.title|safe }}</a>
- {% if filter_ == 'all' and article.readed == False %}</b>{% endif %}
</td>
<td class="date">{{ article.date|datetime }}</a></td>
<td>
bgstack15