Skip to content

Commit

Permalink
special message when no unread articles
Browse files Browse the repository at this point in the history
  • Loading branch information
mboinet committed May 25, 2013
1 parent 87697e7 commit f309dda
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/scripts/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,12 @@ define(['jquery', 'models', 'templates','conf','utils'],

if (this.collection.length == 0){
// no elements in the collection
this.$lv.html(tpl.roListElement({text: "No articles"}));

// message depending on options
var msg = models.settingsModel.get("hideEmptyCategories") ?
"No unread articles" :"No articles" ;

this.$lv.html(tpl.roListElement({text: msg}));
this.$lv.listview("refresh");
}

Expand Down

0 comments on commit f309dda

Please sign in to comment.