Permalink
Browse files

adding everything but sites stuff back to dashboard

  • Loading branch information...
1 parent 3259ea5 commit 7db2c6d0ad20a51d91ae0976fdfe25c5e1c471d1 @davedash davedash committed Jun 7, 2011
Showing with 12 additions and 12 deletions.
  1. +12 −12 apps/dashboard/views.py
@@ -40,8 +40,8 @@ def dashboard(request):
# platform__exact=None)[:settings.TRENDS_COUNT]
# sites = SiteSummary.objects.all()
- # # Get the desktop site's absolute URL for use in the settings tab
- # desktop_site = Site.objects.get(id=settings.DESKTOP_SITE_ID)
+ # Get the desktop site's absolute URL for use in the settings tab
+ desktop_site = Site.objects.get(id=settings.DESKTOP_SITE_ID)
try:
c = Client()
@@ -65,17 +65,17 @@ def dashboard(request):
'opinions': latest_opinions.all()[:settings.MESSAGES_COUNT],
'opinion_count': total,
'product': prod,
- # 'products': PROD_CHOICES,
- # 'sentiments': get_sentiment(metas.get('type', [])),
- # 'locales': metas.get('locale'),
- # 'platforms': metas.get('platform'),
- # 'sites': sites,
- # 'version': version,
- # 'versions': VERSION_CHOICES[prod],
- # 'chart_data_json': json.dumps(chart_data),
- # 'defaults': get_defaults(search_form),
+ 'products': PROD_CHOICES,
+ 'sentiments': get_sentiment(metas.get('type', [])),
+ 'locales': metas.get('locale'),
+ 'platforms': metas.get('platform'),
+ # 'sites': sites,
+ 'version': version,
+ 'versions': VERSION_CHOICES[prod],
+ 'chart_data_json': json.dumps(chart_data),
+ 'defaults': get_defaults(search_form),
'search_form': search_form,
- # 'desktop_url': 'http://' + desktop_site.domain,
+ 'desktop_url': 'http://' + desktop_site.domain,
}
if not request.mobile_site:

0 comments on commit 7db2c6d

Please sign in to comment.