New bootstrap based frontend UI. Merged from #121 with many fixes. Closes issues #121, #59 and #100

This commit is contained in:
Roberto Rosario
2015-03-31 03:26:57 -04:00
parent 5a7885ddcb
commit 80c04b1fb7
240 changed files with 15551 additions and 17932 deletions

View File

@@ -6,7 +6,7 @@ from django.utils.translation import ugettext_lazy as _
from django.utils.safestring import mark_safe
from common.utils import encapsulate, return_type
from common.widgets import exists_with_famfam
from common.widgets import exists_widget
from .api import settings
@@ -35,7 +35,7 @@ def setting_list(request):
{
'name': _('Value'), 'attribute': encapsulate(lambda x: mark_safe('<div class="nowrap">%s&nbsp;%s</div>' % (
return_type(getattr(x['module'], x['name'])),
exists_with_famfam(getattr(x['module'], x['name'])) if x['exists'] else ''
exists_widget(getattr(x['module'], x['name'])) if x['exists'] else ''
)))
},
]