Skip to content

Commit 01dd675

Browse files
wouterjweaverryan
authored andcommitted
Add demo warning
1 parent a10683b commit 01dd675

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

_theme/_templates/layout.html

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
<style>
1414
.highlight .k { font-weight: normal; }
1515
.doc { background: none; }
16+
#demo-warning {
17+
border: 3px dashed #c00;
18+
padding: 10px;
19+
margin-bottom: 30px;
20+
}
21+
#demo-warning h4 { font-size: 1.7em;font-weight: bold; }
22+
#demo-warning p { margin-bottom: 0; }
1623
</style>
1724
{% endblock %}
1825

@@ -27,11 +34,17 @@
2734
{%- if render_sidebar %}
2835
<div id="sidebar" class="col-sm-3">
2936
<div id="sidebar-content">
30-
{%- include "globaltoc.html" %}
37+
<div id="demo-warning">
38+
<h4>This is a demo</h4>
39+
<p>This is a demo provided by platform.sh.<br>
40+
<a href="http://symfony.com/doc/current/{{ pagename }}">Visit on symfony.com</a>.</p>
41+
</div>
42+
43+
{%- include "globaltoc.html" %}
3144

32-
{% if not isIndex %}
33-
{%- include "localtoc.html" %}
34-
{% endif %}
45+
{% if not isIndex %}
46+
{%- include "localtoc.html" %}
47+
{% endif %}
3548
</div>
3649
</div>
3750
{%- endif %}
@@ -59,6 +72,10 @@ <h1 class="content_title">{{ title }}</h1>
5972
<a href="{{ next.link|e }}">{{ next.title|striptags|e }} »</a>
6073
</div>
6174
{% endif %}
75+
76+
<div id="license">
77+
<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>
78+
</div>
6279
</div>
6380
</div>
6481
</div>

0 commit comments

Comments
 (0)