Add new appearance app to hold all of the base templates, images, icons and external packages related to the frontend and look of the project

This commit is contained in:
Roberto Rosario
2015-03-30 02:17:40 -04:00
parent 3131751b25
commit 5dabc0a34a
290 changed files with 298 additions and 298 deletions
+1 -1
View File
@@ -10,4 +10,4 @@ def is_superuser(context):
link_execute = {'text': _('Execute'), 'view': 'statistics:execute', 'args': 'object.id', 'famfam': 'lightning', 'condition': is_superuser}
link_namespace_details = {'text': _('Details'), 'view': 'statistics:namespace_details', 'args': 'namespace.id', 'famfam': 'chart_curve_go', 'condition': is_superuser}
link_namespace_list = {'text': _('Namespace list'), 'view': 'statistics:namespace_list', 'famfam': 'chart_curve', 'condition': is_superuser}
link_statistics = {'text': _('Statistics'), 'view': 'statistics:namespace_list', 'famfam': 'table', 'icon': 'main/icons/blackboard_sum.png', 'condition': is_superuser}
link_statistics = {'text': _('Statistics'), 'view': 'statistics:namespace_list', 'famfam': 'table', 'icon': 'appearance/icons/blackboard_sum.png', 'condition': is_superuser}
+3 -3
View File
@@ -12,7 +12,7 @@ def namespace_list(request):
if not request.user.is_superuser or not request.user.is_staff:
raise PermissionDenied
return render_to_response('main/generic_list.html', {
return render_to_response('appearance/generic_list.html', {
'object_list': StatisticNamespace.get_all(),
'hide_link': True,
'title': _('Statistics namespaces'),
@@ -26,7 +26,7 @@ def namespace_details(request, namespace_id):
namespace = StatisticNamespace.get(namespace_id)
return render_to_response('main/generic_list.html', {
return render_to_response('appearance/generic_list.html', {
'object': namespace,
'namespace': namespace,
'object_list': namespace.statistics,
@@ -41,7 +41,7 @@ def execute(request, statistic_id):
statictic = Statistic.get(statistic_id)
return render_to_response('main/generic_list.html', {
return render_to_response('appearance/generic_list.html', {
'object': statictic,
'namespace': statictic.namespace,
'navigation_object_list': [