<%! 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> ${_("Bookmark")} </button> </div>