Source

HH-Courses / templates / course_detail.html

Full commit
{% extends "course_template.html" %}

{% block title %} {% if c %} {{ c.title }} {% endif %} {% endblock %}

{% block content %}

<div class="box_content margin">
  <div class="box_content_head"></div>
	<div class="box_content_body">

	  <div id="details_box" class="span-24 last">
	    <div class="span-16"> 
	    {% if c %}
	    <span class="breadcrumb"><a href="{% url courses.views.course_index %}">Courses Index</a> - {{ c.title }}</span>
	    
		<article>
		  <span class="addtocart">
		    <span class="courseprice">$14.99</span><br>
		    {% if c.id = 2 %}
		    <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=806814&cl=63365&ejc=
		      2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return
		      EJEJC_lc(this);"><img
		      src="http://img.happyherbivore.com/add_to_cart.png" border="0" alt="Add
		      to Cart"/></a>
		    {% endif %}
		    {% if c.id = 1 %}
		    <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=806815&cl=63365&ejc=
		      2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return
		      EJEJC_lc(this);"><img
		      src="http://img.happyherbivore.com/add_to_cart.png" border="0" alt="Add
		      to Cart"/></a>
		    {% endif %}
		    {% if c.id = 3 %}
		    <a href="https://www.e-junkie.com/ecom/gb.php?c=cart&i=806822&cl=63365&ejc=
		      2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return
		      EJEJC_lc(this);"><img
		      src="http://img.happyherbivore.com/add_to_cart.png" border="0" alt="Add
		      to Cart"/></a>
		    {% endif %}
		  </span>
		  
		  <h1 class="coursestitle">{{ c.title }}</h1>
		  
		  <p>Your course consists of a well-research and topic-focused
		  PDF. Certain lessons are accompanied by
		  <a href="http://happyherbivore.blip.tv/">videos</a>, which
		  are free to everyone. Look for videos with the "Lesson" prefix.</p>
		  
		  {{ c.selling|safe }}
		  
		  <h2>Course Summary:</h2>
		  {{ c.summary|safe }}
		  
		  <h2>Benefits:</h2>
		  {{ c.benefits|safe }}
		  
		  <span class="discussion"><a href="{{ c.discussion }}"><img src="http://img.happyherbivore.com/question.png">Discussion Group</a></span>
		</article>

	    {% else %}
		    <p>No Course exists for your request.</p>
	    {% endif %}
	    </div>
	    <div class="span-6 last">
	      
	      <h1>Testimonials</h1>
	      
	      {% if c %}
		  {{ c.testimonials|safe }}
	      {% endif %}
	      
	    </div>
	  </div> <!-- details_box -->
	
	</div><!-- box_content_body -->
  <div class="content_box_footer"></div>
</div><!-- box_content margin --> 		
{% endblock %}