Skip to content

Instantly share code, notes, and snippets.

View jannylund's full-sized avatar

Jan Nylund jannylund

View GitHub Profile
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="hero-unit">
<h1>Passbook: Infra-structure</h1>
<p>Your company can have passbook too.</p>
<p><a href="#" class="btn btn-primary btn-large">Learn more &raquo;</a></p>
</div>
<!-- Example row of columns -->
@(elements: views.html.helper.FieldElements)
<div class="form-group @elements.args.get('_class) @if(elements.hasErrors) {has-error}" id="@elements.args.get('_id).getOrElse(elements.id + "_field")">
<label for="@elements.id" class="col-lg-2 control-label">@elements.label(elements.lang)</label>
<div class="col-lg-10">
@elements.input
@if(!elements.errors.isEmpty) {
<span class="help-inline">@elements.errors(elements.lang).mkString(", ")</span>
} else {
<span class="help-block">@elements.infos(elements.lang).mkString(", ")</span>
# Upstart script for a play application that binds to an unprivileged user.
# put this into a file like /etc/init/play.conf
#
# This could be the foundation for pushing play apps to the server using something like git-deploy
# By calling service play stop in the restart command and play-start in the restart command.
#
# Usage:
# start play
# stop play
# restart play