## mako <%page expression_filter="h"/> <%! from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from openedx.core.djangolib.markup import HTML, Text from wiki.core.permissions import can_change_permissions %>
- ${_("View")} ${Text(_("{span_start}(active){span_end}")).format(span_start=HTML(""), span_end=HTML("")) if selected_tab == "view" else ""}
%if article.can_write(user):
- ${_("Edit")} ${Text(_("{span_start}(active){span_end}")).format(span_start=HTML(""), span_end=HTML("")) if selected_tab == "edit" else ""}
%endif
- ${_("Changes")} ${Text(_("{span_start}(active){span_end}")).format(span_start=HTML(""), span_end=HTML("")) if selected_tab == "history" else ""}
%for plugin in article_tabs: %if hasattr(plugin, "article_tab"):
- ${plugin.article_tab[0]} ${Text(_("{span_start}(active){span_end}")).format(span_start=HTML(""), span_end=HTML("")) if selected_tab == plugin.slug else ""}
%endif %endfor <%doc> ${_("This should be enabled for all non-anonymous users once the notifications app has been integrated and styled.")} %if can_change_permissions(article,user):
- ${_("Settings")} ${Text(_("{span_start}active{span_end}")).format(span_start=HTML(""), span_end=HTML("")) if selected_tab == "settings" else ""}
%endif