Edgewall Software

Changeset 14510


Ignore:
Timestamp:
Feb 10, 2016, 6:32:31 AM (10 years ago)
Author:
Jun Omae
Message:

1.2dev: use doc_args parameter to URLs in document of [trac] jquery_* options (refs #12222)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/trac/web/chrome.py

    r14481 r14510  
    447447
    448448    jquery_location = Option('trac', 'jquery_location', '',
    449         """Location of the jQuery !JavaScript library (version 1.11.3).
     449        """Location of the jQuery !JavaScript library (version %(version)s).
    450450
    451451        An empty value loads jQuery from the copy bundled with Trac.
    452452
    453453        Alternatively, jQuery could be loaded from a CDN, for example:
    454         http://code.jquery.com/jquery-1.11.3.min.js,
    455         http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.3.min.js or
    456         https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js.
    457 
    458         (''since 1.0'')""")
     454        http://code.jquery.com/jquery-%(version)s.min.js,
     455        http://ajax.aspnetcdn.com/ajax/jQuery/jquery-%(version)s.min.js or
     456        https://ajax.googleapis.com/ajax/libs/jquery/%(version)s/jquery.min.js.
     457
     458        (''since 1.0'')""", doc_args={'version': '1.11.3'})
    459459
    460460    jquery_ui_location = Option('trac', 'jquery_ui_location', '',
    461         """Location of the jQuery UI !JavaScript library (version 1.11.4).
     461        """Location of the jQuery UI !JavaScript library (version %(version)s).
    462462
    463463        An empty value loads jQuery UI from the copy bundled with Trac.
    464464
    465465        Alternatively, jQuery UI could be loaded from a CDN, for example:
    466         https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js
     466        https://ajax.googleapis.com/ajax/libs/jqueryui/%(version)s/jquery-ui.min.js
    467467        or
    468         http://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.4/jquery-ui.min.js.
    469 
    470         (''since 1.0'')""")
     468        http://ajax.aspnetcdn.com/ajax/jquery.ui/%(version)s/jquery-ui.min.js.
     469
     470        (''since 1.0'')""", doc_args={'version': '1.11.4'})
    471471
    472472    jquery_ui_theme_location = Option('trac', 'jquery_ui_theme_location', '',
    473473        """Location of the theme to be used with the jQuery UI !JavaScript
    474         library (version 1.11.4).
     474        library (version %(version)s).
    475475
    476476        An empty value loads the custom Trac jQuery UI theme from the copy
     
    479479        Alternatively, a jQuery UI theme could be loaded from a CDN, for
    480480        example:
    481         https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/start/jquery-ui.css
     481        https://ajax.googleapis.com/ajax/libs/jqueryui/%(version)s/themes/start/jquery-ui.css
    482482        or
    483         http://ajax.aspnetcdn.com/ajax/jquery.ui/1.11.4/themes/start/jquery-ui.css.
    484 
    485         (''since 1.0'')""")
     483        http://ajax.aspnetcdn.com/ajax/jquery.ui/%(version)s/themes/start/jquery-ui.css.
     484
     485        (''since 1.0'')""", doc_args={'version': '1.11.4'})
    486486
    487487    mainnav = ConfigSection('mainnav', """Configures the main navigation bar,
Note: See TracChangeset for help on using the changeset viewer.