All the time i use web2py's admin page for installed applications, i find very unergonomical. I am not a designer, but that's what i came up with: http://img403.imageshack.us/img403/6774/cssy.png You can see on the right the current design, and on the left - suggested by me. The css styles i used: a.app_title { font-size: large; font-weight: bold; color:#185360; text-transform: uppercase }; a.app_action { font-weight: bold; text-decoration: none; }; a.app_action:hover { text-decoration: underline; }; div.app_bg { padding: 5px; margin: 5px 0px }; div.app_bg:hover { background-color: #eeeeee };
/applications/admin/views/default/site.html
...
{{for a in apps:}}
<div class="app_bg">
<a class="app_title" href="{{if a ==
request.application:}}#nil{{else:}}{{=URL(a,'default','index')}}{{pass}}">{{=a}}</a>
<br/>[
{{if a != request.application:}}
{{if not os.path.exists('applications/%s/compiled' % a):}}
<a class="app_action"
href="{{=URL('design',args=a)}}">{{=T("EDIT")}}</a> |
{{else:}}
<a class="app_action"
href="{{=URL(a,'appadmin','index')}}">{{=T("appadmin")}}</a> |
{{pass}}
<a class="app_action"
href="{{=URL('about',args=a)}}">{{=T("about")}}</a> |
{{pass}}
<a class="app_action"
href="{{=URL('errors',args=a)}}">{{=T("errors")}}</a> |
<a class="app_action"
href="{{=URL('cleanup',args=a)}}">{{=T("clean")}}</a> |
<a class="app_action" href="{{=URL('pack',args=a)}}">{{=T("pack
all")}}</a> |
{{if not os.path.exists('applications/%s/compiled' % a):}}
<a class="app_action"
href="{{=URL('compile_app',args=a)}}">{{=T("compile")}}</a>
{{else:}}
<a class="app_action" href="{{=URL('pack',args=(a,
'compiled'))}}">{{=T("pack compiled")}}</a>
{{if glob.glob('applications/%s/controllers/*.py' % a):}}
| <a class="app_action"
href="{{=URL('remove_compiled_app',args=a)}}">{{=T("remove compiled")}}</a>
{{pass}}
{{pass}}
{{if a!=request.application:}}
| <a class="app_action"
href="{{=URL('uninstall',args=a)}}">{{=T("uninstall")}}</a>
{{pass}}
] </div>
{{pass}}
...
Could this design be used in newer versions of web2py?
Maybe other people have even better design suggestions.
<<attachment: css.PNG>>

