Themen und themes_for_rails neues design

Neues design mit theme=2003 ansehen
This commit is contained in:
Andreas Stephanides
2014-01-08 20:23:58 +01:00
parent 4853a1192d
commit b86d3aca23
21 changed files with 923 additions and 47 deletions

View File

@@ -59,5 +59,8 @@ module Fetsite
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
# config.themes_for_rails.views_dir='app/assets/themes'
# config.themes_for_rails.assets_dir='app/assets/themes/assets'
end
end

View File

@@ -0,0 +1,9 @@
ThemesForRails.config do |config|
#
# If you have placed your themes like the example path above within the asset pipeline:
config.themes_dir = 'app/assets/themes'
config.assets_dir = 'app/assets/assets/themes/:name'
config.views_dir = 'app/views/themes/:name'
config.use_sass=true
# ...
end

View File

@@ -1,4 +1,5 @@
Fetsite::Application.routes.draw do
themes_for_rails
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
resources :home, :only=>[:index]
#get 'home',:controller=>home,:action=>:index,:as=>"home_index"