Show More
@@ -51,6 +51,7 b' try:' | |||||
51 | except ImportError: |
|
51 | except ImportError: | |
52 | #python 2.5 compatibility |
|
52 | #python 2.5 compatibility | |
53 | import simplejson as json |
|
53 | import simplejson as json | |
|
54 | ||||
54 | log = logging.getLogger(__name__) |
|
55 | log = logging.getLogger(__name__) | |
55 |
|
56 | |||
56 |
|
57 | |||
@@ -138,10 +139,10 b' class SummaryController(BaseRepoControll' | |||||
138 | lang_stats_d = json.loads(stats.languages) |
|
139 | lang_stats_d = json.loads(stats.languages) | |
139 | c.commit_data = stats.commit_activity |
|
140 | c.commit_data = stats.commit_activity | |
140 | c.overview_data = stats.commit_activity_combined |
|
141 | c.overview_data = stats.commit_activity_combined | |
141 |
|
142 | |||
142 |
lang_stats = |
|
143 | lang_stats = ((x, {"count": y, | |
143 | "desc": LANGUAGES_EXTENSIONS_MAP.get(x)}) |
|
144 | "desc": LANGUAGES_EXTENSIONS_MAP.get(x)}) | |
144 |
for x, y in lang_stats_d.items() |
|
145 | for x, y in lang_stats_d.items()) | |
145 |
|
146 | |||
146 | c.trending_languages = json.dumps(OrderedDict( |
|
147 | c.trending_languages = json.dumps(OrderedDict( | |
147 | sorted(lang_stats, reverse=True, |
|
148 | sorted(lang_stats, reverse=True, | |
@@ -161,7 +162,7 b' class SummaryController(BaseRepoControll' | |||||
161 | c.overview_data = json.dumps([[ts_min_y, 0], [ts_max_y, 10]]) |
|
162 | c.overview_data = json.dumps([[ts_min_y, 0], [ts_max_y, 10]]) | |
162 | c.trending_languages = json.dumps({}) |
|
163 | c.trending_languages = json.dumps({}) | |
163 | c.no_data = True |
|
164 | c.no_data = True | |
164 |
|
165 | |||
165 | c.enable_downloads = dbrepo.enable_downloads |
|
166 | c.enable_downloads = dbrepo.enable_downloads | |
166 | if c.enable_downloads: |
|
167 | if c.enable_downloads: | |
167 | c.download_options = self._get_download_links(c.rhodecode_repo) |
|
168 | c.download_options = self._get_download_links(c.rhodecode_repo) |
General Comments 0
You need to be logged in to leave comments.
Login now