def maintainer_repo_feed(maintainer, repo): return flask.render_template('maintainer-repo-feed.html', maintainer=maintainer, repo=repo, history=smear_timestamps( get_db().get_maintainer_feed( maintainer=maintainer, repo=repo, limit=config['HISTORY_PER_PAGE'])))
def maintainer_repo_feed_atom(maintainer, repo): return (flask.render_template( 'maintainer-repo-feed-atom.xml', maintainer=maintainer, repo=repo, history=smear_timestamps(get_db().get_maintainer_feed( maintainer=maintainer, repo=repo, timespan=datetime.timedelta(weeks=4), limit=config['HISTORY_PER_PAGE']))), { 'Content-type': 'application/atom+xml' })
def maintainer_repo_feed(maintainer, repo): autorefresh = flask.request.args.to_dict().get('autorefresh') return flask.render_template('maintainer-repo-feed.html', maintainer=maintainer, repo=repo, history=smear_timestamps( get_db().get_maintainer_feed( maintainer=maintainer, repo=repo, limit=config['HISTORY_PER_PAGE'])), autorefresh=autorefresh)