notifications: switch to embedded alerts for HTTPNotFound
This commit is contained in:
parent
6dea47945c
commit
0ea6b37e8b
2 changed files with 10 additions and 1 deletions
|
|
@ -142,6 +142,10 @@ input.inline[type="file"] {
|
|||
color: @grey2;
|
||||
}
|
||||
|
||||
.alert {
|
||||
margin: @padding 0;
|
||||
}
|
||||
|
||||
.error-branding {
|
||||
font-family: @text-semibold;
|
||||
color: @grey4;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
<script type="text/javascript" src="${h.asset('js/scripts.js', ver=c.rhodecode_version_hash)}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<%include file="/base/flash_msg.html"/>
|
||||
<% messages = h.flash.pop_messages() %>
|
||||
|
||||
<div class="wrapper error_page">
|
||||
<div class="sidebar">
|
||||
|
|
@ -35,6 +35,11 @@
|
|||
</span><br/>
|
||||
${c.error_message} | <span class="error_message">${c.error_explanation}</span>
|
||||
</h1>
|
||||
% if messages:
|
||||
% for message in messages:
|
||||
<div class="alert alert-${message.category}">${message}</div>
|
||||
% endfor
|
||||
% endif
|
||||
%if c.redirect_time:
|
||||
<p>${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}</p>
|
||||
%endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue