소스 검색

[fix] save last route on error so user logs in to the correct page, fixes frappe/erpnext#8174

version-14
Rushabh Mehta 8 년 전
부모
커밋
f0f16ff815
1개의 변경된 파일20개의 추가작업 그리고 14개의 파일을 삭제
  1. +20
    -14
      frappe/www/message.html

+ 20
- 14
frappe/www/message.html 파일 보기

@@ -3,7 +3,19 @@
{% block title %}{{ title or _("Message") }}{% endblock %}

{% block page_content %}

<style>
.hero-and-content {
background-color: #f5f7fa;
}
{% if fullpage %}
header, footer {
display: none;
}
html, body {
background-color: #f5f7fa;
}
{% endif %}
</style>
<div class='page-card'>
<div class='page-card-head'>
<span class='indicator {{ indicator_color or "blue" }}'>
@@ -18,17 +30,11 @@
{% if error_code %}
<p class='text-muted text-center small' style='margin-top: -20px;'>{{ _("Status: {0}").format(error_code) }}</p>
{% endif %}
<style>
.hero-and-content {
background-color: #f5f7fa;
}
{% if fullpage %}
header, footer {
display: none;
}
html, body {
background-color: #f5f7fa;
}
{% endif %}
</style>
<script>
frappe.ready(function() {
if(window.location.hash) {
localStorage.setItem('session_last_route', window.location.hash.substr(1));
}
});
</script>
{% endblock %}

불러오는 중...
취소
저장