Show More
@@ -61,6 +61,7 b' class ForksController(BaseRepoController' | |||||
61 | c.repo_groups_choices = map(lambda k: unicode(k[0]), c.repo_groups) |
|
61 | c.repo_groups_choices = map(lambda k: unicode(k[0]), c.repo_groups) | |
62 | choices, c.landing_revs = ScmModel().get_repo_landing_revs() |
|
62 | choices, c.landing_revs = ScmModel().get_repo_landing_revs() | |
63 | c.landing_revs_choices = choices |
|
63 | c.landing_revs_choices = choices | |
|
64 | c.can_update = RhodeCodeUi.get_by_key(RhodeCodeUi.HOOK_UPDATE).ui_active | |||
64 |
|
65 | |||
65 | def __load_data(self, repo_name=None): |
|
66 | def __load_data(self, repo_name=None): | |
66 | """ |
|
67 | """ | |
@@ -96,8 +97,6 b' class ForksController(BaseRepoController' | |||||
96 | c.stats_percentage = '%.2f' % ((float((last_rev)) / |
|
97 | c.stats_percentage = '%.2f' % ((float((last_rev)) / | |
97 | c.repo_last_rev) * 100) |
|
98 | c.repo_last_rev) * 100) | |
98 |
|
99 | |||
99 | c.can_update = RhodeCodeUi.get_by_key(RhodeCodeUi.HOOK_UPDATE).ui_active |
|
|||
100 |
|
||||
101 | defaults = RepoModel()._get_defaults(repo_name) |
|
100 | defaults = RepoModel()._get_defaults(repo_name) | |
102 | # alter the description to indicate a fork |
|
101 | # alter the description to indicate a fork | |
103 | defaults['description'] = ('fork of repository: %s \n%s' |
|
102 | defaults['description'] = ('fork of repository: %s \n%s' |
General Comments 0
You need to be logged in to leave comments.
Login now