Mercurial > piecrust2
view docs/templates/splash.html @ 380:f33712c4cfab
routing: Fix bugs with matching URLs with correct route but missing metadata.
When matching a route like `/foo/%slug%` against an URL like `/foo`, the route
will (correctly) return a match, but it will be completely missing the `slug`
metadata, resulting in problems elsewhere. This change makes it so that any
missing route metadata will be filled in with an empty string.
And because this means generated URLs may differ from the incoming URL when
using trailing slashes (`/foo/` _vs._ `/foo`), we make the assert in the
chef server handle those discrepancies.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 10 May 2015 00:34:21 -0700 |
parents | f8601540caff |
children | 94d7d5e38571 |
line wrap: on
line source
{% extends "default.html" %} {% block header %} <header class="splash"> <h1>PieCurst</h1> <div class="splash-logo"> </div> <div class="splash-main"> {{main|safe}} </div> </header> {% endblock %} {% block content %} <section class="splash splash-chalkboard"> <div class="container"> <h2>Chef's Features</h2> <div class="row"> <div class="col-sm-6 col-md-4"> <img class="splash-icon" src="{{site.root}}img/cake-white.png" /> {{simple|safe}} </div> <div class="col-sm-6 col-md-4"> <img class="splash-icon hidden-xs" src="{{site.root}}img/chef-hat-white.png" /> {{bake|safe}} </div> <div class="clearfix visible-sm-block"></div> <div class="col-sm-6 col-md-4"> <img class="splash-icon hidden-sm" src="{{site.root}}img/whisk-white.png" /> {{ingr|safe}} </div> <div class="clearfix visible-md-block visible-lg-block"></div> <div class="col-sm-6 col-md-4"> {{oven|safe}} </div> <div class="clearfix visible-sm-block"></div> <div class="col-sm-6 col-md-4"> <img class="splash-icon visible-xs" src="{{site.root}}img/chef-hat-white.png" /> {{fast|safe}} </div> <div class="col-sm-6 col-md-4"> {{carte|safe}} </div> </div> </div> </section> <section class="splash splash-board"> <div class="container"> <div class="row"> <div class="col-xs-12 col-md-8 col-md-offset-2"> {{startnow|safe}} </div> </div> </div> </section> {% endblock %}