##// END OF EJS Templates
small fixes for summary graph, added message about no data for the graph, when empty
marcink -
r800:e41aacb6 beta
parent child Browse files
Show More
@@ -113,6 +113,7 class SummaryController(BaseController):
113 113
114 114
115 115 if stats and stats.languages:
116 c.no_data = False
116 117 lang_stats = json.loads(stats.languages)
117 118 c.commit_data = stats.commit_activity
118 119 c.overview_data = stats.commit_activity_combined
@@ -123,8 +124,9 class SummaryController(BaseController):
123 124 )
124 125 else:
125 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 128 c.trending_languages = json.dumps({})
129 c.no_data = True
128 130
129 131 return render('summary/summary.html')
130 132
@@ -248,6 +248,10
248 248 </div>
249 249
250 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 255 <div id="commit_history" style="width:460px;height:300px;float:left"></div>
252 256 <div style="clear: both;height: 10px"></div>
253 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