Patchwork [4,of,4,V2] hgweb: add line wrapping switch to file diff and changeset views

login
register
mail settings
Submitter Alexander Plavin
Date July 13, 2013, 10:12 p.m.
Message ID <93b7d3a5eeb514ed228c.1373753533@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/1878/
State Superseded
Headers show

Comments

Alexander Plavin - July 13, 2013, 10:12 p.m.
# HG changeset patch
# User Alexander Plavin <me@aplavin.ru>
# Date 1373662676 -14400
#      Sat Jul 13 00:57:56 2013 +0400
# Node ID 93b7d3a5eeb514ed228cb697c6421975abbb3b95
# Parent  5dfb58221fd278555d88223910bd1cde787940da
hgweb: add line wrapping switch to file diff and changeset views

Patch

diff -r 5dfb58221fd2 -r 93b7d3a5eeb5 mercurial/templates/paper/changeset.tmpl
--- 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 reset-lineno">
 {diff}
diff -r 5dfb58221fd2 -r 93b7d3a5eeb5 mercurial/templates/paper/filediff.tmpl
--- 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 reset-lineno">
 {diff}
diff -r 5dfb58221fd2 -r 93b7d3a5eeb5 tests/test-hgweb-commands.t
--- 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 reset-lineno">
   <div class="bottomline inc-lineno"><pre class="sourcelines wrap">
diff -r 5dfb58221fd2 -r 93b7d3a5eeb5 tests/test-hgweb-diffs.t
--- 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 reset-lineno">
   <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 reset-lineno">
   <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 reset-lineno">
   <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 reset-lineno">
   <div class="bottomline inc-lineno"><pre class="sourcelines wrap">
diff -r 5dfb58221fd2 -r 93b7d3a5eeb5 tests/test-hgweb-removed.t
--- 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 reset-lineno">
   <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 reset-lineno">
   <div class="bottomline inc-lineno"><pre class="sourcelines wrap">