1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-04-04 05:33:22 -04:00

Moving Netzke Admin view to Panel controller

*Moved custom_netzke_helpers code to panel.js
*Added panel controller and index and netzke layout
This commit is contained in:
Jason Denney 2014-01-18 15:14:19 -05:00
parent 2b863b8d8a
commit a84b0e0fe7
6 changed files with 20 additions and 3 deletions

View File

@ -12,4 +12,3 @@
//
//= require jquery
//= require jquery_ujs
//= require custom_netzke_helpers

View File

@ -0,0 +1,7 @@
class PanelController < ApplicationController
def index
render :inline => "<%=netzke :app_view, :layout => true %>", :layout => "netzke"
end
end

View File

@ -1,7 +1,5 @@
class SiteController < ApplicationController
def index
render :inline => "<%= netzke :app_view, :layout => true %>", :layout => "application"
end
end

View File

@ -0,0 +1,11 @@
!!! 5
%html{:lang => "en"}
%head
%meta{:charset => "utf-8"}/
%title= content_for?(:title) ? yield(:title) : "Velocipede"
= load_netzke
= csrf_meta_tags
%body
= yield
= javascript_include_tag "application"
= javascript_include_tag params[:controller]

View File

@ -4,6 +4,8 @@ Velocipede::Application.routes.draw do
netzke
root :to => 'site#index'
get 'admin/index' => 'panel#index', :as => "admin_index"
###########################
# API Routes
scope 'api', :module => :api do