Skip to content

Commit

Permalink
Update application.html.haml
Browse files Browse the repository at this point in the history
  • Loading branch information
dcrec1 committed Nov 9, 2012
1 parent be69d8c commit 795c4f3
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,30 @@
%html
%head
%title
%meta{ name: "viewport", content: "width=device-width, initial-scale=1.0" }
= stylesheet_link_tag "application", :media => 'screen, projection'
= stylesheet_link_tag "print", :media => 'print'
= csrf_meta_tag
%body
%header
%nav.navbar.navbar-fixed-top
.navbar-inner
.container
= link_to "", root_path, class: "brand"
%section#content
%ul.nav.pull-right
%li
- if user_signed_in?
= link_to "Sair", destroy_user_session_path, method: :delete
- else
= link_to "Login", new_user_session_path
%section
#flash
- flash.each do |key, value|
%div{ class: key }= value
%div{ class: "alert alert-#{key}" }= value

= yield
#content= yield

%footer

Expand Down

0 comments on commit 795c4f3

Please sign in to comment.