diff --git a/README b/README index 7ca01e4..926d080 100644 --- a/README +++ b/README @@ -65,8 +65,11 @@ Setup instructions: "Submit Layer" feature within the interface itself (easiest) or the admin interface to do this. -5. You may wish to customise templates/layerindex/about.html to suit - your installation. +5. You may wish to customise some of the page templates to suit your + installation, in particular: + * templates/base.html + * templates/layerindex/frontpage.html + * templates/layerindex/about.html Usage diff --git a/layerindex/static/css/additional.css b/layerindex/static/css/additional.css index 3818a79..cd99fdd 100644 --- a/layerindex/static/css/additional.css +++ b/layerindex/static/css/additional.css @@ -130,3 +130,29 @@ padding: 8px; padding-top: 1em; border-top: 1px solid rgb(238, 238, 238); } + +.hero-evenlyspaced { + padding: 35px; +} + +.hero-evenlyspaced h1 { + padding-bottom: 0.25em; +} + +.frontpage-button-group { + text-align:center !important; + padding: 10px; +} + +.frontpage-button-group a { + margin: 5px; +} + +.branch { + font-weight: bold; +} + +.well-frontpage { + background-color: white; + height: 100%; +} diff --git a/layerindex/urls.py b/layerindex/urls.py index 02c534c..3c1c541 100644 --- a/layerindex/urls.py +++ b/layerindex/urls.py @@ -11,8 +11,12 @@ from layerindex.views import LayerListView, LayerReviewListView, LayerReviewDeta urlpatterns = patterns('', url(r'^$', + TemplateView.as_view( + template_name='layerindex/frontpage.html'), + name='frontpage'), + url(r'^layers/$', LayerListView.as_view( - template_name='layerindex/index.html'), + template_name='layerindex/layers.html'), name='layer_list'), url(r'^submit/$', edit_layer_view, {'template_name': 'layerindex/submitlayer.html'}, name="submit_layer"), url(r'^edit/(?P[-\w]+)/$', edit_layer_view, {'template_name': 'layerindex/editlayer.html'}, name="edit_layer"), diff --git a/templates/404.html b/templates/404.html index 90ee64c..843d5bc 100644 --- a/templates/404.html +++ b/templates/404.html @@ -18,9 +18,11 @@ {% block content %} {% autoescape on %} +

Page not found

+

The page you requested was not found.

-

Return to the index

+

Return to the front page

{% endautoescape %} {% endblock %} diff --git a/templates/base.html b/templates/base.html index 846a5c8..8954b43 100644 --- a/templates/base.html +++ b/templates/base.html @@ -28,7 +28,7 @@