Changes between Version 9 and Version 10 of TracTweakUiPlugin
- Timestamp:
- Nov 18, 2015, 11:06:27 AM (8 years ago)
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 2 4 3 5 == Description … … 9 11 * Supports Trac web admin. 10 12 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.13 Alternative: 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. 12 14 13 15 See: '''ZoomQuiet''' ~ Collection KSPEG Trac hacking … … 25 27 == Download 26 28 27 Download the zipped source from [ download:tractweakuiplugin here].29 Download the zipped source from [export:tractweakuiplugin here]. 28 30 29 31 == Source 30 32 31 You can check out TracTweakUiPlugin from [http://trac-hacks.org/svn/tractweakuiplugin here] using Subversion, or [source:tractweakuiplugin browse the source] with Trac. 33 You can check out TracTweakUiPlugin from [/svn/tractweakuiplugin here] using Subversion, or [source:tractweakuiplugin browse the source] with Trac. 34 35 == Installation 36 37 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 32 38 33 39 == Configuration 34 40 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 43 46 cp dist/*.egg /srv/trac/env/plugins 44 47 }}} … … 48 51 tractweakui.* = enabled 49 52 }}} 50 1. Add following directory structure toTrac 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: 51 54 {{{ 52 55 htdocs/tractweakui/ 53 56 }}} 54 57 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. 56 59 57 60 == Example … … 59 62 === Admin Trac Tweak UI with addon javascript plugins 60 63 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'''. 65 68 1. Now click '''New Ticket''' to test the '''editcc''' Javascript plugin. 66 69 * '''Screenshot of Admin''' … … 73 76 1. Take [http://plugins.jquery.com/project/ac autocomplete] for instance. 74 77 1. Prepare autocomplete directory in the Trac environment: 75 {{{ 78 {{{#!sh 76 79 mkdir /path/to/trac/environment/htdocs/tractweakui/autocomplete 77 80 cp main.css /path/to/trac/environment/htdocs/tractweakui/autocomplete/