Skip to content

Instantly share code, notes, and snippets.

@heijmerikx
Created December 12, 2010 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heijmerikx/738264 to your computer and use it in GitHub Desktop.
Save heijmerikx/738264 to your computer and use it in GitHub Desktop.
jQuery mobile homepage, incult.nl
%div{'data-role' => 'page'}
%div{'data-role' => 'header'}
%h1 InCult #{t('mobile.mobile').capitalize}
%div{'data-role' => 'content'}
%ul{'data-role' => 'listview', 'data-inset' => 'true', 'data-theme' => 'c', 'data-dividertheme' => 'b'}
%li{'data-role' => 'list-divider'} Menu
%li=link_to t('site.artists').capitalize, artists_url
%li=link_to t('mobile.current_events').capitalize, events_url
%li=link_to t('site.venues').capitalize, venues_url
= form_tag('/search', :id => 'qs') do |f|
%div{'data-role' => 'fieldcontain'}
%label{'for' => 'search'}Zoek:
=text_field_tag('txt', nil, options={'data-theme' => 'c', :type => 'search', :id => 'search'})
%ul{'data-role' => 'listview', 'data-inset' => 'true', 'data-theme' => 'c', 'data-divicertheme' => 'b'}
%li{'data-role' => 'list-divider'} Info
-for page in Page.roots
%li= link_to h(page.title), page_path(page)
%fieldset{:class => 'ui-grid-a'}
.ui-block-a
-if I18n.locale.to_s == 'en'
%a{'href' => '/en/', 'data-role' => 'button', 'rel' => 'external', 'data-theme' => 'b', 'data-icon' => 'check'}EN
-else
%a{'href' => '/en/', 'data-role' => 'button', 'rel' => 'external'}EN
.ui-block-b
-if I18n.locale.to_s == 'nl'
%a{'href' => '/nl/', 'data-role' => 'button', 'rel' => 'external', 'data-theme' => 'b', 'data-icon' => 'check'}NL
-else
%a{'href' => '/nl/', 'data-role' => 'button', 'rel' => 'external'}NL
%div{'data-role' => 'header'}
%h1 BETA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment