Source

article / article / templates / _blog_recipe.html

Full commit
                {% if post.post_recipe %}
			    {% load fractions %}
                <div class="recipe hrecipe">
                  <h2 class="fn"><a href="{{ post.post_recipe.get_absolute_url }}">
                      <strong>Recipe:</strong>{{ post.post_recipe.recipe_name }}</a></h2>

                  {% if post.post_recipe.prep_time %}
                  <p class="times">
                          {% if post.post_recipe.prep_time %}Prep time: <span>
                            <time itemprop="prepTime" datetime="PT{{ post.post_recipe.prep_time|floatformat }}M"> {{ post.post_recipe.prep_time|floatformat }} min<span class="value-title" title="PT{{ post.post_recipe.prep_time|floatformat }}M"></span></time></span> 
                          {% endif %}
                          |
                          {% if post.post_recipe.cook_time %}
	                      Cook time: <span>
		                  <time itemprop="cookTime" 
		                        datetime="PT{{ post.post_recipe.cook_time|floatformat }}M">
		                    {{ post.post_recipe.cook_time|floatformat }} min
		                    <span class="value-title" 
			                      title="PT{{ post.post_recipe.cook_time|floatformat }}M"></span>
		                  </time></span>
	                      {% endif %}
                          |
	                      {% if post.post_recipe.total_time %}
	                      <span class="total-time-box total-time">Total:
	                        <time itemprop="totalTime" 
		                          datetime="PT{{ post.post_recipe.total_time|floatformat }}M">
		                      {{ post.post_recipe.total_time|floatformat }} min
		                      <span class="value-title" 
		                            title="PT{{ post.post_recipe.total_time|floatformat }}M"></span>
	                      </time></span>
	                      {% endif %}
                          |
                          <span>{{ post.post_recipe.recipe_servings|floatformat:"-2" }} servings</span>
                  </p><!-- / times -->
                  {% endif %}

                        <p class="recipe-intro yield"></p>

                  <h3>Description</h3>
                  <div class="summary">{{ post.post_recipe.recipe_description|safe }}</div>

                  <h3 class="break">Ingredients</h3>
                  <ul class="ingredients">
                    {% for r in post.post_recipe.get_ingredients %}
	                <li class="ingredient">
                      <p>
	                  <span class="value">
	                    {% if r.ri_amount %}
	                    {{ r.ri_amount|html_fraction|safe}}
	                    {% endif %} 
		                {{ r.ri_measurement.m_name }}
	                  </span>
	                  <span class="name">
		                {% if r.ri_ingred.affiliate_link %}
		                <a rel="nofollow" href="{{ r.ri_ingred.affiliate_link }}">
		                  {% endif %}
		                  {{ r.ri_ingred.ingred_name }}
		                  {% if r.ri_ingred.affiliate_link %}</a>{% endif %}
	                  </span> 
	                  {% if r.ri_optional %}(optional){% endif %}
                      </p>
	                </li>
	                {% endfor %}
                  </ul> 

                  <h3>Instructions</h3>
                  <div class="instructions">
                    {{ post.post_recipe.recipe_instructions|safe|linebreaks }}
                  </div>

                </div><!-- / recipe -->
                {% endif %}