bookmark_button.html 580 Bytes
Newer Older
1
<%page expression_filter="h" args="bookmark_id, is_bookmarked" />
2 3 4
<%! from django.utils.translation import ugettext as _ %>

<div class="bookmark-button-wrapper">
5
  <button class="btn btn-link bookmark-button ${"bookmarked" if is_bookmarked else ""}"
6 7
    aria-pressed="${"true" if is_bookmarked else "false"}"
    data-bookmark-id="${bookmark_id}">
8 9
     <span class="sr bookmark-sr">${_("Click to remove") if is_bookmarked else _("Click to add")}</span>
     <span class="bookmark-text">${_("Bookmarked") if is_bookmarked else _("Bookmark this page")}</span>
10 11
    </button>
</div>