Added bootsnip buttons

This commit is contained in:
Sahat Yalkabov
2013-11-14 15:29:06 -05:00
parent c322527b7c
commit e9add46005
3 changed files with 72 additions and 6 deletions

View File

@ -16,10 +16,10 @@ exports.admin = function(req, res) {
exports.postlogin = function(req, res, next) { exports.postlogin = function(req, res, next) {
passport.authenticate('local', function(err, user, info) { passport.authenticate('local', function(err, user, info) {
if (err) { return next(err) } if (err) return next(err);
if (!user) { if (!user) {
req.session.messages = [info.message]; req.session.messages = [info.message];
return res.redirect('/login') return res.redirect('/login');
} }
req.logIn(user, function(err) { req.logIn(user, function(err) {
if (err) { return next(err); } if (err) { return next(err); }

View File

@ -1,8 +1,21 @@
/* app css stylesheet */
body { body {
padding-top:70px; padding-top: 70px;
} }
.btn-label {
position: relative;
left: -12px;
display: inline-block;
padding: 6px 12px;
background: rgba(0, 0, 0, 0.15);
border-radius: 3px 0 0 3px;
}
.btn-labeled {
padding-top: 0;
padding-bottom: 0;
}
.btn {
margin-bottom: 10px;
}

View File

@ -27,6 +27,59 @@ block body
.jumbotron .jumbotron
h1 Hello {{name}} h1 Hello {{name}}
div(ng-view) div(ng-view)
br
button.btn.btn-labeled.btn-success(type='button')
span.btn-label
i.glyphicon.glyphicon-ok
| Success
br
button.btn.btn-labeled.btn-danger(type='button')
span.btn-label
i.glyphicon.glyphicon-remove
| Cancel
br
button.btn.btn-labeled.btn-warning(type='button')
span.btn-label
i.glyphicon.glyphicon-bookmark
| Bookmark
br
button.btn.btn-labeled.btn-primary(type='button')
span.btn-label
i.glyphicon.glyphicon-camera
| Camera
br
button.btn.btn-labeled.btn-default(type='button')
span.btn-label
i.glyphicon.glyphicon-chevron-left
| Left
br
button.btn.btn-labeled.btn-default(type='button')
span.btn-label
i.glyphicon.glyphicon-chevron-right
| Right
br
button.btn.btn-labeled.btn-success(type='button')
span.btn-label
i.glyphicon.glyphicon-thumbs-up
| Thumbs
| Up
br
button.btn.btn-labeled.btn-danger(type='button')
span.btn-label
i.glyphicon.glyphicon-thumbs-down
| Thumbs
| Down
br
button.btn.btn-labeled.btn-info(type='button')
span.btn-label
i.glyphicon.glyphicon-refresh
| Refresh
br
button.btn.btn-labeled.btn-danger(type='button')
span.btn-label
i.glyphicon.glyphicon-trash
| Trash
hr hr
div div
| Angular seed app: v | Angular seed app: v