web/data/uiprops.py
changeset 5445 4467ed43d97d
parent 5444 f7fdb5dd82f6
child 5479 6ba3587c5cda
child 5482 8c8c6d3f3b3a
equal deleted inserted replaced
5444:f7fdb5dd82f6 5445:4467ed43d97d
     1 """define default ui properties"""
     1 """define default ui properties"""
     2 
     2 
     3 # CSS stylesheets to include systematically in HTML headers
     3 # CSS stylesheets to include systematically in HTML headers
     4 STYLESHEETS =       ['%s/cubicweb.reset.css' % datadir_url,
     4 STYLESHEETS =       [data('cubicweb.reset.css'),
     5                      '%s/cubicweb.css' % datadir_url]
     5                      data('cubicweb.css')]
     6 STYLESHEETS_IE =    ['%s/cubicweb.ie.css' % datadir_url]
     6 STYLESHEETS_IE =    [data('cubicweb.ie.css')]
     7 STYLESHEETS_PRINT = ['%s/cubicweb.print.css' % datadir_url]
     7 STYLESHEETS_PRINT = [data('cubicweb.print.css')]
     8 
     8 
     9 # Javascripts files to include systematically in HTML headers
     9 # Javascripts files to include systematically in HTML headers
    10 JAVASCRIPTS = ['%s/jquery.js' % datadir_url,
    10 JAVASCRIPTS = [data('jquery.js'),
    11                '%s/jquery.corner.js' % datadir_url,
    11                data('jquery.corner.js'),
    12                '%s/jquery.json.js' % datadir_url,
    12                data('jquery.json.js'),
    13                '%s/cubicweb.compat.js' % datadir_url,
    13                data('cubicweb.compat.js'),
    14                '%s/cubicweb.python.js' % datadir_url,
    14                data('cubicweb.python.js'),
    15                '%s/cubicweb.htmlhelpers.js' % datadir_url]
    15                data('cubicweb.htmlhelpers.js')]
    16 
    16 
    17 # where is installed fckeditor
    17 # where is installed fckeditor
    18 FCKEDITOR_PATH = '/usr/share/fckeditor/'
    18 FCKEDITOR_PATH = '/usr/share/fckeditor/'
    19 
    19 
    20 # favicon and logo for the instance
    20 # favicon and logo for the instance
    21 FAVICON = '%s/favicon.ico' % datadir_url
    21 FAVICON = data('favicon.ico')
    22 LOGO = '%s/logo.png' % datadir_url
    22 LOGO = data('logo.png')
    23 
    23 
    24 # rss logo (link to get the rss view of a selection)
    24 # rss logo (link to get the rss view of a selection)
    25 RSS_LOGO = '%s/rss.png' % datadir_url
    25 RSS_LOGO = data('rss.png')
    26 RSS_LOGO_16 = '%s/feed-icon16x16.png' % datadir_url
    26 RSS_LOGO_16 = data('feed-icon16x16.png')
    27 RSS_LOGO_32 = '%s/feed-icon32x32.png' % datadir_url
    27 RSS_LOGO_32 = data('feed-icon32x32.png')
    28 
    28 
    29 # XXX cleanup resources below, some of them are probably not used
    29 # XXX cleanup resources below, some of them are probably not used
    30 # (at least entity types icons...)
    30 # (at least entity types icons...)
    31 
    31 
    32 # images
    32 # images
    33 HELP = '%s/help.png' % datadir_url
    33 HELP = data('help.png')
    34 SEARCH_GO = '%s/go.png' % datadir_url
    34 SEARCH_GO = data('go.png')
    35 PUCE_UP = '%s/puce_up.png' % datadir_url
    35 PUCE_UP = data('puce_up.png')
    36 PUCE_DOWN = '%s/puce_down.png' % datadir_url
    36 PUCE_DOWN = data('puce_down.png')
    37 
    37 
    38 # button icons
    38 # button icons
    39 OK_ICON = '%s/ok.png' % datadir_url
    39 OK_ICON = data('ok.png')
    40 CANCEL_ICON = '%s/cancel.png' % datadir_url
    40 CANCEL_ICON = data('cancel.png')
    41 APPLY_ICON = '%s/plus.png' % datadir_url
    41 APPLY_ICON = data('plus.png')
    42 TRASH_ICON = '%s/trash_can_small.png' % datadir_url
    42 TRASH_ICON = data('trash_can_small.png')
    43 
    43 
    44 # icons for entity types
    44 # icons for entity types
    45 BOOKMARK_ICON = '%s/icon_bookmark.gif' % datadir_url
    45 BOOKMARK_ICON = data('icon_bookmark.gif')
    46 EMAILADDRESS_ICON = '%s/icon_emailaddress.gif' % datadir_url
    46 EMAILADDRESS_ICON = data('icon_emailaddress.gif')
    47 EUSER_ICON = '%s/icon_euser.gif' % datadir_url
    47 EUSER_ICON = data('icon_euser.gif')
    48 STATE_ICON = '%s/icon_state.gif' % datadir_url
    48 STATE_ICON = data('icon_state.gif')
    49 
    49 
    50 # other icons
    50 # other icons
    51 CALENDAR_ICON = '%s/calendar.gif' % datadir_url
    51 CALENDAR_ICON = data('calendar.gif')
    52 CANCEL_EMAIL_ICON = '%s/sendcancel.png' % datadir_url
    52 CANCEL_EMAIL_ICON = data('sendcancel.png')
    53 SEND_EMAIL_ICON = '%s/sendok.png' % datadir_url
    53 SEND_EMAIL_ICON = data('sendok.png')
    54 DOWNLOAD_ICON = '%s/download.gif' % datadir_url
    54 DOWNLOAD_ICON = data('download.gif')
    55 UPLOAD_ICON = '%s/upload.gif' % datadir_url
    55 UPLOAD_ICON = data('upload.gif')
    56 GMARKER_ICON = '%s/gmap_blue_marker.png' % datadir_url
    56 GMARKER_ICON = data('gmap_blue_marker.png')
    57 UP_ICON = '%s/up.gif' % datadir_url
    57 UP_ICON = data('up.gif')