Changes between Version 19 and Version 20 of EpochFieldPlugin


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

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • EpochFieldPlugin

    v19 v20  
    55== Description
    66
    7 '''Note''': in this page, after slashes, descriptions in japanese-KANJI are added.
     7'''Note''': on this page descriptions in japanese-Kanji are added after slashes (/).
    88
    99'''This plugin will conflict in Trac 1.1.1. see trac:wiki:/TracDev/Proposals/TracTicketsCustomTimeFields and trac:ticket:1942. '''
     
    1616
    1717Existing bugs and feature requests for EpochFieldPlugin are
    18 [report:9?COMPONENT=EpochFieldPlugin here].[[BR]]
     18[report:9?COMPONENT=EpochFieldPlugin here].
    1919
    2020If you have any issues, create a
    21 [http://trac-hacks.org/newticket?component=EpochFieldPlugin&owner=matobaa new ticket]. / 不具合報告は[http://trac-hacks.org/newticket?component=EpochFieldPlugin&owner=matobaa こちら]へ。
     21[/newticket?component=EpochFieldPlugin new ticket]. / 不具合報告は[/newticket?component=EpochFieldPlugin こちら]へ。
    2222
    2323[[TicketQuery(component=EpochFieldPlugin,group=type,format=progress)]]
     
    2525== Download
    2626
    27 Download the zipped source from [download:epochfieldplugin here].[[BR]]
     27Download the zipped source from [export:epochfieldplugin here].
    2828
    2929== Source
    3030
    31 You can check out EpochFieldPlugin from [http://trac-hacks.org/svn/epochfieldplugin here] using Subversion, or [source:epochfieldplugin browse the source] with Trac.[[BR]]
    32 入手は[download:epochfieldplugin zip], [http://trac-hacks.org/svn/epochfieldplugin Subversion], [source:epochfieldplugin Trac]でどうぞ。
     31You can check out EpochFieldPlugin from [/svn/epochfieldplugin here] using Subversion, or [source:epochfieldplugin browse the source] with Trac.
     32
     33入手は[export:epochfieldplugin zip], [/svn/epochfieldplugin Subversion], [source:epochfieldplugin Trac]でどうぞ。
    3334
    3435== Example / 例
     
    3637=== Epoch field === #field
    3738
    38 Specify '''format=epoch''' for the custom-field in trac.ini as follows or use CustomFieldAdminPlugin: / trac.ini または CustomFieldAdminPlugin で、カスタムフィールドの format を epoch と指定します:
    39 {{{
    40 #!ini
     39Specify '''format=epoch''' for the custom-field in `trac.ini` as follows or use CustomFieldAdminPlugin: / `trac.ini` または CustomFieldAdminPlugin で、カスタムフィールドの format を epoch と指定します:
     40{{{#!ini
    4141[ticket-custom]
    4242due = text
     
    5151
    5252In the `trac.ini` file specify the field-names you want to translate from epoch to datetime-string in regular-expressions as follows: / trac.ini で 日時表記したいカラム名を正規表現で指定して:
    53 {{{
    54 #!ini
     53{{{#!ini
    5554[epochfield]
    5655date_columns = .*_date, .*日付?
     
    6059
    6160And, for example, create a report query as follows: / たとえば以下のようにSQLを書くと、
    62 {{{
    63 #!sql
     61{{{#!sql
    6462SELECT id, summary, ticket.time,
    65     a.time as accepted_datetime,
    66     c.time as closed_datetime,
    67     c.author as Closer
     63    a.time AS accepted_datetime,
     64    c.time AS closed_datetime,
     65    c.author AS Closer
    6866FROM ticket
    6967LEFT JOIN (
     
    7371        GROUP BY ticket, newvalue, author
    7472) AS a ON (a.ticket = ticket.id AND a.status = 'accepted')
    75 left join (
     73LEFT JOIN (
    7674    SELECT ticket, author, newvalue AS status, MAX(time) AS time
    7775        FROM ticket_change