/
githubmirror
/
edx-platform
Обзор
Документация
Войти
/
githubmirror
/
edx-platform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-ulmo
cms/templates/html_error.html
26 строк
700 B
Usama Sadiq
fix: replace ugettext with gettext (#33022)
16 авг 2023, 15:07
Не верифицирован
16 авг 2023, 15:07
852246d
Код
Авторство
О чём код?
<%! from django.utils.translation import gettext as _ %> <%! from django.urls import reverse %> <%block name="content"> <div class="wrapper wrapper-alert wrapper-alert-error is-shown"> <div class="error"> <div class="copy"> <h2 class="title"> <span class="icon fa fa-warning" aria-hidden="true"></span> ${_("We're having trouble rendering your component")} </h2> <p>${_("Students will not be able to access this component. Re-edit your component to fix the error.")}</p> % if message: <p class="description"> ${_("Error:")} ${message | h} </p> % endif </div> </div> </%block>