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:
@@ -50,7 +50,7 @@ def key_receive(request, key_id):
|
||||
)
|
||||
return HttpResponseRedirect(previous)
|
||||
|
||||
return render_to_response('main/generic_confirm.html', {
|
||||
return render_to_response('appearance/generic_confirm.html', {
|
||||
'title': _('Import key'),
|
||||
'message': _('Are you sure you wish to import key id: %s?') % key_id,
|
||||
'next': next,
|
||||
@@ -70,7 +70,7 @@ def key_list(request, secret=True):
|
||||
object_list = Key.get_all(gpg)
|
||||
title = _('Public keys')
|
||||
|
||||
return render_to_response('main/generic_list.html', {
|
||||
return render_to_response('appearance/generic_list.html', {
|
||||
'object_list': object_list,
|
||||
'title': title,
|
||||
'hide_object': True,
|
||||
@@ -106,7 +106,7 @@ def key_delete(request, fingerprint, key_type):
|
||||
messages.error(request, exception)
|
||||
return HttpResponseRedirect(previous)
|
||||
|
||||
return render_to_response('main/generic_confirm.html', {
|
||||
return render_to_response('appearance/generic_confirm.html', {
|
||||
'title': _('Delete key'),
|
||||
'delete_view': True,
|
||||
'message': _('Are you sure you wish to delete key: %s? If you try to delete a public key that is part of a public/private pair the private key will be deleted as well.') % key,
|
||||
@@ -124,7 +124,7 @@ def key_query(request):
|
||||
form = KeySearchForm(initial={'term': term})
|
||||
subtemplates_list.append(
|
||||
{
|
||||
'name': 'main/generic_form_subtemplate.html',
|
||||
'name': 'appearance/generic_form_subtemplate.html',
|
||||
'context': {
|
||||
'title': _('Query key server'),
|
||||
'form': form,
|
||||
@@ -137,7 +137,7 @@ def key_query(request):
|
||||
results = gpg.query(term)
|
||||
subtemplates_list.append(
|
||||
{
|
||||
'name': 'main/generic_list_subtemplate.html',
|
||||
'name': 'appearance/generic_list_subtemplate.html',
|
||||
'context': {
|
||||
'title': _('results'),
|
||||
'object_list': results,
|
||||
@@ -185,6 +185,6 @@ def key_query(request):
|
||||
}
|
||||
)
|
||||
|
||||
return render_to_response('main/generic_form.html', {
|
||||
return render_to_response('appearance/generic_form.html', {
|
||||
'subtemplates_list': subtemplates_list,
|
||||
}, context_instance=RequestContext(request))
|
||||
|
||||
Reference in New Issue
Block a user