Mercurial > hg
comparison mercurial/templates/paper/filerevision.tmpl @ 19430:5ec5097b4c0f
hgweb: add line wrapping switch to file source view
This uses classList property, which is well-supported now: both Chromium 8.0+,
Firefox 3.6+ and Opera 11.5+ support it, as well as relatively modern versions
of other browsers.
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Fri, 12 Jul 2013 15:58:13 +0400 |
parents | f2e4fdb3dd27 |
children | b8ecc3830c89 |
comparison
equal
deleted
inserted
replaced
19429:c8490dcc5fb3 | 19430:5ec5097b4c0f |
---|---|
65 </tr> | 65 </tr> |
66 {changesettag} | 66 {changesettag} |
67 </table> | 67 </table> |
68 | 68 |
69 <div class="overflow"> | 69 <div class="overflow"> |
70 <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div> | |
70 <div class="sourcefirst"> line source</div> | 71 <div class="sourcefirst"> line source</div> |
71 <pre class="sourcelines">{text%fileline}</pre> | 72 <pre class="sourcelines wrap">{text%fileline}</pre> |
72 <div class="sourcelast"></div> | 73 <div class="sourcelast"></div> |
73 </div> | 74 </div> |
74 </div> | 75 </div> |
75 </div> | 76 </div> |
76 | 77 |