|
@@ -20,6 +20,23 @@
|
|
{{ smo_metadata(article) }}
|
|
{{ smo_metadata(article) }}
|
|
{% endblock meta_tags_in_head %}
|
|
{% endblock meta_tags_in_head %}
|
|
|
|
|
|
|
|
+{% block style %}
|
|
|
|
+{% if DRAFT %}
|
|
|
|
+<style>
|
|
|
|
+.article-content p {
|
|
|
|
+ padding-left: 50px;
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.article-content p:before {
|
|
|
|
+ display: block;
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 5px;
|
|
|
|
+}
|
|
|
|
+</style>
|
|
|
|
+{% endif %}
|
|
|
|
+{% endblock %}
|
|
|
|
+
|
|
{% block content %}
|
|
{% block content %}
|
|
<article>
|
|
<article>
|
|
<div class="row-fluid">
|
|
<div class="row-fluid">
|
|
@@ -37,9 +54,9 @@
|
|
</nav>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
<div class="span8 article-content">
|
|
<div class="span8 article-content">
|
|
- {% else %}
|
|
|
|
|
|
+ {% else %}
|
|
<div class="span8 offset2 article-content">
|
|
<div class="span8 offset2 article-content">
|
|
- {% endif %}
|
|
|
|
|
|
+ {% endif %}
|
|
|
|
|
|
{% import '_includes/translations.html' as translations with context %}
|
|
{% import '_includes/translations.html' as translations with context %}
|
|
{{ translations.translations_for(article) }}
|
|
{{ translations.translations_for(article) }}
|
|
@@ -93,6 +110,7 @@
|
|
{% from '_includes/comments.html' import comments_script with context %}
|
|
{% from '_includes/comments.html' import comments_script with context %}
|
|
{{ comments_script(article) }}
|
|
{{ comments_script(article) }}
|
|
|
|
|
|
|
|
+{% if DRAFT %}
|
|
<script>
|
|
<script>
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
var maxNum = 0; //how many lines should be prepared (Takin in considersation, there would be more wrappers)
|
|
var maxNum = 0; //how many lines should be prepared (Takin in considersation, there would be more wrappers)
|
|
@@ -112,5 +130,6 @@ $(document).ready(function() {
|
|
console.log("resulting generated <style id='numbers'>"+prepStyle+"</style>")
|
|
console.log("resulting generated <style id='numbers'>"+prepStyle+"</style>")
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
|
|
+{% endif %}
|
|
|
|
|
|
{% endblock script %}
|
|
{% endblock script %}
|