changeset 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 9024748fb584
children 7b74079beec9
files rhodecode/templates/changeset/changeset.html rhodecode/templates/compare/compare_diff.html rhodecode/templates/pullrequests/pullrequest_show.html
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
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
--- a/rhodecode/templates/compare/compare_diff.html	Wed Jan 30 01:09:55 2013 +0100
+++ b/rhodecode/templates/compare/compare_diff.html	Wed Jan 30 00:06:36 2013 +0100
@@ -59,7 +59,7 @@
               %endfor
             </div>
             % 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>
@@ -70,7 +70,7 @@
       ${diff_block.diff_block_simple([c.changes[fid]])}
     %endfor
     % 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
      <script type="text/javascript">
 
--- a/rhodecode/templates/pullrequests/pullrequest_show.html	Wed Jan 30 01:09:55 2013 +0100
+++ b/rhodecode/templates/pullrequests/pullrequest_show.html	Wed Jan 30 00:06:36 2013 +0100
@@ -119,7 +119,7 @@
                 %endfor
               </div>
               % 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>
@@ -178,7 +178,7 @@
       ${diff_block.diff_block_simple([c.changes[fid]])}
     %endfor
     % 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