When you install KISO Themes, it's going to create the following files in your
app/views/layouts/ ├── _app_nav.html.erb ├── _base.html.erb ├── _dashboard_top_nav.html.erb ├── _external_js_libs.html.erb ├── _flashes.html.erb ├── _side_menu.html.erb ├── _side_menu_header.html.erb ├── _side_menu_main_content.html.erb ├── application.html.erb ├── devise.html.erb ├── email.html.erb ├── landing.html.erb ├── scaffold.html.erb └── sidenav.html.erb
#Base Partial Layout
This is the layout from which all things inherit. It's the main wrapper providing the page with enhanced functionality such as:
- External JS loading
bodytag classes and JS lib feature declaration
baselayout, and simply renders
_flashesbefore yielding. It is the most minimal of usable layouts.
baselayout before yielding to Devise.
baselayout before yielding to the page.
Provides a customized Email mailer layout.
_app_navpartial layout, and provides some hooks for the header seen in the online demo, which has areas for a title and action buttons, and Flashes.
_baseand renders out the
_dashboard_top_navpartial, Flashes and then yields the page to a
App Nav provides a pre-coded general App type header bar suitable for your internal App pages.
Dashboard Top Nav provides a pre-coded general App type header bar suitable for your internal App pages, which is designed to be used with the Sidenav layout. It contains a button and JS hook for opening and closing the sidenav.
This is a special layout partial which has special hooks that listen to the contents of the
appplication.jsbundle, you can list them in here and only have them loaded when set. This is ideal for large JS libs that are only needed on certain pages.
For example, in the online demo, the Google Maps functionality is only loaded on certain pages, in response to the
@js_libsinstance variable containing the
Contains the Rails Flashes output. That's it!