Spaces:
Sleeping
Sleeping
Update TLDR.py
Browse files
TLDR.py
CHANGED
|
@@ -58,7 +58,7 @@ def update_mainTLDR(buttons_to_add, paper_list):
|
|
| 58 |
|
| 59 |
# Create the HTML content for both links with line breaks
|
| 60 |
html_content = (
|
| 61 |
-
f'<a
|
| 62 |
f' - <a href="{paper.pdf_url}" target="_blank">PDF</a>'
|
| 63 |
f' - {(paper.published).strftime("%d/%m/%Y %H:%M:%S")}'
|
| 64 |
)
|
|
@@ -92,4 +92,4 @@ def update_mainTLDR(buttons_to_add, paper_list):
|
|
| 92 |
else:
|
| 93 |
main_tldr.append(pn.pane.Markdown("# Please select some tags!"))
|
| 94 |
|
| 95 |
-
return main_tldr
|
|
|
|
| 58 |
|
| 59 |
# Create the HTML content for both links with line breaks
|
| 60 |
html_content = (
|
| 61 |
+
f'<a class="anchor" href="#{anchor_id}">{paper.entry_id}</a>'
|
| 62 |
f' - <a href="{paper.pdf_url}" target="_blank">PDF</a>'
|
| 63 |
f' - {(paper.published).strftime("%d/%m/%Y %H:%M:%S")}'
|
| 64 |
)
|
|
|
|
| 92 |
else:
|
| 93 |
main_tldr.append(pn.pane.Markdown("# Please select some tags!"))
|
| 94 |
|
| 95 |
+
return main_tldr
|