Show More
@@ -33,6 +33,7 b' from pylons.controllers.util import redi' | |||||
33 | from pylons.i18n.translation import _ |
|
33 | from pylons.i18n.translation import _ | |
34 | from webob.exc import HTTPForbidden, HTTPNotFound, HTTPBadRequest |
|
34 | from webob.exc import HTTPForbidden, HTTPNotFound, HTTPBadRequest | |
35 |
|
35 | |||
|
36 | import rhodecode | |||
36 | from rhodecode.lib import auth, helpers as h |
|
37 | from rhodecode.lib import auth, helpers as h | |
37 | from rhodecode.lib.auth import ( |
|
38 | from rhodecode.lib.auth import ( | |
38 | LoginRequired, HasPermissionAllDecorator, |
|
39 | LoginRequired, HasPermissionAllDecorator, | |
@@ -42,7 +43,7 b' from rhodecode.lib.base import BaseRepoC' | |||||
42 | from rhodecode.lib.ext_json import json |
|
43 | from rhodecode.lib.ext_json import json | |
43 | from rhodecode.lib.exceptions import AttachedForksError |
|
44 | from rhodecode.lib.exceptions import AttachedForksError | |
44 | from rhodecode.lib.utils import action_logger, repo_name_slug, jsonify |
|
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 | from rhodecode.lib.vcs import RepositoryError |
|
47 | from rhodecode.lib.vcs import RepositoryError | |
47 | from rhodecode.model.db import ( |
|
48 | from rhodecode.model.db import ( | |
48 | User, Repository, UserFollowing, RepoGroup, RepositoryField) |
|
49 | User, Repository, UserFollowing, RepoGroup, RepositoryField) | |
@@ -779,6 +780,8 b' class ReposController(BaseRepoController' | |||||
779 | c.repo_info = self._load_repo(repo_name) |
|
780 | c.repo_info = self._load_repo(repo_name) | |
780 | defaults = self._vcs_form_defaults(repo_name) |
|
781 | defaults = self._vcs_form_defaults(repo_name) | |
781 | c.inherit_global_settings = defaults['inherit_global_settings'] |
|
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 | return htmlfill.render( |
|
786 | return htmlfill.render( | |
784 | render('admin/repos/repo_edit.html'), |
|
787 | render('admin/repos/repo_edit.html'), |
General Comments 0
You need to be logged in to leave comments.
Login now