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

ef5584
ef5584
ef5584
ef5584
ef5584
 

Navigation

ef5584
 with:links = chrome.links ?>
ef5584
  
    ef5584
       if:changeset.chgset ?>
    ef5584
        if:changeset.restricted ?>
    ef5584
         set:change = "Change" ?>
    ef5584
        else ?>
    ef5584
         set:change = "Changeset" ?>
    ef5584
        /if ?>
    ef5584
        
  • ef5584
         if:len(links.prev) ?> ← 
    ef5584
          
    ef5584
           var:links.prev.0.title ?>">Previous  
    ef5584
         else ?>
    ef5584
          ← Previous 
    ef5584
         /if ?>
    ef5584
        
    ef5584
        
  • ef5584
         if:len(links.next) ?>
    ef5584
          
    ef5584
           var:links.next.0.title ?>">Next  → 
    ef5584
         else ?>
    ef5584
          Next  →
    ef5584
         /if ?>
    ef5584
        
    ef5584
       else ?>
    ef5584
        
  • Reverse Diff
  • ef5584
       /if ?>
    ef5584
      
    ef5584
     /with ?>
    ef5584
    ef5584
    ef5584
    ef5584
     
    ef5584
      if:changeset.chgset ?>
    ef5584
       if:changeset.restricted ?>
    ef5584
        

    Changeset

    ef5584
           
    ef5584
         for 
    ef5584
           
    ef5584
        
    ef5584
       else ?>
    ef5584
        

    Changeset

    ef5584
       /if ?>
    ef5584
      else ?>
    ef5584
        if:changeset.restricted ?>
    ef5584
        

    Changes in

    ef5584
          
    ef5584
          
    ef5584
          [:]
    ef5584
        
    ef5584
       else ?>
    ef5584
        

    Changes from

    ef5584
           
    ef5584
         at 
    ef5584
          r
    ef5584
         to 
    ef5584
          
    ef5584
         at 
    ef5584
         r
    ef5584
        
    ef5584
       /if ?>
    ef5584
      /if ?>
    ef5584
     
    ef5584
    ef5584
    ef5584
     if:len(change.diff) ?>
    ef5584
      set:has_diffs = 1 ?>
    ef5584
     /if ?>
    ef5584
    /each ?>
    ef5584
      || diff.options.ignorecase || diff.options.ignorewhitespace ?>
    ef5584
    <form method="post" id="prefs" action="">
    ef5584
     
    ef5584
      if:!changeset.chgset ?>
    ef5584
       <input type="hidden" name="old_path" value="<?cs var:changeset.old_path ?>" />
    ef5584
       <input type="hidden" name="new_path" value="<?cs var:changeset.new_path ?>" />
    ef5584
       <input type="hidden" name="old" value="<?cs var:changeset.old_rev ?>" />
    ef5584
       <input type="hidden" name="new" value="<?cs var:changeset.new_rev ?>" />
    ef5584
      /if ?>
    ef5584
      <label for="style">View differences</label>
    ef5584
      <select id="style" name="style">
    ef5584
       
    ef5584
         if:diff.style == 'inline' ?> selected="selected"
    ef5584
         /if ?>>inline</option>
    ef5584
       
    ef5584
         if:diff.style == 'sidebyside' ?> selected="selected"
    ef5584
         /if ?>>side by side</option>
    ef5584
      </select>
    ef5584
      
    ef5584
       Show 
    ef5584
         maxlength="3" value="" />
    ef5584
       <label for="contextlines">lines around each change</label>
    ef5584
      
    ef5584
      <fieldset id="ignore">
    ef5584
       <legend>Ignore:</legend>
    ef5584
       
    ef5584
        
    ef5584
          if:diff.options.ignoreblanklines ?> checked="checked" />
    ef5584
        <label for="blanklines">Blank lines</label>
    ef5584
       
    ef5584
       
    ef5584
        
    ef5584
          if:diff.options.ignorecase ?> checked="checked" />
    ef5584
        <label for="case">Case changes</label>
    ef5584
       
    ef5584
       
    ef5584
        
    ef5584
          if:diff.options.ignorewhitespace ?> checked="checked" />
    ef5584
        <label for="whitespace">White space changes</label>
    ef5584
       
    ef5584
      </fieldset>
    ef5584
      
    ef5584
       <input type="submit" name="update" value="Update" />
    ef5584
      
    ef5584
     
    ef5584
    </form>
    ef5584
    ef5584
    ef5584
      set:ndiffs = len(item.diff) ?>
    ef5584
      set:nprops = len(item.props) ?>
    ef5584
      
    ef5584
      if:cl == "rem" ?>
    ef5584
       
    ef5584
         var:item.browser_href.old ?>">
    ef5584
      else ?>
    ef5584
       
    ef5584
         var:item.browser_href.new ?>">(root)
    ef5584
      /if ?>
    ef5584
      ()
    ef5584
      if:item.path.old && item.change == 'copy' || item.change == 'move' ?>
    ef5584
       <small>( from 
    ef5584
        var:item.browser_href.old ?>" title="Show original file (rev. 
    ef5584
        var:item.rev.old ?>)">)</small>
    ef5584
      /if ?>
    ef5584
      if:item.diff_href ?>
    ef5584
        (view diffs)
    ef5584
      elif:$ndiffs + $nprops > #0 ?>
    ef5584
        (
    ef5584
          if:$ndiffs > #0 ?> diff #1 ?>s
    ef5584
          /if ?>
    ef5584
          if:$ndiffs && $nprops ?>, 
    ef5584
          if:$nprops > #0 ?> prop #1 ?>s
    ef5584
          /if ?>)
    ef5584
      elif:cl == "mod" ?>
    ef5584
        (
    ef5584
            title="Show previous version in browser">previous)
    ef5584
      /if ?>
    ef5584
    ef5584
    ef5584
    ef5584
     if:changeset.chgset ?>
    ef5584
     
    Timestamp:
    ef5584
     
    ef5584
      (less than one hour ago)
    ef5584
     
    Author:
    ef5584
     
    ef5584
     
    ef5584
     
    :
    ef5584
     
    ef5584
     
    ef5584
     
    Message:
    ef5584
     
    ef5584
      alt:changeset.message ?> 
    ef5584
     /if ?>
    ef5584
     
    ef5584
      if:len(changeset.changes) > #0 ?>
    ef5584
       Files:
    ef5584
      else ?>
    ef5584
       (No files)
    ef5584
      /if ?>
    ef5584
     
    ef5584
     
    ef5584
      
      ef5584
         
    • ef5584
          if:item.change == 'add' ?>
      ef5584
           call:node_change(item, 'add', 'added') ?>
      ef5584
          elif:item.change == 'delete' ?>
      ef5584
           call:node_change(item, 'rem', 'deleted') ?>
      ef5584
          elif:item.change == 'copy' ?>
      ef5584
           call:node_change(item, 'cp', 'copied') ?>
      ef5584
          elif:item.change == 'move' ?>
      ef5584
           call:node_change(item, 'mv', 'moved') ?>
      ef5584
          elif:item.change == 'edit' ?>
      ef5584
           call:node_change(item, 'mod', 'modified') ?>
      ef5584
          /if ?>
      ef5584
         
      ef5584
        
      ef5584
       
      ef5584
      ef5584
      ef5584
      ef5584
       
      ef5584
        

      Legend:

      ef5584
        
      ef5584
         
      Unmodified
      ef5584
         
      Added
      ef5584
         
      Removed
      ef5584
         
      Modified
      ef5584
         
      Copied
      ef5584
         
      Moved
      ef5584
        
      ef5584
       
      ef5584
       
        ef5584
         each:item = changeset.changes ?>
        ef5584
          if:len(item.diff) || len(item.props) ?>
        ef5584
           var:name(item) ?>">

        ef5584
           var:item.browser_href.new ?>" title="Show new revision 
        ef5584
           var:item.rev.new ?> of this file in browser">
        ef5584
           var:item.path.new ?>
        ef5584
           if:len(item.props) ?>
          ef5584
              each:prop = item.props ?>
        • Property
        • ef5584
               var:prop.name ?> 
          ef5584
               if:prop.old && prop.new ?>changed from 
          ef5584
               elif:!prop.old ?>set
          ef5584
               else ?>deleted
          ef5584
               /if ?>
          ef5584
               if:prop.old && prop.new ?><tt></tt>
          ef5584
               if:prop.new ?> to <tt></tt>
          ef5584
              /each ?>
          ef5584
             /if ?>
          ef5584
             if:len(item.diff) ?>
          ef5584
              var:diff.style ?>" summary="Differences" cellspacing="0">
          ef5584
              if:diff.style == 'sidebyside' ?>
          ef5584
               
          ef5584
               
          ef5584
               
          ef5584
                
          ef5584
                 var:item.browser_href.old ?>" title="Show old rev. 
          ef5584
                 var:item.rev.old ?> of ">Revision 
          ef5584
                 var:item.rev.old ?>
          ef5584
                
          ef5584
                 var:item.browser_href.new ?>" title="Show new rev. 
          ef5584
                 var:item.rev.new ?> of ">Revision 
          ef5584
                 var:item.rev.new ?>
          ef5584
                
          ef5584
               
          ef5584
               each:change = item.diff ?>
          ef5584
                call:diff_display(change, diff.style) ?>
          ef5584
                if:name(change) < len(item.diff) - 1 ?>
          ef5584
                 … … 
          ef5584
                
          ef5584
               /each ?>
          ef5584
              else ?>
          ef5584
               
          ef5584
               
          ef5584
                
          ef5584
                 var:item.browser_href.old ?>" title="Show old version of 
          ef5584
                 var:item.path.old ?>">r
          ef5584
                
          ef5584
                 var:item.browser_href.new ?>" title="Show new version of 
          ef5584
                 var:item.path.new ?>">r
          ef5584
                 
          ef5584
               
          ef5584
               each:change = item.diff ?>
          ef5584
                call:diff_display(change, diff.style) ?>
          ef5584
                if:name(change) < len(item.diff) - 1 ?>
          ef5584
                 …… 
          ef5584
                
          ef5584
               /each ?>
          ef5584
              /if ?>
          ef5584
             /if ?>
          ef5584
            /if ?>
          ef5584
           /each ?>
          ef5584
          ef5584
          ef5584
          ef5584