hgweb: add line wrapping switch to file diff and changeset views
authorAlexander Plavin <me@aplavin.ru>
Sat, 13 Jul 2013 00:57:56 +0400
changeset 19433 a79b21ece345
parent 19432 e92d4b8530cb
child 19434 7228cc98ca7d
hgweb: add line wrapping switch to file diff and changeset views
mercurial/templates/paper/changeset.tmpl
mercurial/templates/paper/filediff.tmpl
tests/test-hgweb-commands.t
tests/test-hgweb-diffs.t
tests/test-hgweb-removed.t
--- a/mercurial/templates/paper/changeset.tmpl	Sat Jul 13 00:57:10 2013 +0400
+++ b/mercurial/templates/paper/changeset.tmpl	Sat Jul 13 00:57:56 2013 +0400
@@ -77,6 +77,7 @@
 </table>
 
 <div class="overflow">
+<div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
 <div class="sourcefirst"> line diff</div>
 <div class="stripes2 diffblocks">
 {diff}
--- a/mercurial/templates/paper/filediff.tmpl	Sat Jul 13 00:57:10 2013 +0400
+++ b/mercurial/templates/paper/filediff.tmpl	Sat Jul 13 00:57:56 2013 +0400
@@ -68,6 +68,7 @@
 </table>
 
 <div class="overflow">
+<div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
 <div class="sourcefirst"> line diff</div>
 <div class="stripes2 diffblocks">
 {diff}
--- a/tests/test-hgweb-commands.t	Sat Jul 13 00:57:10 2013 +0400
+++ b/tests/test-hgweb-commands.t	Sat Jul 13 00:57:56 2013 +0400
@@ -450,6 +450,7 @@
   </table>
   
   <div class="overflow">
+  <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
   <div class="sourcefirst"> line diff</div>
   <div class="stripes2 diffblocks">
   <div class="bottomline inc-lineno"><pre class="sourcelines wrap">
--- a/tests/test-hgweb-diffs.t	Sat Jul 13 00:57:10 2013 +0400
+++ b/tests/test-hgweb-diffs.t	Sat Jul 13 00:57:56 2013 +0400
@@ -142,6 +142,7 @@
   </table>
   
   <div class="overflow">
+  <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
   <div class="sourcefirst"> line diff</div>
   <div class="stripes2 diffblocks">
   <div class="bottomline inc-lineno"><pre class="sourcelines wrap">
@@ -272,6 +273,7 @@
   </table>
   
   <div class="overflow">
+  <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
   <div class="sourcefirst"> line diff</div>
   <div class="stripes2 diffblocks">
   <div class="bottomline inc-lineno"><pre class="sourcelines wrap">
@@ -405,6 +407,7 @@
   </table>
   
   <div class="overflow">
+  <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
   <div class="sourcefirst"> line diff</div>
   <div class="stripes2 diffblocks">
   <div class="bottomline inc-lineno"><pre class="sourcelines wrap">
@@ -539,6 +542,7 @@
   </table>
   
   <div class="overflow">
+  <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
   <div class="sourcefirst"> line diff</div>
   <div class="stripes2 diffblocks">
   <div class="bottomline inc-lineno"><pre class="sourcelines wrap">
--- a/tests/test-hgweb-removed.t	Sat Jul 13 00:57:10 2013 +0400
+++ b/tests/test-hgweb-removed.t	Sat Jul 13 00:57:56 2013 +0400
@@ -115,6 +115,7 @@
   </table>
   
   <div class="overflow">
+  <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
   <div class="sourcefirst"> line diff</div>
   <div class="stripes2 diffblocks">
   <div class="bottomline inc-lineno"><pre class="sourcelines wrap">
@@ -216,6 +217,7 @@
   </table>
   
   <div class="overflow">
+  <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
   <div class="sourcefirst"> line diff</div>
   <div class="stripes2 diffblocks">
   <div class="bottomline inc-lineno"><pre class="sourcelines wrap">