瀏覽代碼

[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 %}

Loading…
取消
儲存