Movatterモバイル変換


[0]ホーム

URL:


Trac Hacks
wiki:TicketNavPlugin

Context Navigation


Contents

  1. Description
    1. ComponentTextAreaDescription
    2. ComponentCssTemplate
    3. ComponentCustomizedTicketView
    4. ComponentSortMilestoneVersion
    5. ComponentTicketNavigation
  2. Bugs/Feature Requests
  3. Download
  4. Source
  5. Installation
  6. Configuration
    1. Sample configuration ofTextAreaDescription
    2. Sample configuration ofHtmlContent
  7. Recent Changes
  8. Author/Contributors

Miscellaneous functions to ticket view: CKEditor, navigation table, descriptions, sorting versions

Description

The following plugin adds additional functionality to your Trac site. All changes can be implemented in the site'strac.ini file.

ComponentTextAreaDescription

Shows next to a text area a description what the field is for, such as the description itself or any custom description.

Default values for options:

[ticket]description_descr=descr_template=<div>%s<div>

TextAreaDescription - red box under "Beschreibung" (Description) andHtmlContent (Editor):

Screenshot of text area description (red box)

ComponentCssTemplate

Add links to style sheets located in templates folder.

The stylesheet files (CSS files) starting with"all_templates" are added for all Trac sites. TheCSS files starting with the template name (without.html-suffix) are applied to the specific template.

To apply the changes you need to restart the Trac server.

Examples for files which resides in projectstemplates folder:

all_templates_general.css added to all Trac sites
ticket_additional.css only added forticket.html pages

For a discussion in Trac about this topic, seeTrac ticket #9683.

ComponentCustomizedTicketView

Supports changes of the ticket view:

  • disables fieldfield-reporter, so it cannot be changed anymore
  • disables buttonReply, so no comment can be made to any description

CustomizedTicketView - creator "Ersteller" is disabled, so it cannot be changed:

Showing hiding creator of ticket (Component `CustomizedTicketView`)

See also:SimpleTicketPlugin

ComponentSortMilestoneVersion

Sorts drop-down lists of version and milestone regardless of the case and make milestone a mandatory field, when a default milestone is set.

Default behavior of Trac for sorting milestones is:

inbox, v1, v2, Inbox, V1, V2

This plugin sorts it as follows:

inbox, Inbox, v1, V1, v2, V2

SortMilestoneVersion - milestones are sorted by name regardless of their case (uppercase "TBD" is next to lowercase "tbd"):

Sorting milestones by name instead of due date (Component `SortMilestoneVersion`)

SortMilestoneVersion - versions are sorted in alphabetical order instead of their due / completion date:

Sorting versions by name instead of due date (Component `SortMilestoneVersion`)

ComponentTicketNavigation

Implements an extra Navigation menu by dividing the main ticket information in several div areas and providing a "jump-to" to the areas which are represented in the navigation box.

TicketNavigation - list of headers are as toolbox under mainnav:

Showing ticket navigation box (Component `TicketNavigation`)

Bugs/Feature Requests

Existing bugs and feature requests forTicketNavPlugin arehere.

If you have any issues, create anew ticket.

enhancement

0 / 2

task

1 / 1

Download

Download the zipped source fromhere.

Or download the pre-compiledPython egg.

Source

You can check outTicketNavPlugin fromhere using Subversion, orbrowse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on theTracPlugins page.

Configuration

Sample configuration ofTextAreaDescription

[ticket]descr_template=<div>%s<div>description_descr=<div>Folgende Fragen sollen beantworten werden:<br/></div><ul><li>Was wurde gemacht?</li></ul>

Sample configuration ofHtmlContent

[ticket]description_format=htmleditor_source=site/js/ckeditor/ckeditor.jseditor_replace=<script type="text/javascript">CKEDITOR.replace('@FIELD_NAME@', {toolbar: 'custom'});</script>additional_css=site/css/add_ticket.css

Recent Changes

14674 byframay on 2015-06-16 04:59:02
fixes#12386: added license
13249 byaleuhe on 2013-05-27 14:16:31
TextAreaDescription and it's .css file have been changed a little bit.

the Trac.ini has to be adapted:

The following attributes are now obsolete:
[ticket_custom]
ATTRNAME.css_style = ...

The following attributes have to be added
[ticket_display]
descr_template = <div>%s%s<div>
releasenotes_relevant_tag = <p class = "rntag">Release-Notes relevant!</p>
releasenotes_relevant = <COMMA-SEPARATED LIST OF ATTRNAMES>

11355 byaleuhe on 2012-03-02 14:14:05
(more)

Author/Contributors

Author:framay
Maintainer:Franz
Contributors:

Last modified3 years agoLast modified on Apr 22, 2022, 6:13:54 AM

Attachments(7)

Download all attachments as:.zip

Download in other formats:


Trac Powered

Powered byTrac 1.2.6
ByEdgewall Software.


[8]ページ先頭

©2009-2025 Movatter.jp