diff --git a/templates/bookmarks.html b/templates/bookmarks.html index ef42666..7041c8a 100644 --- a/templates/bookmarks.html +++ b/templates/bookmarks.html @@ -71,65 +71,7 @@ {% endif %} -
- {% for bookmark in bookmarks %} -
-
-
- {% if bookmark.favicon %} -
- {% endif %} - {% if bookmark.http_status != 200 and bookmark.http_status != 304 %} -
report_problem
- {% endif %} - {% if bookmark.starred == True %} -
star
- {% endif %} - {% if bookmark.note %} -
comment
- {% endif %} -
-
- -
-
- Added @ {{ bookmark.created_date.strftime('%Y-%m-%d %H:%M') }}close - -
-
-
- {% endfor %} - - {# - - #} -
+{% include 'cards.html' %}
diff --git a/templates/cards.html b/templates/cards.html new file mode 100644 index 0000000..0c6e371 --- /dev/null +++ b/templates/cards.html @@ -0,0 +1,59 @@ +
+ {% for bookmark in bookmarks %} + + {% endfor %} + + {# + + #} +
diff --git a/templates/publicbookmarks.html b/templates/publicbookmarks.html index 2a48206..1f4feb3 100644 --- a/templates/publicbookmarks.html +++ b/templates/publicbookmarks.html @@ -24,45 +24,6 @@
-
- {% for bookmark in bookmarks %} -
-
-
- {% if bookmark.favicon %} -
- {% endif %} - {% if bookmark.http_status != 200 %} - report_problem
- {% endif %} - {% if bookmark.starred == True %} - star - {% endif %} - {% if bookmark.note %} -
comment
- {% endif %} -
- -
- Added @ {{ bookmark.created_date.strftime('%Y-%m-%d %H:%M') }}close -
-
-
- {% endfor %} -
+{% include 'cards.html' %} + {% endblock %}