Skip to content

Commit

Permalink
Add demo warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Aug 19, 2015
1 parent e24cb56 commit b5bbf7e
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions _theme/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
<style>
.highlight .k { font-weight: normal; }
.doc { background: none; }
#demo-warning {
background-color: #FFB3B3;
padding: 3px 10px;
margin-bottom: 30px;
}
#demo-warning h4 { font-size: 1.2em;font-weight: bold; }
#demo-warning p { margin-bottom: 0; }
</style>
{% endblock %}

Expand All @@ -27,11 +34,16 @@
{%- if render_sidebar %}
<div id="sidebar" class="col-sm-3">
<div id="sidebar-content">
{%- include "globaltoc.html" %}
<div id="demo-warning">
<h4>This is a demo</h4>
<p>This is a demo provided by platform.sh, visit <a href="http://symfony.com/doc/current/{{ pagename }}">this page in the official docs</a>.</p>
</div>

{%- include "globaltoc.html" %}

{% if not isIndex %}
{%- include "localtoc.html" %}
{% endif %}
{% if not isIndex %}
{%- include "localtoc.html" %}
{% endif %}
</div>
</div>
{%- endif %}
Expand Down Expand Up @@ -59,6 +71,10 @@ <h1 class="content_title">{{ title }}</h1>
<a href="{{ next.link|e }}">{{ next.title|striptags|e }} »</a>
</div>
{% endif %}

<div id="license">
<p>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">License</a>.</p>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit b5bbf7e

Please sign in to comment.