Uncommited changes synced
authorAlan Knowles <alan@roojs.com>
Mon, 31 Dec 2018 04:32:28 +0000 (12:32 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 31 Dec 2018 04:32:28 +0000 (12:32 +0800)
jtemplates/change_comment.html
jtemplates/change_commit.html

index 049e953..f5642dd 100644 (file)
@@ -1,18 +1,35 @@
 
+<!-- this is a single change item.. -->
+
 {script:}
    //Roo.ux.Showdown.toHtml(Roo.util.Format.htmlEncode(t.reason)):h
 {end:}
 
+<!-- bubble appears before the info line... -->
 <li  class="change-log-item-comment">
     <div class="timelineevent">
         <div class="timelinetext">
             <div class="timelinereason">
                 <span class="mtrack-ticket-link">
+{if(t.rev.length)}
+    {script:}
+        for(var fn in t.commit.files) {
+            var diff = t.commit.files[fn];
+    {end:}
+    <div class="showdown"
+                    style="white-space: pre-wrap;font-family: 'Consolas', 'Bitstream Vera Sans Mono', 'Monaco', 'Courier New', 'Courier'">
+    {Roo.util.Format.htmlEncode(diff).replace(/\n/g,'<br/>'):h}
+    </div>
+      {script:}
+            }
+    {end:} 
+{else:}
                 <div class="bubble-wrap"><div class="showdown"
                     style="white-space: pre-wrap;font-family: 'Consolas', 'Bitstream Vera Sans Mono', 'Monaco', 'Courier New', 'Courier'">
 {Roo.util.Format.htmlEncode(t.reason).replace(/\n/g,'<br/>'):h}
  </div><p>Comment Added by <B>{t.person_id_name}</B>  on {t.changedate}</p></div>
-                
+{end:}                
+                </span>
             </div>
         </div>    
     </div>        
index f28b3b4..3b53bce 100644 (file)
@@ -11,7 +11,7 @@
             </li>
         </ul>
         
-        <PRE>
+        <PRE>xxxxx
         {JSON.stringify(t.audit, null,4)}
         </PRE>