Skip to content

Instantly share code, notes, and snippets.

@andrebras
Created January 26, 2012 18:57
Show Gist options
  • Save andrebras/1684373 to your computer and use it in GitHub Desktop.
Save andrebras/1684373 to your computer and use it in GitHub Desktop.
So you can compare
%head
%title= content_for?(:title) ? yield(:title) : "Sprai"
= stylesheet_link_tag 'screen.css', media: 'screen, projection'
= stylesheet_link_tag 'print.css', media: 'print'
/ = stylesheet_link_tag '1140.css'
= stylesheet_link_tag 'application.css'
/[if IE]
= stylesheet_link_tag 'ie.css', :media => 'screen, projection'
= javascript_include_tag :defaults
= csrf_meta_tag
= yield(:head)
%body
#container
.topbar
.topbar-inner
.container
-# brand name (software name)
.brand sprai
-# navigation
%ul.nav.top-bar-menu
%li= link_to "Dashboard", dashboard_index_path
%li= link_to Project.model_name.human(:count => 0), projects_path
%li= link_to ComercialEntity.model_name.human.pluralize, entities_comercial_entities_path
-# search box
= form_tag entities_comercial_entities_path, method: 'get' do
%p.search-box
= search_field_tag :search, params[:search]
= submit_tag "Pesquisa", name: nil
.alerts-and-errors
- flash.each do |name, msg|
%div{['alert-message', "#{name}"]}
= link_to 'x', '', :class => 'close'
%p.message
%strong= msg
= content_tag :h1, yield(:title) if show_title?
= yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment