aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-05-21 05:25:09 -0400
committerPaul Duncan <pabs@pablotron.org>2016-05-21 05:25:09 -0400
commit1988056df3bb929c9e34fe7f6c6e32210abf6da4 (patch)
treef096817ecd6df37fcfdce483ad7f40ea05279055 /src/views
parent3a6e1f52d920390041fdb0b1991546f61bc1a8ba (diff)
downloadguff-1988056df3bb929c9e34fe7f6c6e32210abf6da4.tar.bz2
guff-1988056df3bb929c9e34fe7f6c6e32210abf6da4.zip
add initial model stubs, login, logout, etc
Diffstat (limited to 'src/views')
-rw-r--r--src/views/admin-page.ecr22
-rw-r--r--src/views/login-page.ecr23
2 files changed, 28 insertions, 17 deletions
diff --git a/src/views/admin-page.ecr b/src/views/admin-page.ecr
index 284b1a7..47931a8 100644
--- a/src/views/admin-page.ecr
+++ b/src/views/admin-page.ecr
@@ -6,9 +6,9 @@
<%=
styles %w{
- ../assets/font-awesome-4.5.0/css/font-awesome.min.css
- ../assets/bootstrap-3.3.6/css/bootstrap.min.css
- ../assets/bootstrap-3.3.6/css/bootstrap-theme.min.css
+ assets/font-awesome-4.5.0/css/font-awesome.min.css
+ assets/bootstrap-3.3.6/css/bootstrap.min.css
+ assets/bootstrap-3.3.6/css/bootstrap-theme.min.css
}
%>
</head>
@@ -18,14 +18,14 @@
<%=
scripts %w{
- ../assets/jquery-2.2.1.min.js
- ../assets/luigi-template-0.4.1.min.js
- ../assets/js/util.js
- ../assets/bootstrap-3.3.6/js/bootstrap.min.js
- ../assets/ckeditor-4.5.8-custom/ckeditor.js
- ../assets/js/search-field.js
- ../assets/test/tab-users.js
- ../assets/test/tab-posts.js
+ assets/jquery-2.2.1.min.js
+ assets/luigi-template-0.4.1.min.js
+ assets/js/util.js
+ assets/bootstrap-3.3.6/js/bootstrap.min.js
+ assets/ckeditor-4.5.8-custom/ckeditor.js
+ assets/js/search-field.js
+ assets/test/tab-users.js
+ assets/test/tab-posts.js
}
%>
</html>
diff --git a/src/views/login-page.ecr b/src/views/login-page.ecr
index 5e3c8ce..9f2082a 100644
--- a/src/views/login-page.ecr
+++ b/src/views/login-page.ecr
@@ -6,9 +6,9 @@
<%=
styles %w{
- ../assets/font-awesome-4.5.0/css/font-awesome.min.css
- ../assets/bootstrap-3.3.6/css/bootstrap.min.css
- ../assets/bootstrap-3.3.6/css/bootstrap-theme.min.css
+ assets/font-awesome-4.5.0/css/font-awesome.min.css
+ assets/bootstrap-3.3.6/css/bootstrap.min.css
+ assets/bootstrap-3.3.6/css/bootstrap-theme.min.css
}
%>
</head>
@@ -25,7 +25,18 @@
</div><!-- panel-heading -->
<div class='panel-body'>
- <form method='post'>
+ <% if @error %>
+ <div class='panel panel-danger'>
+ <div class='panel-heading'>
+ <b>
+ <i class='fa fa-exclamation-triangle'></i>
+ Error: Invalid Login
+ </b>
+ </div><!-- panel-heading -->
+ </div><!-- panel -->
+ <% end %>
+
+ <form method='post' action='login.html'>
<div class='form-group'>
<label for='user'>
User
@@ -73,8 +84,8 @@
<%=
scripts %w{
- ../assets/jquery-2.2.1.min.js
- ../assets/bootstrap-3.3.6/js/bootstrap.min.js
+ assets/jquery-2.2.1.min.js
+ assets/bootstrap-3.3.6/js/bootstrap.min.js
}
%>
</html>