Skip to content

Commit

Permalink
💄 (memory): Add paper source to hover info
Browse files Browse the repository at this point in the history
  • Loading branch information
vict0rsch committed Dec 4, 2023
1 parent 213d650 commit 64099bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/popup/js/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const getPaperinfoTitle = (paper) => {
const addDate = new Date(paper.addDate).toLocaleString().replace(",", "");
const lastOpenDate = new Date(paper.lastOpenDate).toLocaleString().replace(",", "");

let infoTitle = `Added ${addDate}\nLast open ${lastOpenDate}\nVisits: ${paper.count}`;
let infoTitle = `Added ${addDate}\n`;
infoTitle += `Last open ${lastOpenDate}\n`;
infoTitle += `Visits: ${paper.count}\n`;
infoTitle += `Source: ${global.knownPaperPages[paper.source].name}\n`;
if (paper.venue) {
infoTitle += `\n<strong>${paper.venue} ${paper.year}</strong>`;
}
Expand Down
Loading

0 comments on commit 64099bc

Please sign in to comment.