ezidam: nicer view for flash
This commit is contained in:
parent
f911fc665c
commit
4b99905ee0
4 changed files with 4 additions and 7 deletions
|
|
@ -82,7 +82,7 @@ fn invalid_form(request: AuthenticationRequest) -> Flash<Redirect> {
|
|||
}
|
||||
|
||||
fn invalid_credentials(login: &str, request: AuthenticationRequest) -> Flash<Redirect> {
|
||||
flash(format!("Invalid credentials for {login}"), request)
|
||||
flash(format!("Invalid credentials for \"{login}\""), request)
|
||||
}
|
||||
|
||||
fn user_archived(login: &str, request: AuthenticationRequest) -> Flash<Redirect> {
|
||||
|
|
|
|||
|
|
@ -37,8 +37,7 @@
|
|||
|
||||
{% if flash %}
|
||||
<div class="alert alert-{{flash.0}}" role="alert">
|
||||
<h4 class="alert-title">Success</h4>
|
||||
<div class="text-muted">{{ flash.1 }}</div>
|
||||
<h4 class="alert-title">{{ flash.1 }}</h4>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,7 @@
|
|||
|
||||
{% if flash %}
|
||||
<div class="alert alert-{{flash.0}}" role="alert">
|
||||
<h4 class="alert-title">Failed to sign in</h4>
|
||||
<div class="text-muted">{{ flash.1 }}</div>
|
||||
<h4 class="alert-title">{{ flash.1 }}</h4>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@
|
|||
|
||||
{% if flash %}
|
||||
<div class="alert alert-{{flash.0}}" role="alert">
|
||||
<h4 class="alert-title">Could not finish setup</h4>
|
||||
<div class="text-muted">{{ flash.1 }}</div>
|
||||
<h4 class="alert-title">{{ flash.1 }}</h4>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue