equal
deleted
inserted
replaced
27 from google.appengine.ext import db |
27 from google.appengine.ext import db |
28 |
28 |
29 from django import http |
29 from django import http |
30 from django.template import loader |
30 from django.template import loader |
31 |
31 |
32 from soc import release |
|
33 from soc.logic import accounts |
32 from soc.logic import accounts |
34 from soc.logic import system |
33 from soc.logic import system |
35 from soc.logic.models import site |
34 from soc.logic.models import site |
36 from soc.views import helper |
35 from soc.views import helper |
37 from soc.views.helper import redirects |
36 from soc.views.helper import redirects |
126 context['sign_in'] = users.create_login_url(request.path) |
125 context['sign_in'] = users.create_login_url(request.path) |
127 context['sign_out'] = users.create_logout_url(request.path) |
126 context['sign_out'] = users.create_logout_url(request.path) |
128 |
127 |
129 context['sidebar_menu_items'] = sidebar.getSidebar(account, user) |
128 context['sidebar_menu_items'] = sidebar.getSidebar(account, user) |
130 |
129 |
131 context['soc_release'] = release.RELEASE_TAG |
130 gae_version = system.getAppVersion() |
132 context['gae_version'] = system.getAppVersion() |
131 context['gae_version'] = gae_version |
|
132 context['soc_release'] = gae_version.split('.', 1)[0] |
133 |
133 |
134 settings = site.logic.getSingleton() |
134 settings = site.logic.getSingleton() |
135 |
135 |
136 context['ga_tracking_num'] = settings.ga_tracking_num |
136 context['ga_tracking_num'] = settings.ga_tracking_num |
137 context['gmaps_api_key'] = settings.gmaps_api_key |
137 context['gmaps_api_key'] = settings.gmaps_api_key |