comparison MoinMoin/themes/__init__.py @ 476:a716e61ae9c7

contenttype texts are replaced by icons in global history page, all icons are GPL licensed (picked from tango icons library).
author Akash Sinha <akash2607@gmail.com>
date Wed, 29 Jun 2011 02:25:05 +0530
parents 1a1dab306214
children 201758d56fb1
comparison
equal deleted inserted replaced
475:630c21e18398 476:a716e61ae9c7
358 return name 358 return name
359 359
360 360
361 MIMETYPE_TO_CLASS = { 361 MIMETYPE_TO_CLASS = {
362 'application/pdf': 'pdf', 362 'application/pdf': 'pdf',
363 'application/zip': 'package',
364 'application/x-tar': 'package',
365 'application/x-twikidraw': 'drawing',
366 'application/x-anywikidraw': 'drawing',
367 'application/x-svgdraw': 'drawing',
363 } 368 }
364 369
365 def contenttype_to_class(contenttype): 370 def contenttype_to_class(contenttype):
366 """ 371 """
367 Convert a contenttype string to a css class. 372 Convert a contenttype string to a css class.