Changeset 116 for websites/coderepos.org/trac/share/js
- Timestamp:
- 09/14/07 01:09:47 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
websites/coderepos.org/trac/share/js/HatenaStarTrac.js
r115 r116 22 22 23 23 for (var i = 0; i < elements.length; i++) { 24 entries.push(new Hatena.Star.Entry.TracBrowserDirList( elements[i]));24 entries.push(new Hatena.Star.Entry.TracBrowserDirList(content, elements[i])); 25 25 } 26 26 … … 43 43 for (var i = 1, n = lines.length; i < n; i++) { 44 44 if (lines[i].id.match(/^L\d+/)) { 45 entries.push(new Hatena.Star.Entry.TracBrowserCode( lines[i]));45 entries.push(new Hatena.Star.Entry.TracBrowserCode(content, lines[i])); 46 46 } 47 47 } … … 58 58 59 59 Hatena.Star.Entry.TracBrowserCode = new Ten.Class({ 60 initialize: function(th) { 60 initialize: function(content, th) { 61 var h1 = content.getElementsByTagName('h1')[0]; 61 62 var a = th.getElementsByTagName('a')[0]; 62 this.title = Ten.DOM.scrapeText( a);63 this.title = Ten.DOM.scrapeText(h1) + ' (Line: ' +Ten.DOM.scrapeText(a) + ')'; 63 64 this.uri = a.href; 64 65 … … 102 103 var a = h1.getElementsByTagName('a'); 103 104 a = a[a.length - 1]; 104 this.title = Ten.DOM.scrapeText( a);105 this.title = Ten.DOM.scrapeText(h1); 105 106 this.uri = a.href; 106 107 … … 116 117 var th = infoTable.getElementsByTagName('th')[0]; 117 118 var a = th.getElementsByTagName('a')[0]; 118 this.title = Ten.DOM.scrapeText(a);119 this.title = 'Changeset ' + Ten.DOM.scrapeText(a); 119 120 this.uri = a.href; 120 121 … … 127 128 128 129 Hatena.Star.Entry.TracBrowserDirList = new Ten.Class({ 129 initialize: function(td) { 130 initialize: function(content, td) { 131 var h1 = content.getElementsByTagName('h1')[0]; 130 132 this.td = td; 131 133 var tr = td.parentNode; 132 134 var a = td.getElementsByTagName('a')[0]; 133 this.title = Ten.DOM.scrapeText( a);135 this.title = Ten.DOM.scrapeText(h1) + '/' + Ten.DOM.scrapeText(a); 134 136 this.uri = a.href; 135 137
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)