Uncommited changes synced
[Pman.MTrack] / jtemplates / change_commit.html
1                              
2    el.select('.change-log-item').on('click', Pman.MTrack.auditToggle);
3             }
4         });
5         
6     },
7     auditToggle : function(e,y)
8     {
9        // Roo.log(this);
10         var id = this.id.split('-').pop();
11         Roo.get('change-expand-' + id).setVisibilityMode(Roo.Element.DISPLAY);
12         Roo.get('change-expand-' + id).toggle(true);
13         Roo.get('change-expander-' + id).toggleClass('change-log-item-expanded')
14         
15         
16
17 <li class="change-log-item" id="change-expander-{t.id}">
18     <span class="change" > Commit : {t.rev} change by {t.person_id_name}</span>
19 </li>
20     <div style="display:none" class="change-log-details" id="change-expand-{t.id}">
21         
22     
23     
24 {script:}
25     for(var fn in t.commit.files) {
26         var diff = t.commit.files[fn];
27 {end:}
28     <h4>{fn}</h4>
29     <div class="showdown"
30          style="white-space: pre;overflow:scroll;font-family: font-size: 10px;'Consolas', 'Bitstream Vera Sans Mono', 'Monaco', 'Courier New', 'Courier'">
31     {Roo.util.Format.htmlEncode(diff).replace(/\n/g,'<br/>'):h}
32     </div>
33       
34
35                   
36        {script:}
37            } 
38     {end:}            
39             
40             
41         
42     </div>
43