Show More
@@ -113,6 +113,7 class SummaryController(BaseController): | |||||
113 |
|
113 | |||
114 |
|
114 | |||
115 | if stats and stats.languages: |
|
115 | if stats and stats.languages: | |
|
116 | c.no_data = False | |||
116 | lang_stats = json.loads(stats.languages) |
|
117 | lang_stats = json.loads(stats.languages) | |
117 | c.commit_data = stats.commit_activity |
|
118 | c.commit_data = stats.commit_activity | |
118 | c.overview_data = stats.commit_activity_combined |
|
119 | c.overview_data = stats.commit_activity_combined | |
@@ -123,8 +124,9 class SummaryController(BaseController): | |||||
123 | ) |
|
124 | ) | |
124 | else: |
|
125 | else: | |
125 | c.commit_data = json.dumps({}) |
|
126 | c.commit_data = json.dumps({}) | |
126 | c.overview_data = json.dumps([[ts_min_y, 0], [ts_max_y, 0] ]) |
|
127 | c.overview_data = json.dumps([[ts_min_y, 0], [ts_max_y, 10] ]) | |
127 | c.trending_languages = json.dumps({}) |
|
128 | c.trending_languages = json.dumps({}) | |
|
129 | c.no_data = True | |||
128 |
|
130 | |||
129 | return render('summary/summary.html') |
|
131 | return render('summary/summary.html') | |
130 |
|
132 |
@@ -248,6 +248,10 | |||||
248 | </div> |
|
248 | </div> | |
249 |
|
249 | |||
250 | <div class="table"> |
|
250 | <div class="table"> | |
|
251 | ||||
|
252 | %if c.no_data: | |||
|
253 | <div style="padding:0 10px 10px 15px;font-size: 1.2em;">${_('No data loaded yet')}</div> | |||
|
254 | %endif: | |||
251 | <div id="commit_history" style="width:460px;height:300px;float:left"></div> |
|
255 | <div id="commit_history" style="width:460px;height:300px;float:left"></div> | |
252 | <div style="clear: both;height: 10px"></div> |
|
256 | <div style="clear: both;height: 10px"></div> | |
253 | <div id="overview" style="width:460px;height:100px;float:left"></div> |
|
257 | <div id="overview" style="width:460px;height:100px;float:left"></div> |
General Comments 0
You need to be logged in to leave comments.
Login now