Closed Bug 1227960 Opened 9 years ago Closed 7 years ago

Add missing top "Previous" link to Revision History

Categories

(developer.mozilla.org Graveyard :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: anaran, Unassigned)

References

()

Details

(Keywords: in-triage, Whiteboard: [patchwelcome][difficulty=intermediate])

Attachments

(1 file)

See these links:

https://developer.mozilla.org/en-US/docs/Mozilla/QA/Automated_testing$revision/934967
https://developer.mozilla.org/en-US/profiles/gbrown
https://developer.mozilla.org/en-US/docs/Mozilla/QA/Automated_testing$compare?to=922081&from=905011
https://developer.mozilla.org/en-US/docs/Mozilla/QA/Automated_testing$revision/922081
https://developer.mozilla.org/en-US/profiles/ato

  referenced from

https://developer.mozilla.org/en-US/docs/Mozilla/QA/Automated_testing$history?limit=all

Details:

Top of history list is missing a Previous link:

         Oct 15, 2015, 12:10:57 AM gbrown Remove references to obsolete Talos-robocop tests.
Previous Sep 22, 2015,  8:33:11 PM ato    update Mn 

Problem:

The missing Previous link on the first line, as also evidenced in "See these links" above, should be

[Previous](https://developer.mozilla.org/en-US/docs/Mozilla/QA/Automated_testing$compare?to=934967&from=922081)

What makes matters worse is that users may deduce the wording of Previous is incorrect (since the first has no Previous) and should be "Next" instead.

All of this can be fixed by adding the missing first Previous link.

http://mzl.la/1vxCDgA
Component: MDN Meta Docs → General
Product: Developer Documentation → Mozilla Developer Network
Looking at
https://github.com/mozilla/kuma/blob/4838c29847fa6f58935ceefb2a23a641df4e0ad2/kuma/wiki/templates/wiki/list/revisions.html#L55
I can only assume `rev.previous_revision` is false on the current revision.

Does this make sense? Why is this so?

               <div class="revision-list-cell revision-list-prev">
              {% if rev.previous_revision %}
                <a href="{{ url('wiki.compare_revisions', document.slug) }}?to={{ rev.id }}&amp;from={{ rev.previous_revision.id }}" rel="nofollow, noindex">{{ _('Previous') }}</a>
              {% endif %}
              </div>
Summary: Please add missing top "Previous" link to Revision History | Mozilla automated testing | MDN → Add missing top "Previous" link to Revision History | Mozilla automated testing | MDN
Assignee: nobody → adrian.aichner
Summary: Add missing top "Previous" link to Revision History | Mozilla automated testing | MDN → Add missing top "Previous" link to Revision History
Status: NEW → ASSIGNED
Assignee: adrian.aichner → nobody
Status: ASSIGNED → NEW
Whiteboard: [patchwelcome][difficulty=intermediate]
Severity: normal → enhancement
Keywords: in-triage
The .previous_revision solution was removed in mozilla/kuma#4297 for bug 1269104, and a different method is used to pair revisions with the previous revision that should be more reliable. Please reopen or open a new bug if you see this error again.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: