Problem/Motivation

When we show a list of node revisions - i.e. a list of recent changes - for all nodes on a site, it would be great to have a views field which generates a link to compare that listed node revision with its previous revision, or the text "New" if there is no previous revision available.

Issue fork diff-3311234

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jurgenhaas created an issue. See original summary.

jurgenhaas’s picture

This is now working but needs some extra steps:

  • make the link text configurable
  • make the filter configurable
jurgenhaas’s picture

Status: Active » Needs review

This is now ready for review.

jurgenhaas’s picture

Added a line to prevent the base field renderer to turn the output to a link even if there isn't any previous revision.

jurgenhaas’s picture

Added another option to only compare to the previously published revision.

heddn’s picture

Status: Needs review » Needs work

For this to be reviewed and accepted, please review https://git.drupalcode.org/project/diff#contribution-guidelines. Specifically, we'll need some tests.