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

index 12cee4b..b310e72 100644 (file)
@@ -1,32 +1,33 @@
                              
 
 
-{script:}
-    for(var fn in t.commit.files) {
-        var diff = t.commit.files[fn];
-{end:}
-<li class="change-log-item" id="change-expander-{t.id}-{fn}">
-    <span class="change" > - {fn} change by {t.person_id_name}</span>
+<li class="change-log-item" id="change-expander-{t.id}">
+    <span class="change" > Commit : {t.rev} change by {t.person_id_name}</span>
     
-    <div style="display:none" class="change-log-details" id="change-expand-{t.id}-{fn}">
+    <div style="display:none" class="change-log-details" id="change-expand-{t.id}">
         <ul>    
-            <li class="change-log-item" id="change-expander-{t.id}-{fn}-a">
+            <li class="change-log-item" id="change-expander-{t.id}-a">
             </li>
         </ul>
     
+    
+{script:}
+    for(var fn in t.commit.files) {
+        var diff = t.commit.files[fn];
+{end:}
+    <h4>{fn}</h4>
     <div class="showdown"
          style="white-space: pre;overflow:scroll;font-family: 'Consolas', 'Bitstream Vera Sans Mono', 'Monaco', 'Courier New', 'Courier'">
     {Roo.util.Format.htmlEncode(diff).replace(/\n/g,'<br/>'):h}
     </div>
       
-           
+
+                  
+       {script:}
+           } 
+    {end:}            
             
             
         
     </div>
 </li>
-
-                  
-       {script:}
-           } 
-    {end:} 
\ No newline at end of file