add helpful message at login
This commit is contained in:
@@ -2,30 +2,41 @@
|
||||
<div class="row nd_herorow">
|
||||
<div class="span10 offset3">
|
||||
[% IF params.failed %]
|
||||
<div class="nd_loginalert alert-message error fade in" data-alert="on">
|
||||
<div class="alert-message error fade in" data-alert="on">
|
||||
<a class="close" href="#">×</a>
|
||||
<p>Incorrect username or password, please try again.</p>
|
||||
</div>
|
||||
[% END %]
|
||||
[% IF params.logout %]
|
||||
<div class="nd_loginalert alert-message notice fade in" data-alert="on">
|
||||
<div class="alert-message notice fade in" data-alert="on">
|
||||
<a class="close" href="#">×</a>
|
||||
<p>You are now logged out.</p>
|
||||
</div>
|
||||
[% END %]
|
||||
[% IF params.nosuchdevice %]
|
||||
<div class="nd_loginalert alert-message notice fade in" data-alert="on">
|
||||
<div class="alert-message notice fade in" data-alert="on">
|
||||
<a class="close" href="#">×</a>
|
||||
<p>Sorry, no such device is known.</p>
|
||||
</div>
|
||||
[% END %]
|
||||
[% IF vars.notfound %]
|
||||
<div class="nd_loginalert alert-message notice fade in" data-alert="on">
|
||||
<div class="alert-message notice fade in" data-alert="on">
|
||||
<a class="close" href="#">×</a>
|
||||
<p>Sorry, page not found.
|
||||
<a href="http://sourceforge.net/tracker/?group_id=80033&atid=558508" target="_blank">Report a Bug?</a></p>
|
||||
</div>
|
||||
[% END %]
|
||||
[% IF NOT session.user %]
|
||||
<div class="alert-message success fade in" data-alert="on">
|
||||
<a class="close" href="#">×</a>
|
||||
<p>Log in to the Demo with username "demo" and password "demo".</p>
|
||||
</div>
|
||||
[% ELSE %]
|
||||
<div class="alert-message success fade in" data-alert="on">
|
||||
<a class="close" href="#">×</a>
|
||||
<p>Hit <strong>Enter</strong> in the Search box to view the current Inventory.</p>
|
||||
</div>
|
||||
[% END %]
|
||||
<div class="hero-unit">
|
||||
<h2>Welcome to Netdisco</h2>
|
||||
<small>Netdisco is an Open Source web-based network management tool.</small>
|
||||
|
||||
Reference in New Issue
Block a user