Files
@ 50a39f923f31
Branch filter:
Location: kallithea/pylons_app/controllers/branches.py - annotation
50a39f923f31
752 B
text/x-python
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
aec4c0071cb3 aec4c0071cb3 20dc7a5eb748 aec4c0071cb3 aec4c0071cb3 aec4c0071cb3 20dc7a5eb748 20dc7a5eb748 b68b2246e5a6 20dc7a5eb748 aec4c0071cb3 aec4c0071cb3 aec4c0071cb3 b68b2246e5a6 b68b2246e5a6 20dc7a5eb748 b68b2246e5a6 b68b2246e5a6 aec4c0071cb3 20dc7a5eb748 20dc7a5eb748 20dc7a5eb748 20dc7a5eb748 20dc7a5eb748 | import logging
from pylons import tmpl_context as c, app_globals as g, session, request, config, url
from pylons.controllers.util import abort, redirect
from pylons_app.lib.base import BaseController, render
from pylons_app.lib.utils import get_repo_slug
from pylons_app.model.hg_model import HgModel
from pylons_app.lib.auth import LoginRequired
log = logging.getLogger(__name__)
class BranchesController(BaseController):
@LoginRequired()
def __before__(self):
super(BranchesController, self).__before__()
def index(self):
hg_model = HgModel()
c.repo_info = hg_model.get_repo(c.repo_name)
c.repo_branches = c.repo_info.branches
return render('branches/branches.html')
|