Skip to content

Instantly share code, notes, and snippets.

@mattrayner
Created March 25, 2015 10:43
Show Gist options
  • Save mattrayner/bf59c2d3fe6550399e66 to your computer and use it in GitHub Desktop.
Save mattrayner/bf59c2d3fe6550399e66 to your computer and use it in GitHub Desktop.
A sample working haml layout for dashing
- content_for :title do
My super sweet dashboard
.gridster
%ul
%li{"data-col" => "1", "data-row" => "1", "data-sizex" => "1", "data-sizey" => "1"}
%div{"data-id" => "status", "data-moreinfo" => "Protip: You can drag the widgets around!", "data-text" => "", "data-title" => "Uniprix-Printemps", "data-view" => "Text"}
%li{"data-col" => "1", "data-row" => "1", "data-sizex" => "1", "data-sizey" => "1"}
%div{"data-id" => "participant_count", "data-title" => "Participants", "data-view" => "Number"}
%li{"data-col" => "1", "data-row" => "1", "data-sizex" => "1", "data-sizey" => "1"}
%div{"data-id" => "prize_sum", "data-max" => "20000", "data-min" => "0", "data-title" => "Total des prix", "data-view" => "Meter"}
%li{"data-col" => "1", "data-row" => "1", "data-sizex" => "1", "data-sizey" => "1"}
%div{"data-id" => "status", "data-view" => "Text", "data-title" => "Status"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment