Blame Identity/Webenv/Trac/templates/ticket.cs

ef5584
ef5584
ef5584
ef5584
ef5584
 

Ticket Navigation

ef5584
 with:links = chrome.links ?>
ef5584
  if:len(links.prev) || len(links.up) || len(links.next) ?>
    ef5584
       if:len(links.prev) ?>
    ef5584
        
  • ef5584
    ef5584
           var:links.prev.0.title ?>">Previous Ticket
    ef5584
        
    ef5584
       /if ?>
    ef5584
       if:len(links.up) ?>
    ef5584
        
    ef5584
                        if:!len(links.next) ?> last">
    ef5584
         
    ef5584
           var:links.up.0.title ?>">Back to Query
    ef5584
        
    ef5584
       /if ?>
    ef5584
       if:len(links.next) ?>
    ef5584
        
  • ef5584
         
    ef5584
           var:links.next.0.title ?>">Next Ticket →
    ef5584
        
    ef5584
       /if ?>
    ef5584
      /if ?>
    ef5584
     /with ?>
    ef5584
    ef5584
    ef5584
    ef5584
    ef5584
     

    Ticket # (

    ef5584
      var:ticket.status ?>
    ef5584
      if:ticket.type ?> 
    ef5584
      /if ?>
    ef5584
      if:ticket.resolution ?>: 
    ef5584
      /if ?>)
    ef5584
    ef5584
    ef5584
    ef5584
     
    ef5584
      

    Opened ago

    ef5584
      if:ticket.lastmod ?>
    ef5584
       

    Last modified ago

    ef5584
      
    ef5584
     
    ef5584
     

    ef5584
     
    ef5584
      
    ef5584
       Reported by:
    ef5584
       
    ef5584
       Assigned to:
    ef5584
       
    ef5584
         if:ticket.status == 'assigned' ?> (accepted)
    ef5584
      
    ef5584
      each:field = ticket.fields ?>
    ef5584
       if:!field.skip ?>
    ef5584
        set:num_fields = num_fields + 1 ?>
    ef5584
       /if ?>
    ef5584
      /each ?>
    ef5584
      set:idx = 0 ?>
    ef5584
      each:field = ticket.fields ?>
    ef5584
       if:!field.skip ?>
    ef5584
        if:fullrow && idx % 2 ?>
    ef5584
        :
    ef5584
        <td<?cs if:fullrow ?> colspan="3" headers="h_
    ef5584
          var:name(field) ?>">
    ef5584
        if:idx % 2 || fullrow ?>
    ef5584
        elif:idx == num_fields - 1 ?>
    ef5584
        /if ?>
    ef5584
       /if ?>
    ef5584
      /each ?>
    ef5584
     
    ef5584
     if:ticket.description ?>
    ef5584
      <form method="get" action="<?cs var:ticket.href ?>#comment" class="printableform">
    ef5584
       
    ef5584
        

    ef5584
         if:trac.acl.TICKET_APPEND ?>
    ef5584
         
    ef5584
          <input type="hidden" name="replyto" value="description" />
    ef5584
          <input type="submit" value="Reply" title="Reply, quoting this description" />
    ef5584
         
    ef5584
         /if ?>
    ef5584
         Description 
    ef5584
         if:ticket.description.lastmod ?>(Last modified by )
    ef5584
         /if ?>
    ef5584
        
    ef5584
        
    ef5584
       
    ef5584
      </form>
    ef5584
     /if ?>
    ef5584
    ef5584
    ef5584
    ef5584
    ef5584
    ef5584
    ef5584
    ef5584
    <small></small>
    ef5584
    ef5584
    ef5584

    Change History

    ef5584
    ef5584
     each:change = ticket.changes ?>
    ef5584
     <form method="get" action="<?cs var:ticket.href ?>#comment" class="printableform">
    ef5584
     
    ef5584
      

    id="comment:">

    ef5584
       if:change.cnum ?>
    ef5584
        if:trac.acl.TICKET_APPEND ?>
    ef5584
        
    ef5584
         <input type="hidden" name="replyto" value="<?cs var:change.cnum ?>" />
    ef5584
         <input type="submit" value="Reply" title="Reply to comment <?cs var:change.cnum ?>" />
    ef5584
        
    ef5584
        /if ?>
    ef5584
        
    ef5584
         set:nreplies = len(ticket.replies[change.cnum]) ?>
    ef5584
         if:nreplies || change.replyto ?>(
    ef5584
          if:change.replyto ?>in reply to: 
    ef5584
           call:commentref('↑ ', change.replyto) ?>; 
    ef5584
          /if ?>
    ef5584
          if nreplies ?>
    ef5584
           call:plural('follow-up', nreplies) ?>: 
    ef5584
           each:reply = ticket.replies[change.cnum] ?>
    ef5584
            call:commentref('↓ ', reply) ?>
    ef5584
           /each ?>
    ef5584
          /if ?>)
    ef5584
        /if ?>
    ef5584
        
    ef5584
       /if ?>
    ef5584
       var:change.date ?> changed by 
    ef5584
      
    ef5584
      if:len(change.fields) ?>
    ef5584
       
      ef5584
         each:field = change.fields ?>
      ef5584
          
    • ef5584
          if:name(field) == 'attachment' ?> added
      ef5584
          elif:field.old && field.new ?>changed from 
      ef5584
           var:field.old ?> to 
      ef5584
          elif:!field.old && field.new ?>set to 
      ef5584
          elif:field.old && !field.new ?>deleted
      ef5584
          else ?>changed
      ef5584
          /if ?>.
      ef5584
          
      ef5584
         /each ?>
      ef5584
         
      ef5584
        /if ?>
      ef5584
        
      ef5584
       
      ef5584
       </form>
      ef5584
       /each ?>
      ef5584
      ef5584
      /if ?>
      ef5584
      ef5584
      ef5584
      <form action="<?cs var:ticket.href ?>#preview" method="post">
      ef5584
       

      Add/Change #

      ef5584
         var:ticket.id ?> ()
      ef5584
       
      ef5584
        
      ef5584
         <label for="author">Your email or username:</label>
      ef5584
         
      ef5584
           value="" />
      ef5584
        
      ef5584
       
      ef5584
       
      ef5584
        <fieldset class="iefix">
      ef5584
         <label for="comment">Comment (you may use 
      ef5584
           var:trac.href.wiki ?>/WikiFormatting">WikiFormatting here):</label>
      ef5584
         

      <textarea id="comment" name="comment" class="wikitext" rows="10" cols="78">

      ef5584
      </textarea>

      ef5584
        </fieldset>
      ef5584
        if ticket.comment_preview ?>
      ef5584
         <fieldset id="preview">
      ef5584
          <legend>Comment Preview</legend>
      ef5584
          
      ef5584
         </fieldset>
      ef5584
        /if ?>
      ef5584
       
      ef5584
      ef5584
       <fieldset id="properties">
      ef5584
        <legend>Change Properties</legend>
      ef5584
        
      ef5584
         <label for="summary">Summary:</label>
      ef5584
         
      ef5584
           var:ticket.summary ?>" size="70" />
      ef5584
         
      ef5584
         if:len(ticket.fields.type.options) ?>
      ef5584
         
      ef5584
          <label for="type">Type:</label>
      ef5584
          
      ef5584
           call:hdf_select(ticket.fields.type.options, 'type', ticket.type, 0) ?>
      ef5584
          
      ef5584
         
      ef5584
         /if ?>
      ef5584
         if:trac.acl.TICKET_ADMIN ?>
      ef5584
          <label for="description">Description:</label>
      ef5584
          
      ef5584
           <textarea id="description" name="description" class="wikitext" rows="10" cols="68">
      ef5584
      </textarea>
      ef5584
          
      ef5584
         
      ef5584
          <label for="reporter">Reporter:</label>
      ef5584
          
      ef5584
            var:ticket.reporter ?>" id="reporter" name="reporter" size="70" />
      ef5584
         
      ef5584
         /if ?>
      ef5584
        
      ef5584
        each:field = ticket.fields ?>
      ef5584
         if:!field.skip ?>
      ef5584
          set:num_fields = num_fields + 1 ?>
      ef5584
         /if ?>
      ef5584
        /each ?>
      ef5584
         each:field = ticket.fields ?>
      ef5584
          if:!field.skip ?>
      ef5584
           if:fullrow && idx % 2 ?>
      ef5584
           
      ef5584
             if:field.type != 'radio' ?><label for="<?cs var:name(field) ?>">
      ef5584
             /if ?>:
      ef5584
             if:field.type != 'radio' ?></label>
      ef5584
           <td<?cs if:fullrow ?> colspan="3">
      ef5584
            if:field.type == 'text' ?>
      ef5584
              var:name(field) ?>" name="
      ef5584
              var:name(field) ?>" value="" />
      ef5584
            elif:field.type == 'select' ?>
      ef5584
              var:name(field) ?>" name="
      ef5584
              var:name(field) ?>">
      ef5584
              if:field.optional ?><option></option>
      ef5584
              each:option = field.options ?>
      ef5584
               if:option == ticket[name(field)] ?> selected="selected">
      ef5584
               var:option ?></option>
      ef5584
              /each ?></select>
      ef5584
            elif:field.type == 'checkbox' ?>
      ef5584
              var:name(field) ?>" />
      ef5584
              var:name(field) ?>" name="
      ef5584
              var:name(field) ?>" value="1"
      ef5584
              if:ticket[name(field)] ?> checked="checked" />
      ef5584
            elif:field.type == 'textarea' ?>
      ef5584
              var:name(field) ?>" name="
      ef5584
              var:name(field) ?>"
      ef5584
              if:field.height ?> rows=""
      ef5584
              if:field.width ?> cols="">
      ef5584
      </textarea>
      ef5584
            elif:field.type == 'radio' ?>
      ef5584
             each:option = field.options ?><label>
      ef5584
               var:name(field) ?>" name="
      ef5584
               var:name(field) ?>" value=""
      ef5584
               if:ticket[name(field)] == option ?> checked="checked" /> 
      ef5584
               var:option ?></label> 
      ef5584
              /each ?>
      ef5584
            /if ?>
      ef5584
           if:idx % 2 || fullrow ?>
      ef5584
            if:idx < num_fields - 1 ?>
      ef5584
            /if ?>
      ef5584
           elif:idx == num_fields - 1 ?>
      ef5584
           /if ?>
      ef5584
          /if ?>
      ef5584
         /each ?>
      ef5584
        
      ef5584
       </fieldset>
      ef5584
      ef5584
       
      ef5584
               ticket.actions.resolve || ticket.actions.reassign ?>
      ef5584
       <fieldset id="action">
      ef5584
        <legend>Action</legend>
      ef5584
        if:!ticket.action ?>
      ef5584
        /if ?>
      ef5584
        def:action_radio(id) ?>
      ef5584
         
      ef5584
           var:id ?>" checked="checked"
      ef5584
           /if ?> />
      ef5584
        /def ?>
      ef5584
        
      ef5584
         <label for="leave">leave as </label>
      ef5584
        if:ticket.actions.accept ?>
      ef5584
         call:action_radio('accept') ?>
      ef5584
         <label for="accept">accept ticket</label>
      ef5584
        /if ?>
      ef5584
        if:ticket.actions.reopen ?>
      ef5584
         call:action_radio('reopen') ?>
      ef5584
         <label for="reopen">reopen ticket</label>
      ef5584
        /if ?>
      ef5584
        if:ticket.actions.resolve ?>
      ef5584
         call:action_radio('resolve') ?>
      ef5584
         <label for="resolve">resolve</label>
      ef5584
         if:len(ticket.fields.resolution.options) ?>
      ef5584
          <label for="resolve_resolution">as:</label>
      ef5584
          
      ef5584
                               ticket.resolve_resolution, 0) ?>
      ef5584
         /if ?>
      ef5584
        /if ?>
      ef5584
        if:ticket.actions.reassign ?>
      ef5584
         call:action_radio('reassign') ?>
      ef5584
         <label for="reassign">reassign</label>
      ef5584
         <label>to:
      ef5584
         if:len(ticket.fields.owner.options) ?>
      ef5584
          call:hdf_select(ticket.fields.owner.options, "reassign_owner",
      ef5584
                          ticket.reassign_owner, 1) ?>
      ef5584
         else ?>
      ef5584
          
      ef5584
            var:ticket.reassign_owner ?>" />
      ef5584
         /if ?></label>
      ef5584
        /if ?>
      ef5584
        if ticket.actions.resolve || ticket.actions.reassign ?>
      ef5584
         <script type="text/javascript">
      ef5584
          each:action = ticket.actions ?>
      ef5584
           var  = document.getElementById("");
      ef5584
          /each ?>
      ef5584
           var updateActionFields = function() {
      ef5584
              enableControl('resolve_resolution', resolve.checked);
      ef5584
              enableControl('reassign_owner', reassign.checked);
      ef5584
           };
      ef5584
           addEvent(window, 'load', updateActionFields);
      ef5584
           each:action = ticket.actions ?>
      ef5584
            addEvent(, 'click', updateActionFields);
      ef5584
           /each ?>
      ef5584
         </script>
      ef5584
        /if ?>
      ef5584
       </fieldset>
      ef5584
       else ?>
      ef5584
        <input type="hidden" name="action" value="leave" />
      ef5584
       /if ?>
      ef5584
      ef5584
       
      ef5584
         var:htdocs_location ?>js/wikitoolbar.js"></script>
      ef5584
      ef5584
       
      ef5584
        <input type="hidden" name="ts" value="<?cs var:ticket.ts ?>" />
      ef5584
        <input type="hidden" name="replyto" value="<?cs var:ticket.replyto ?>" />
      ef5584
        <input type="hidden" name="cnum" value="<?cs var:ticket.cnum ?>" />
      ef5584
        <input type="submit" name="preview" value="Preview" accesskey="r" /> 
      ef5584
        <input type="submit" value="Submit changes" />
      ef5584
       
      ef5584
      </form>
      ef5584
      ef5584
      ef5584
       
      ef5584
       <script type="text/javascript">
      ef5584
        addHeadingLinks(document.getElementById("searchable"), "Permalink to $id");
      ef5584
       </script>
      ef5584
      ef5584