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:
parent
2b863b8d8a
commit
a84b0e0fe7
@ -12,4 +12,3 @@
|
||||
//
|
||||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require custom_netzke_helpers
|
||||
|
7
app/controllers/panel_controller.rb
Normal file
7
app/controllers/panel_controller.rb
Normal file
@ -0,0 +1,7 @@
|
||||
class PanelController < ApplicationController
|
||||
|
||||
def index
|
||||
render :inline => "<%=netzke :app_view, :layout => true %>", :layout => "netzke"
|
||||
end
|
||||
|
||||
end
|
@ -1,7 +1,5 @@
|
||||
class SiteController < ApplicationController
|
||||
|
||||
def index
|
||||
render :inline => "<%= netzke :app_view, :layout => true %>", :layout => "application"
|
||||
end
|
||||
|
||||
end
|
||||
|
11
app/views/layouts/netzke.html.haml
Normal file
11
app/views/layouts/netzke.html.haml
Normal 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]
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user