Skip to content

Commit

Permalink
Entry pages are now also rendering standards compliant xhtml. (Modern…
Browse files Browse the repository at this point in the history
… entry pages at least, entry pages rendered with older version of lifeflow may have some small validation errors, such as divs inside of paragraphs, etc.)

[#34 state:hold]

I'm putting this on hold for the time being. I need to put together a more effective way to test xhtml compliance than manual submission. Perhaps a local copy of the w3c validator with a testing script...
  • Loading branch information
lethain committed Jun 10, 2008
1 parent 4bbf2f8 commit accc1cd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion templates/lifeflow/comment_list.html
Expand Up @@ -28,8 +28,9 @@
Responding to <a href="#comment_{{ comment.parent.pk }}">{{ comment.parent.name }}</a>
</span>
{% endif %}
<br />
<div class="comment-body">
<p> {{ comment.html|safe }} </p>
{{ comment.html|safe }}
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions templates/lifeflow/entry_detail.html
Expand Up @@ -6,7 +6,7 @@ <h1>{{ object.title|escape }}</h1>
{% with object.authors.all as authors %}
{% if authors %}
<span class="authors">by {% for author in authors %}{{ author.name_with_link|safe }}{% endfor %}</span>
<br>
<br />
{% endif %}
{% endwith %}
<span class="date">
Expand All @@ -18,11 +18,11 @@ <h1>{{ object.title|escape }}</h1>
</span>
{% endfor %}

<br>
<br />
{% with object.translation_set.all as translations %}
{% if translations %}
<span class="translation-header">Translations: </span>
{% for translation in translations %}<span class="translation"{{ translation.get_link|safe }}</span>{% endfor %}
{% for translation in translations %}<span class="translation">{{ translation.get_link|safe }}</span>{% endfor %}
{% endif %}
{% endwith %}
{% with object.translated.all as translated %}
Expand All @@ -32,7 +32,7 @@ <h1>{{ object.title|escape }}</h1>
{% endif %}
{% endwith %}
</div>
<br>
<br />

{% with object.series.all as series %}
{% if series %}
Expand Down
12 changes: 6 additions & 6 deletions templates/lifeflow/social_submit.html
@@ -1,14 +1,14 @@
{% with object.get_absolute_url|urlencode as obj_url %}
{% with object.title|urlencode as obj_title %}
{% with site.domain|urlencode as obj_domain %}
<hr>
<hr />
<div class="social">
<span class="social"><a href="http://reddit.com/submit?url=http://{{ obj_domain }}{{ obj_url }}&title={{ obj_title }}">Reddit</a></span>
<span class="social"><a href="http://del.icio.us/post?url={{ obj_domain }}{{ obj_url }}&title={{ obj_title }}">Del.icio.us</a></span>
<span class="social"><a href="http://www.stumbleupon.com/submit?url={{ obj_domain }}{{ obj_url }}&title={{ obj_title }}">StumbleUpon</a></span>
<span class="social"><a href="http://digg.com/submit?phase=2&url={{ obj_domain }}{{ obj_url }}&title={{ obj_title }}">Digg</a></span>
<span class="social"><a href="http://reddit.com/submit?url=http://{{ obj_domain }}{{ obj_url }}&amp;title={{ obj_title }}">Reddit</a></span>
<span class="social"><a href="http://del.icio.us/post?url={{ obj_domain }}{{ obj_url }}&amp;title={{ obj_title }}">Del.icio.us</a></span>
<span class="social"><a href="http://www.stumbleupon.com/submit?url={{ obj_domain }}{{ obj_url }}&amp;title={{ obj_title }}">StumbleUpon</a></span>
<span class="social"><a href="http://digg.com/submit?phase=2&amp;url={{ obj_domain }}{{ obj_url }}&amp;title={{ obj_title }}">Digg</a></span>
</div>
<hr>
<hr />
{% endwith %}
{% endwith %}
{% endwith %}

0 comments on commit accc1cd

Please sign in to comment.