diff rhodecode/templates/changeset/changeset.html @ 3266:91f4e30da32d beta

added show full diff into cut off message ref #745
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 30 Jan 2013 00:06:36 +0100
parents b4f401524060
children 1af36014d96f
line wrap: on
line diff
--- a/rhodecode/templates/changeset/changeset.html	Wed Jan 30 01:09:55 2013 +0100
+++ b/rhodecode/templates/changeset/changeset.html	Wed Jan 30 00:06:36 2013 +0100
@@ -134,7 +134,7 @@
                   </div>
               %endfor
               % if c.limited_diff:
-                <h5>${_('Changeset was too big and was cut off...')}</h5>
+                <h5>${_('Changeset was too big and was cut off...')} <a href="${h.url.current(fulldiff=1)}" onclick="return confirm('${_("confirm to show potentially huge diff")}')">${_('Show full diff')}</a></h5>
               % endif
             </div>
         </div>
@@ -146,7 +146,7 @@
     ${diff_block.diff_block(c.changes[c.changeset.raw_id])}
 
     % if c.limited_diff:
-      <h4>${_('Changeset was too big and was cut off...')}</h4>
+      <h4>${_('Changeset was too big and was cut off...')} <a href="${h.url.current(fulldiff=1)}" onclick="return confirm('${_("confirm to show potentially huge diff")}')">${_('Show full diff')}</a></h4>
     % endif
 
     ## template for inline comment form