# HG changeset patch # User Marcin Kuzminski # Date 1291380040 -3600 # Node ID e41aacb6aa18980212aae4c23cabdf9c8ce65043 # Parent 6d37fe113da02ce554dbf6faed47e93e5ba39da8 small fixes for summary graph, added message about no data for the graph, when empty diff -r 6d37fe113da0 -r e41aacb6aa18 rhodecode/controllers/summary.py --- a/rhodecode/controllers/summary.py Fri Dec 03 13:09:21 2010 +0100 +++ b/rhodecode/controllers/summary.py Fri Dec 03 13:40:40 2010 +0100 @@ -113,6 +113,7 @@ if stats and stats.languages: + c.no_data = False lang_stats = json.loads(stats.languages) c.commit_data = stats.commit_activity c.overview_data = stats.commit_activity_combined @@ -123,8 +124,9 @@ ) else: c.commit_data = json.dumps({}) - c.overview_data = json.dumps([[ts_min_y, 0], [ts_max_y, 0] ]) + c.overview_data = json.dumps([[ts_min_y, 0], [ts_max_y, 10] ]) c.trending_languages = json.dumps({}) + c.no_data = True return render('summary/summary.html') diff -r 6d37fe113da0 -r e41aacb6aa18 rhodecode/templates/summary/summary.html --- a/rhodecode/templates/summary/summary.html Fri Dec 03 13:09:21 2010 +0100 +++ b/rhodecode/templates/summary/summary.html Fri Dec 03 13:40:40 2010 +0100 @@ -248,6 +248,10 @@
+ + %if c.no_data: +
${_('No data loaded yet')}
+ %endif: