Sha256: 9efe2930c36b57b200aeeac774c5db6faa59a23d7a893f6a5dfcc5a6014d170e

Contents?: true

Size: 2 KB

Versions: 1

Compression:

Stored size: 2 KB

Contents

!!!
%html{lang: "en"}
	%head
		%meta{charset: "utf-8"}/
		%meta{content: "width=device-width, initial-scale=1.0", name: "viewport"}/
		%title #{@title} - Blogr
		= stylesheet_link_tag    "blogr/application"
		= javascript_include_tag "blogr/application"
		= csrf_meta_tags

	%body{class: "blogr #{controller.controller_name} #{controller.action_name}"}

		%section.sidebar
			.logo
				%h1= link_to "Blogr", root_url
				.version= link_to "v#{Blogr::VERSION}", "https://github.com/blogr/engine"
			.user
				= gravatar(current_blogr_user.email, {size: 50, class: "avatar"})
				.name= current_blogr_user.name
				%small.logout= link_to "Log Out", logout_path
			%ul.nav
				%li= link_to raw("#{content_tag(:i, '', class: 'batch batch-arrow-left')} View Site"), main_app.root_url
				= active_link_to raw("#{content_tag(:i, '', class: 'batch batch-home')} Dashboard"), root_path, active: [["dashboard"], ["index"]], wrap_tag: :li
				= active_link_to raw("#{content_tag(:i, '', class: 'batch batch-list')} Posts"), posts_path, wrap_tag: :li
				= active_link_to raw("#{content_tag(:i, '', class: 'batch batch-tag-alt')} Categories"), categories_path, wrap_tag: :li
				= active_link_to raw("#{content_tag(:i, '', class: 'batch batch-tag')} Tags"), tags_path, wrap_tag: :li
				= active_link_to raw("#{content_tag(:i, '', class: 'batch batch-users')} Users"), users_path, wrap_tag: :li
				= active_link_to raw("#{content_tag(:i, '', class: 'batch batch-speech-chat-left')} Comments"), comments_path, wrap_tag: :li

		%section.main
			%header
				%span.icon
				%h3 #{@title} <small>#{@subtitle}</small>
				.links.pull-right= yield :links

			.messages= render "blogr/shared/messages"
			
			.content= yield

			%footer
				%p.pull-right Powered by #{link_to "Blogr", "https://github.com/blogr/engine"} v#{Blogr::VERSION}
				%p &copy; Blogr #{Time.now.year}

	- if Rails.env.development?
		<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blogr-0.0.6 app/views/layouts/blogr/application.html.haml