Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4298 from jwhitlock/revision-diff-drop-header-126…
Browse files Browse the repository at this point in the history
…9104

bug 1269104: Drop unused params from revision_diff
  • Loading branch information
escattone committed Jul 7, 2017
2 parents 6b29825 + 7a5672a commit c11c9cc
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions kuma/wiki/jinja2/wiki/includes/document_macros.html
Expand Up @@ -23,20 +23,16 @@
</div>
{%- endmacro %}

{% macro revision_diff(revision_from, revision_to, revision_from_header=None, revision_to_header=None, show_picker=False) -%}
{% macro revision_diff(revision_from, revision_to) -%}
{% if revision_from and revision_to %}
<section class="revision-diff">
<a class="change-revisions" href="{{ url('wiki.document_revisions', revision_from.document.slug)|urlparams(locale=revision_from.document.locale, origin='translate') }}">{{ _('Change Revisions') }}</a>
<header>
<div class="rev-from">
<h3>
{% if revision_from_header %}
{{ revision_from_header }}
{% else %}
<a href="{{ url('wiki.revision', revision_from.document.slug, revision_from.id) }}" rel="nofollow, noindex">
{{ _('Revision %(num)s:', num=revision_from.id) }}
</a>
{% endif %}
<h3>
<a href="{{ url('wiki.revision', revision_from.document.slug, revision_from.id, locale=revision_from.document.locale) }}" rel="nofollow, noindex">
{{ _('Revision %(num)s:', num=revision_from.id) }}
</a>
</h3>
<p>
{% trans id=revision_from.id,
Expand All @@ -50,13 +46,9 @@ <h3>
</div>
<div class="rev-to">
<h3>
{% if revision_to_header %}
{{ revision_to_header }}
{% else %}
<a href="{{ url('wiki.revision', revision_to.document.slug, revision_to.id) }}" rel="nofollow, noindex">
{{ _('Revision %(num)s:', num=revision_to.id) }}
</a>
{% endif %}
<a href="{{ url('wiki.revision', revision_to.document.slug, revision_to.id, locale=revision_to.document.locale) }}" rel="nofollow, noindex">
{{ _('Revision %(num)s:', num=revision_to.id) }}
</a>
</h3>
<p>
{% trans id=revision_to.id,
Expand Down

0 comments on commit c11c9cc

Please sign in to comment.