Blame Artworks/Webenv/Trac/0.10.4/Modern/templates/changeset.cs

Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
 

Navigation

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

    Changeset

    Alain Reguera Delgado 46de3c
           
    Alain Reguera Delgado 46de3c
         for 
    Alain Reguera Delgado 46de3c
           
    Alain Reguera Delgado 46de3c
        
    Alain Reguera Delgado 46de3c
       else ?>
    Alain Reguera Delgado 46de3c
        

    Changeset

    Alain Reguera Delgado 46de3c
       /if ?>
    Alain Reguera Delgado 46de3c
      else ?>
    Alain Reguera Delgado 46de3c
        if:changeset.restricted ?>
    Alain Reguera Delgado 46de3c
        

    Changes in

    Alain Reguera Delgado 46de3c
          
    Alain Reguera Delgado 46de3c
          
    Alain Reguera Delgado 46de3c
          [:]
    Alain Reguera Delgado 46de3c
        
    Alain Reguera Delgado 46de3c
       else ?>
    Alain Reguera Delgado 46de3c
        

    Changes from

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

      Legend:

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

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