Changes between Version 1 and Version 2 of GenshiMacro


Ignore:
Timestamp:
Apr 2, 2012, 1:07:02 PM (12 years ago)
Author:
ejucovy
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenshiMacro

    v1 v2  
    4343== Download ==
    4444
    45 Download the zipped source from [download:genshimacro here].
     45Download the zipped source from [https://github.com/ejucovy/trac-GenshiMacro/tags here].
    4646
    4747== Source ==
    4848
    49 You can check out GenshiMacro from [http://trac-hacks.org/svn/genshimacro here] using Subversion, or [source:genshimacro browse the source] with Trac.
     49You can clone NewTicketLikeThisPlugin from [git://github.com/ejucovy/trac-GenshiMacro.git here] using Git, or [https://github.com/ejucovy/trac-GenshiMacro browse the source] with Github.
    5050
    5151== Example ==
    5252
    5353{{{
    54 #!html
    5554 
    5655  {{{
    5756  #!Genshi
    58   <div xmlns:py="http://genshi.edgewall.org/">
    59    <py:choose>
    60     <py:when test="req.session.authenticated">
    61      <form method="POST" action="${req.href.newticket()}">
    62       <input type="text" name="field_summary" placeholder="My new ticket"
    63              id="field-summary" />
    64       <input type="hidden" name="__FORM_TOKEN" value="${req.form_token}" />
    65       <input type="submit" />
    66      </form>
    67     </py:when>
    68     <py:otherwise>
    69      <b>To file a new ticket, you'll need to
    70         <a href="${req.href.login()}">log in</a> or
    71         <a href="${req.href.register()}">create an account</a>
    72         first.</b>
    73     </py:otherwise>
    74    </py:choose>
    75   </div> 
     57  <div xmlns:py="http://genshi.edgewall.org/">
     58   <py:choose>
     59    <py:when test="req.session.authenticated">
     60     <form method="POST" action="${req.href.newticket()}">
     61      <input type="text" name="field_summary" placeholder="My new ticket"
     62             id="field-summary" />
     63      <input type="hidden" name="__FORM_TOKEN" value="${req.form_token}" />
     64      <input type="submit" />
     65     </form>
     66    </py:when>
     67    <py:otherwise>
     68     <b>To file a new ticket, you'll need to
     69        <a  href="${req.href.login()}">log in</a>
     70        first.</b>
     71    </py:otherwise>
     72   </py:choose>
     73  </div> 
    7674  }}}
    7775