Skip to content

Instantly share code, notes, and snippets.

@itsbth
Created January 21, 2012 21:51
Show Gist options
  • Select an option

  • Save itsbth/1654179 to your computer and use it in GitHub Desktop.

Select an option

Save itsbth/1654179 to your computer and use it in GitHub Desktop.
Uploaded by UploadToGist for Sublime Text 2
doctype
html
head
title Dupeshare
= stylesheet_link_tag "application"
= javascript_include_tag "application"
= csrf_meta_tags
body
= render partial: 'shared/nav'
.container
- %w(error warning notice success).map(&:to_sym).each do |sym|
- if flash[sym]
.alert-message{class: sym.to_s, data: alert: true}
a.close href: '#'
p= flash[sym]
= yield
footer
p &copy; <a href="http://itsbth.com">Bjørn Tore Håvie</a> 2011 &#x2615;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment