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

f2e824
f2e824
f2e824
f2e824
f2e824
 

Navigation

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

    Changeset

    f2e824
           
    f2e824
         for 
    f2e824
           
    f2e824
        
    f2e824
       else ?>
    f2e824
        

    Changeset

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

    Changes in

    f2e824
          
    f2e824
          
    f2e824
          [:]
    f2e824
        
    f2e824
       else ?>
    f2e824
        

    Changes from

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

      Legend:

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

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