diff --git a/src/resources/diff_resource.rs b/src/resources/diff_resource.rs index 36b24d8..bdc7db9 100644 --- a/src/resources/diff_resource.rs +++ b/src/resources/diff_resource.rs @@ -102,6 +102,8 @@ impl Resource for DiffResource { consecutive: bool, article_id: u32, article_history_link: &'a str, + from_link: &'a str, + to_link: &'a str, title: &'a [Diff], lines: &'a [Diff<&'a str>], } @@ -130,6 +132,8 @@ impl Resource for DiffResource { .pagination(Pagination::After(self.from.revision)) .into_link() ), + from_link: &format!("_revisions/{}/{}", self.from.article_id, self.from.revision), + to_link: &format!("_revisions/{}/{}", self.to.article_id, self.to.revision), title: &diff::chars(&self.from.title, &self.to.title) .into_iter() .map(|x| match x { diff --git a/templates/diff.html b/templates/diff.html index aec2e35..d450bdb 100644 --- a/templates/diff.html +++ b/templates/diff.html @@ -7,7 +7,8 @@

- See the list of all changes to this article. + See also the list of all changes to this article + or the article as it was before and after this change.