volt new overlay

This commit is contained in:
Torsten Ruger
2015-07-29 17:26:04 +03:00
parent 9c7a333127
commit a0b37977a9
15 changed files with 338 additions and 128 deletions

View File

@ -0,0 +1,11 @@
# Specify which components you wish to include when
# the "home" component loads.
# bootstrap css framework
component 'bootstrap'
# a default theme for the bootstrap framework
component 'bootstrap_jumbotron_theme'
# provides templates for login, signup, and logout
component 'user_templates'

View File

@ -0,0 +1,10 @@
# Place any code you want to run when the component is included on the client
# or server.
# To include code only on the client use:
# if RUBY_PLATFORM == 'opal'
#
# To include code only on the server, use:
# unless RUBY_PLATFORM == 'opal'
# ^^ this will not send compile in code in the conditional to the client.
# ^^ this include code required in the conditional.

14
app/main/config/routes.rb Normal file
View File

@ -0,0 +1,14 @@
# See https://github.com/voltrb/volt#routes for more info on routes
client '/about', action: 'about'
# Routes for login and signup, provided by user_templates component gem
client '/signup', component: 'user_templates', controller: 'signup'
client '/login', component: 'user_templates', controller: 'login', action: 'index'
client '/password_reset', component: 'user_templates', controller: 'password_reset', action: 'index'
client '/forgot', component: 'user_templates', controller: 'login', action: 'forgot'
client '/account', component: 'user_templates', controller: 'account', action: 'index'
# The main route, this should be last. It will match any params not
# previously matched.
client '/', {}