Ejemplo n.º 1
0
 def index(self):
     global repo
     global config
     tmpl = env.get_template('base.html')
     try:
         return tmpl.render(repo=repo,config=config,STATIC_URL='/static/')
     except Exception, e:
         return env.get_template('error.html').render(exception=e)
Ejemplo n.º 2
0
 def commits(self, **data):
     global repo
     tmpl = env.get_template('_commits.html')
     try:
         skip = data['skip']
     except:
         skip = 0
     return tmpl.render(repo=repo, skip=skip, STATIC_URL='/static/')
Ejemplo n.º 3
0
 def details(self):
     global repo
     tmpl = env.get_template('_details.html')
     return tmpl.render(repo=repo,STATIC_URL='/static/')