Created
March 31, 2009 12:52
-
-
Save botanicus/88171 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! 1.0 Strict | |
%html{html_attrs("cs")} | |
%head | |
%title= block("title", Shop.company.name) | |
%meta{"http-equiv" => "content-type", content: "text/html; charset=utf-8"} | |
%meta{"http-equiv" => "content-language", content: "cs"} | |
%meta{name: "description", content: block("description", Shop.company.description)} | |
%meta{name: "keywords", content: block("keywords", Shop.company.keywords)} | |
%meta{name: "author", content: Shop.company.name} | |
= pupu :blueprint, plugins: ["fancy-type"] | |
= pupu :squeezebox | |
= pupu :flash | |
= pupu :slider | |
= pupu :autocompleter, type: "request" | |
= pupu "form-defaults" | |
= pupu :mootools, more: true | |
/ Array.new is because it shouldn't return nil, otherwise we got exception from javascripts helper | |
= javascripts "application", *block("javascripts", Array.new) | |
= stylesheets *block("stylesheets", Array.new) | |
%body | |
.container | |
%h1 | |
/ TODO request.host + request.port should be defined as method | |
%a{href: "http://#{request.host}:#{request.port}"}= "[ #{Shop.company.name} ]" | |
%h2.alt ... to nejlepší pro vaše auto | |
%hr | |
/ #msg-success.success= message[:success] | |
/ #msg-notice.notice= message[:notice] | |
/ #msg-error.error= message[:error] | |
%div.span-16 | |
%div.span-14= block "content" | |
%div.span-4.last | |
%form{action: "/vyhledavani"} | |
%input#search{type: "text", name: "query", rel: "Vyhledávání"} | |
/ TODO: why this rel? Check JS, have no idea :) | |
%input{type: "submit"} | |
%br | |
%h3 Navigace | |
- block "navigation" | |
%div.span-8.last | |
%hr | |
== © #{copyright(2008)} #{Shop.company.name} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- extends "base.html" | |
- block "navigation" do | |
%ul | |
%li | |
%a{href: "/kontakt"} Kontakt | |
%li | |
%a{href: "/produkty"} Naše nabídka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- extends "eshop/base.html" | |
/ head | |
- block "title", "Nabídka našich produktů" | |
- block "description", "" | |
/ content | |
- block "content" do | |
%h1 Test | |
= partial "eshop/products/list" | |
= paginate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment