Files
edx-platform/lms/templates/bookmark_button.html
Andy Armstrong 89e5c0fd8d Convert course bookmarks into a feature
LEARNER-39
2017-03-22 16:09:13 -04:00

16 lines
574 B
HTML

<%page expression_filter="h" args="bookmark_id, is_bookmarked" />
<%!
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
%>
<div class="bookmark-button-wrapper">
<button class="btn btn-link bookmark-button ${"bookmarked" if is_bookmarked else ""}"
aria-pressed="${"true" if is_bookmarked else "false"}"
data-bookmark-id="${bookmark_id}"
data-bookmarks-api-url="${reverse('bookmarks')}">
<span class="bookmark-text">${_("Bookmarked") if is_bookmarked else _("Bookmark this page")}</span>
</button>
</div>