clarion/app/views/layouts/management.html.slim

30 lines
1.0 KiB
Plaintext
Raw Normal View History

2014-09-17 12:42:37 +03:00
doctype html
html
head
meta charset="utf-8"
meta http-equiv="X-UA-Compatible" content="IE=edge"
meta name="viewport" content="width=device-width, initial-scale=1"
2014-09-17 13:25:50 +03:00
title Clarion
2014-09-17 12:42:37 +03:00
= stylesheet_link_tag "management/application"
= csrf_meta_tags
body
nav.navbar.navbar-default.navbar-fixed-top
.container
.navbar-header
button.navbar-toggle.collapsed type="button" data-toggle="collapse" data-target=".navbar-collapse"
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
= link_to 'Clarion', root_path, class: 'navbar-brand'
.navbar-collapse.collapse
ul.nav.navbar-nav
2014-09-17 14:36:05 +03:00
li class="#{'active' if controller_name == 'home'}"
= link_to t(:home), management_path
2014-09-17 14:36:05 +03:00
li class="#{'active' if controller_name == 'users'}"
= link_to User.model_name.human(count: 2), management_users_path
2014-09-17 12:42:37 +03:00
div.container
== yield
= javascript_include_tag "management/application"