diff options
Diffstat (limited to 'webapp/templates/diff_navigation.html')
-rw-r--r-- | webapp/templates/diff_navigation.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/webapp/templates/diff_navigation.html b/webapp/templates/diff_navigation.html new file mode 100644 index 0000000000..7bb925d35b --- /dev/null +++ b/webapp/templates/diff_navigation.html @@ -0,0 +1,36 @@ +<div class="tips codenav"> +{%comment%} +For some reason, +{%url codereview.views.diff change.key.id,patchset.key.id,patch.prev.key.id%} +doesn't work. Go figure. Bleah. So use absolute URLs. +{%endcomment%} +{%if patch.prev%} +<a id="prevFile" + href="/{{change.key.id}}/diff/{{patchset.key.id}}/{%spaceless%} + {{patch.prev.id}}{%if context%}?context={{context}}{%endif%} + {%endspaceless%}"> +« {{patch.prev.filename}}</a> ('k'){%else%} +<span class="disabled">« no previous file</span>{%endif%} +| +{%if patch.next%} +<a id="nextFile" + href="/{{change.key.id}}/diff/{{patchset.key.id}}/{%spaceless%} + {{patch.next.id}}{%if context %}?context={{context}}{%endif%} + {%endspaceless%}"> +{{patch.next.filename}} »</a> ('j'){%else%} +<span class="disabled">no next file »</span>{%endif%} +| + +<a href="javascript:if (intraLineDiff) intraLineDiff.toggle()"> +Toggle Intra-line Diffs</a> ('i') +| +<a href="javascript:M_expandAllInlineComments()">Expand Comments</a> ('e') +| +<a href="javascript:M_collapseAllInlineComments()">Collapse Comments</a> ('c') +| +<a id="show-all-inline" + style="display:none" + href="javascript:M_showAllInlineComments()">Show Comments</a> +<a id="hide-all-inline" + href="javascript:M_hideAllInlineComments()">Hide Comments</a> ('s') +</div> |