Example #1
0
    def get(self):
        recent_articles = controller.get_articles(self, order='-published_date', limit=4)
        popular_articles = controller.get_articles(self, order='-views', limit=4)

        self.render('home.html',
            popular_articles=popular_articles,
            recent_articles=recent_articles)
Example #2
0
    def get(self):
        recent_articles = controller.get_articles(self,
                                                  order='-published_date',
                                                  limit=4)
        popular_articles = controller.get_articles(self,
                                                   order='-views',
                                                   limit=4)

        self.render('home.html',
                    popular_articles=popular_articles,
                    recent_articles=recent_articles)
Example #3
0
    def get(self):
        articles = controller.get_articles(self, order='-created', limit=5)

        self.render('home.html',
            articles=articles)
Example #4
0
 def get(self):
     self.render('articles.html',
         articles=controller.get_articles(self, "-last_modified", 10, False))
Example #5
0
    def get(self):
        articles = controller.get_articles(self, order='-views', limit=30)

        self.render('popular.html',
            articles=articles)
Example #6
0
    def get(self):
        articles = controller.get_articles(self, order='-published_date', limit=30)

        self.render('recent.html',
            articles=articles)
Example #7
0
 def get(self):
     self.render('articles.html',
         articles=controller.get_articles(self, "title", include_content=False))
Example #8
0
    def get(self):
        articles = controller.get_articles(self, order='-views', limit=30)

        self.render('popular.html', articles=articles)
Example #9
0
    def get(self):
        articles = controller.get_articles(self,
                                           order='-published_date',
                                           limit=30)

        self.render('recent.html', articles=articles)
Example #10
0
 def get(self):
     self.render('articles.html',
                 articles=controller.get_articles(self,
                                                  "title",
                                                  include_content=False))