Changes between Version 9 and Version 10 of TracTweakUiPlugin


Ignore:
Timestamp:
Nov 18, 2015, 11:06:27 AM (8 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TracTweakUiPlugin

    v9 v10  
    1 = Trac Tweak UI
     1[[PageOutline(2-5,Contents,pullout)]]
     2
     3= Tweak the Trac user interface
    24
    35== Description
     
    911 * Supports Trac web admin.
    1012
    11 Alternative: AddStaticResourcesPlugin accomplishes many of the same goals. Very simple deployment and trac.ini configuration (no webadmin screens). Doesn't require an environment upgrade.
     13Alternative: the AddStaticResourcesPlugin accomplishes many of the same goals. Very simple deployment and trac.ini configuration, ie no webadmin screens. Doesn't require an environment upgrade.
    1214
    1315See: '''ZoomQuiet''' ~ Collection KSPEG Trac hacking
     
    2527== Download
    2628
    27 Download the zipped source from [download:tractweakuiplugin here].
     29Download the zipped source from [export:tractweakuiplugin here].
    2830
    2931== Source
    3032
    31 You can check out TracTweakUiPlugin from [http://trac-hacks.org/svn/tractweakuiplugin here] using Subversion, or [source:tractweakuiplugin browse the source] with Trac.
     33You can check out TracTweakUiPlugin from [/svn/tractweakuiplugin here] using Subversion, or [source:tractweakuiplugin browse the source] with Trac.
     34
     35== Installation
     36
     37General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
    3238
    3339== Configuration
    3440
    35  1. Uninstall Trac Tweak UI if you have installed before.
    36  1. Change to the directory containing setup.py.
    37  1. If you want to install this plugin globally, that will install this plugin to the Python path:
    38   * python setup.py install
    39  1. If you want to install this plugin to Trac instance only:
    40   * python setup.py bdist_egg
    41   * copy the generated egg file to the Trac instance's plugin directory:
    42   {{{
     41 1. Uninstall Trac Tweak UI if you have installed it before.
     42 1. Change to the directory containing `setup.py`.
     43 1. If you want to install this plugin globally, that will install this plugin to the Python path: `python setup.py install`.
     44 1. If you want to install this plugin to Trac instance only: `python setup.py bdist_egg` and copy the generated egg file to the Trac instance's plugin directory:
     45  {{{#!sh
    4346cp dist/*.egg /srv/trac/env/plugins
    4447}}}
     
    4851tractweakui.* = enabled
    4952}}}
    50  1. Add following directory structure to Trac environment's htdocs directory, using `editcc` as an example:
     53 1. Add the following directory structure to the Trac environment's htdocs directory, using `editcc` as an example:
    5154  {{{
    5255htdocs/tractweakui/
    5356}}}
    5457
    55   Or you can simply copy the htdocs/tractweakui/ in source to Trac environment's htdocs directory.
     58  Or you can simply copy the htdocs/tractweakui/ in source to the Trac environment's htdocs directory.
    5659
    5760== Example
     
    5962=== Admin Trac Tweak UI with addon javascript plugins
    6063
    61  1. Enter Trac's '''Web Admin''', select '''TracTweakUI Admin'''
    62  1. Add url path(regular expression): '''/newticket'''
    63  1. Select '''/newticket''', then select filter '''editcc'''
    64  1. Click '''Load Default''', and edit filter javascript, then '''Save'''
     64 1. Enter Trac's '''Web Admin''', select '''TracTweakUI Admin'''.
     65 1. Add url path(regular expression): '''/newticket'''.
     66 1. Select '''/newticket''', then select filter '''editcc'''.
     67 1. Click '''Load Default''', and edit filter javascript, then '''Save'''.
    6568 1. Now click '''New Ticket''' to test the '''editcc''' Javascript plugin.
    6669  * '''Screenshot of Admin'''
     
    7376 1. Take [http://plugins.jquery.com/project/ac autocomplete] for instance.
    7477 1. Prepare autocomplete directory in the Trac environment:
    75   {{{
     78  {{{#!sh
    7679mkdir /path/to/trac/environment/htdocs/tractweakui/autocomplete
    7780cp main.css /path/to/trac/environment/htdocs/tractweakui/autocomplete/