From c4f7d4d389bce72c92fab8211c07516260d4d532 Mon Sep 17 00:00:00 2001 From: Toks Date: Tue, 22 Jul 2014 00:33:39 -0400 Subject: [PATCH] Fix wiki version date display bug for old edits It seems that in Danbooru 1 wiki page version's created_at was always the initial created_at of the wiki page itself, as opposed to the time that the edit was made like in Danbooru 2. --- app/views/wiki_page_versions/diff.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/wiki_page_versions/diff.html.erb b/app/views/wiki_page_versions/diff.html.erb index e70f1b79a..7abdd7d57 100644 --- a/app/views/wiki_page_versions/diff.html.erb +++ b/app/views/wiki_page_versions/diff.html.erb @@ -2,7 +2,7 @@

Wiki Page: <%= @thispage.title %>

-

Showing differences between <%= compact_time @thispage.created_at %> (<%= link_to_user @thispage.updater %>) and <%= compact_time @otherpage.created_at %> (<%= link_to_user @otherpage.updater %>)

+

Showing differences between <%= compact_time @thispage.updated_at %> (<%= link_to_user @thispage.updater %>) and <%= compact_time @otherpage.updated_at %> (<%= link_to_user @otherpage.updater %>)

<%= wiki_page_other_names_diff(@thispage, @otherpage) %>