- Changed to using the diff-body CSS class -- Removed unnecessary elements from the CSS style file - Does a symmetric difference on the array fields to detect differences - Add more descriptors to the status/changes column - Specifically add <br> to statuses to cause line breaks
10 lines
368 B
Ruby
10 lines
368 B
Ruby
module WikiPageVersionsHelper
|
|
def wiki_other_names_diff(new_version, old_version)
|
|
new_names = new_version.other_names
|
|
old_names = old_version.other_names
|
|
latest_names = new_version.wiki_page.other_names
|
|
|
|
diff_list_html(new_names, old_names, latest_names, ul_class: ["wiki-other-names-diff-list list-inline"], li_class: ["wiki-other-name"])
|
|
end
|
|
end
|