bookmark_button.html 472 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
<%! from django.utils.translation import ugettext as _ %>
<%page args="bookmark_id, is_bookmarked" />

<div class="bookmark-button-wrapper">
  <button class="btn bookmark-button ${"bookmarked" if is_bookmarked else ""}"
    aria-pressed="${"true" if is_bookmarked else "false"}"
    data-bookmark-id="${bookmark_id}">
     <span class="sr bookmark-sr">${_("Click to remove") if is_bookmarked else _("Click to add")}</span>&nbsp;
     ${_("Bookmark")}
    </button>
</div>