Improved tools menu using horizontal button widget just like the project_setup app
This commit is contained in:
16
apps/project_tools/views.py
Normal file
16
apps/project_tools/views.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from django.shortcuts import render_to_response, get_object_or_404
|
||||
from django.template import RequestContext
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from project_tools.api import tool_items
|
||||
from project_setup.widgets import setup_button_widget
|
||||
|
||||
|
||||
def tools_list(request):
|
||||
context = {
|
||||
'object_list': [setup_button_widget(request, item) for item in tool_items],
|
||||
'title': _(u'tools'),
|
||||
}
|
||||
|
||||
return render_to_response('generic_list_horizontal.html', context,
|
||||
context_instance=RequestContext(request))
|
||||
Reference in New Issue
Block a user