Skip to content

Commit

Permalink
WIP html_table use public/private prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
nodiscc committed Nov 27, 2023
1 parent 5ce12d5 commit ca9a178
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hecat/exporters/html_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
</thead>
{% for item in items %}
<tr>
<td>{% if item['archive_path'] is defined %}<a href="{{ archive_dir }}/{{ item['archive_path'] }}">▣</a>{% elif item['archive_error'] is defined and item['archive_error'] %}⚠{% endif %}</td>
<td>{% if item['archive_path'] is defined %}<a href="{{ archive_dir }}/{{ 'private' if item['private'] else 'public' %}/{{ item['archive_path'] }}">▣</a>{% elif item['archive_error'] is defined and item['archive_error'] %}⚠{% endif %}</td>
<td class="title-column"><a href='{{ item['url'] }}'>{{ item['title'] }}</a>
{% if item['description'] is defined and item['description'] %}<br/>{% if description_format == 'details' %}<details><summary></summary>{% elif description_format == 'paragraph' %}<p>{% endif %}{{ jinja_markdown(item['description']) }}{% if description_format == 'details' %}</details>{% elif description_format == 'paragraph' %}</p>{% endif %}{% endif %}
</td>
Expand Down
5 changes: 4 additions & 1 deletion hecat/processors/archive_webpages.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""archive webpages
TODO
TODO description
TODO allow silencing wget output
TODO split changes to this module and exporters/html table to separate commits
TODO deduplicate output files
Note that yo may want to setup a system-wide ad-blocking mechanism to prevent wget from downloading
ads and annoyances, and save bandwidth and disk space in the process. See
Expand Down

0 comments on commit ca9a178

Please sign in to comment.