Material ripple
PACE.js loader
RTL support
RTL mode
Theme settings panel
Light style
Material style
Dark style
PAGE LAYOUT
LAYOUT OPTIONS
{{option[1]}}
Fixed navbar
Fixed footer
Reversed
Collapsed sidenav
THEME
NAVBAR BG
{{option}}
SIDENAV BG
{{option}}
FOOTER BG
{{option}}
<%= csrf_meta_tags %> <%= csp_meta_tag %>
<%= @title ? @title + " - " : "" %>Rails Starter
<%= stylesheet_pack_tag 'vendor/fonts/ionicons', media: 'all' %> <%= stylesheet_pack_tag 'vendor/{% if rtlSupport %}rtl/{% endif %}bootstrap{% if style == 'material' %}-material{% elif style == 'dark' %}-dark{% endif %}', media: 'all'{% if settingsPanel %}, class: 'theme-settings-bootstrap-css'{% endif %} %> <%= stylesheet_pack_tag 'vendor/{% if rtlSupport %}rtl/{% endif %}appwork{% if style == 'material' %}-material{% elif style == 'dark' %}-dark{% endif %}', media: 'all'{% if settingsPanel %}, class: 'theme-settings-appwork-css'{% endif %} %> <%= stylesheet_pack_tag 'vendor/{% if rtlSupport %}rtl/{% endif %}theme-{{theme}}{% if style == 'material' %}-material{% elif style == 'dark' %}-dark{% endif %}', media: 'all'{% if settingsPanel %}, class: 'theme-settings-theme-css'{% endif %} %> <%= stylesheet_pack_tag 'vendor/{% if rtlSupport %}rtl/{% endif %}colors{% if style == 'material' %}-material{% elif style == 'dark' %}-dark{% endif %}', media: 'all'{% if settingsPanel %}, class: 'theme-settings-colors-css'{% endif %} %> <%= stylesheet_pack_tag 'vendor/{% if rtlSupport %}rtl/{% endif %}uikit', media: 'all' %> <%= stylesheet_pack_tag 'application', media: 'all' %> <%= javascript_pack_tag 'vendor/polyfills' %> {% if materialRipple %} <%= javascript_pack_tag 'vendor/material-ripple' %> <%= stylesheet_pack_tag 'vendor/material-ripple', media: 'all' %> {% endif %} {%- if materialRipple and not settingsPanel -%} {% endif %} {% if pageLayout != 'blank' or settingsPanel %} <%= javascript_pack_tag 'vendor/layout-helpers' %> {% endif %} {% if settingsPanel %} <%= javascript_pack_tag 'vendor/theme-settings' %> <%= stylesheet_pack_tag 'vendor/theme-settings', media: 'all' %> {% endif %} {% if paceLoader %} <%= javascript_pack_tag 'vendor/pace' %> {% endif %} {% if pageLayout != 'blank' and pageLayout != 'without-sidenav' %} <%= stylesheet_pack_tag 'vendor/libs/perfect-scrollbar/perfect-scrollbar', media: 'all' %> {% endif %} <%= yield :styles %> {% if paceLoader -%}
{% endif %} <%= content_for?(:content) ? yield(:content) : yield %> <%= javascript_pack_tag 'vendor/libs/popper/popper' %> <%= javascript_pack_tag 'vendor/bootstrap' %> {%- if pageLayout != 'blank' and pageLayout != 'without-sidenav' %} <%= javascript_pack_tag 'vendor/sidenav' %> {%- endif %} {%- if pageLayout != 'blank' and pageLayout != 'without-sidenav' %} <%= javascript_pack_tag 'vendor/libs/perfect-scrollbar/perfect-scrollbar' %> {%- endif %} <%= javascript_pack_tag 'application' %> <%= yield :scripts %>
class ApplicationController < ActionController::Base # Default layout layout 'main/layout-{{pageLayout.replace('layout-', '')}}' end
<%= link_to "Rails Starter", root_path, class: "navbar-brand" %> <% if local_assigns[:hide_toggle] != true %>
<% end %>
Link 1
Link 2
<%= link_to root_path, class: "sidenav-link" do %>
Home
<% end %>
<%= link_to page2_path, class: "sidenav-link" do %>
Page 2
<% end %>
Link 1
Link 2
$enable-rtl-support: {% if rtlSupport %}true{% else %}false{% endif %}; $enable-light-style: {% if (not settingsPanel and style == 'light') or (settingsPanel and styles.indexOf('light') !== -1) %}true{% else %}false{% endif %}; $enable-material-style: {% if (not settingsPanel and style == 'material') or (settingsPanel and styles.indexOf('material') !== -1) %}true{% else %}false{% endif %}; $enable-dark-style: {% if (not settingsPanel and style == 'dark') or (settingsPanel and styles.indexOf('dark') !== -1) %}true{% else %}false{% endif %}; @mixin feature-ltr($as-child: true) { @if $enable-rtl-support { @if $as-child { html:not([dir=rtl]) & { @content; } } @else { html:not([dir=rtl]) { @content; } } } @else { @content; } } @mixin feature-ltr-style() { @if $enable-rtl-support { &:not([dir=rtl]) { @content; } } @else { @content; } } @mixin feature-rtl($as-child: true) { @if $enable-rtl-support { @if $as-child { [dir=rtl] & { @content; } } @else { [dir=rtl] { @content; } } } } @mixin feature-rtl-style() { @if $enable-rtl-support { &[dir=rtl] { @content; } } }