##// END OF EJS Templates
settings: Add 'labs_active' flag to template context.
Martin Bornhold -
r357:bd7af94f default
parent child Browse files
Show More
@@ -33,6 +33,7 b' from pylons.controllers.util import redi'
33 33 from pylons.i18n.translation import _
34 34 from webob.exc import HTTPForbidden, HTTPNotFound, HTTPBadRequest
35 35
36 import rhodecode
36 37 from rhodecode.lib import auth, helpers as h
37 38 from rhodecode.lib.auth import (
38 39 LoginRequired, HasPermissionAllDecorator,
@@ -42,7 +43,7 b' from rhodecode.lib.base import BaseRepoC'
42 43 from rhodecode.lib.ext_json import json
43 44 from rhodecode.lib.exceptions import AttachedForksError
44 45 from rhodecode.lib.utils import action_logger, repo_name_slug, jsonify
45 from rhodecode.lib.utils2 import safe_int
46 from rhodecode.lib.utils2 import safe_int, str2bool
46 47 from rhodecode.lib.vcs import RepositoryError
47 48 from rhodecode.model.db import (
48 49 User, Repository, UserFollowing, RepoGroup, RepositoryField)
@@ -779,6 +780,8 b' class ReposController(BaseRepoController'
779 780 c.repo_info = self._load_repo(repo_name)
780 781 defaults = self._vcs_form_defaults(repo_name)
781 782 c.inherit_global_settings = defaults['inherit_global_settings']
783 c.labs_active = str2bool(
784 rhodecode.CONFIG.get('labs_settings_active', 'false'))
782 785
783 786 return htmlfill.render(
784 787 render('admin/repos/repo_edit.html'),
General Comments 0
You need to be logged in to leave comments. Login now