This file contains hidden or 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
<!DOCTYPE html> | |
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--> | |
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]--> | |
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]--> | |
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> | |
<head> | |
{% include 'head' %} | |
</head> | |
<body class="{{ page.slug }}"> |
This file contains hidden or 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
require 'rubygems' | |
require 'bundler/setup' | |
require 'bundler/capistrano' | |
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path. | |
require "rvm/capistrano" # Load RVM's capistrano plugin. | |
set :rvm_ruby_string, 'ree-1.8.7@bluenail' # Or whatever env you want it to run in. | |
set :rvm_type, :system | |
set :user, "dk" |
This file contains hidden or 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
{% block enquiry %} | |
<form id="enquiry_form" action="{{ contents.enquiries.api.create }}" method="post"> | |
{% editable_long_text 'welcome' %} | |
<h3>Got an enquiry?</h3> | |
<p>Please fill in the form below and we will get in touch as soon as possible.</p> | |
{% endeditable_long_text %} | |
<fieldset> | |
<div id="error_message">No Errors</div> | |
<ol> | |
<li> |
This file contains hidden or 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
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" | |
vc_dirty_marker="✘" | |
prompt_designator_symbol="»" | |
prompt_designator_alternate="…" | |
_prompt_colour() { | |
echo -n '\[' | |
if [[ "$1" = default ]]; then | |
echo -n "\\e[0m" |
This file contains hidden or 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 'parent' %} | |
{% block body %} | |
{% for wine in contents.wines %} | |
<a href="/all_of_our_wines/{{wine._permalink}}">{{wine.title}}</a> | |
{% endfor %} | |
{% for shirt in products.shirts %} | |
<a href="/all_of_our_shirts/{{shirt._permalink}}">{{wine.title}}</a> | |
{% endfor %} |
This file contains hidden or 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
{% for field in products.all.product_group_fields.style %} | |
{% for style in field.field_values %} | |
<li><a href="/wines?style={{style.value}}">{{ style.value }}</a></li> | |
{% endfor %} | |
{% endfor %} |
This file contains hidden or 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
{% paginate products.all.order_by_max_price_asc.search by 15 %} | |
<ol> | |
<li><ol> | |
{% for product in paginate.collection %} | |
<li> | |
This file contains hidden or 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
/init.d/nginx | |
#!/bin/sh | |
# SOURCE http://snipplr.com/view/6125/ubuntudebian-nginx-initd-script/ | |
# Modified for Babushka use | |
PATH=/sbin:/bin:/usr/sbin:/usr/bin | |
DAEMON=SETME | |
CONFIG_FILE=SETME |
This file contains hidden or 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
{ | |
:en => { | |
:time => { | |
:formats => { | |
:day => "%A", | |
:date => lambda { |time, _| "#{time.day.ordinalize} %B" }, | |
:time => "%k%p", | |
:full => lambda { |time, _| "%A #{time.day.ordinalize} %B at %k%p" }, | |
} | |
} |