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

index 3d4d565..12cee4b 100644 (file)
@@ -5,17 +5,17 @@
     for(var fn in t.commit.files) {
         var diff = t.commit.files[fn];
 {end:}
-<li class="change-log-item" id="change-expander-{t.id}">
+<li class="change-log-item" id="change-expander-{t.id}-{fn}">
     <span class="change" > - {fn} change by {t.person_id_name}</span>
     
-    <div style="display:none" class="change-log-details" id="change-expand-{t.id}">
+    <div style="display:none" class="change-log-details" id="change-expand-{t.id}-{fn}">
         <ul>    
-            <li class="change-log-item" id="change-expander-{t.id}-a">
+            <li class="change-log-item" id="change-expander-{t.id}-{fn}-a">
             </li>
         </ul>
     
     <div class="showdown"
-         style="white-space: pre-wrap;font-family: 'Consolas', 'Bitstream Vera Sans Mono', 'Monaco', 'Courier New', 'Courier'">
+         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>