- category = category[1]
- if category?
- return $(this).Readings 'list',
-# category: category
-# url: Readings.config.get('wlurl') + "/api/#{category}"
- sql: "SELECT * FROM tag WHERE category=? ORDER BY sort_key"
- params: [category]
- filter: (Readings.config.get('show_filter').indexOf(category) >= 0)
- mapper: (rec) -> new Readings.Tag(rec, category)
- dividers: (Readings.config.get('show_dividers').indexOf(category) >= 0)
+ $('h1',this).text Readings.config.get('categories')[category]
+ return $(this).Readings 'list',
+ category: category
+ #url: Readings.config.get('wlurl') + "/api/#{category}"
+ sql: "SELECT * FROM tag WHERE category=? ORDER BY sort_key"
+ params: [category]
+ filter: (Readings.config.get('show_filter').indexOf(category) >= 0)
+ mapper: (rec) -> new Readings.Tag(rec, category)
+ dividers: (Readings.config.get('show_dividers').indexOf(category) >= 0)