Skip to content

Commit

Permalink
Merge pull request #10155 from internetarchive/diff-history-links
Browse files Browse the repository at this point in the history
add diff history links
  • Loading branch information
mekarpeles authored Dec 17, 2024
2 parents 929e0ae + 7bf35f3 commit c365481
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openlibrary/i18n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ msgstr ""
msgid "by Anonymous"
msgstr ""

#: diff.html
msgid "history"
msgstr ""

#: diff.html
msgid "Differences"
msgstr ""
Expand Down
1 change: 1 addition & 0 deletions openlibrary/templates/diff.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ <h2 class="collapse"><a href="$a.key">$title</a> &rarr; Diff</h2>
<span>$value.excerpt</span>
$elif value.key:
<a href="$value.key">$(value.name or value.title or value.key)</a>
<span class="smallest sansserif"> - <a href="$value.key?m=history" style="text-decoration: none;">$_("history")</a></span>
<span style="display: block" class="link wrap">$value.key</span>
$else:
$ value = value.dict()
Expand Down

0 comments on commit c365481

Please sign in to comment.