{% extends "kompomaatti/base.html" %}

{% block head %}
{{ block.super }}
{% endblock %}

{% block jquery %}
{{ block.super }}
{% if entry.compo.allow_player %}
	$("#mplayer").jPlayer({
		ready: function () {
		   $(this).jPlayer("setMedia", {
		    oga: "{{ entry.entryfile.url }}"
		});
	},
	swfPath: "/static/libs/js/jplayer-2.1.0/",
	supplied: "oga"
 });
{% endif %}
{% endblock %}

{% block content %}
{{ block.super }}
<h2>Entry: {{ entry.name }} by {{ entry.creator }}</h2>
{% if entry.imagefile_thumbnail %}
<p>
    <img src="{{ entry.imagefile_thumbnail.url }}" alt="{{ entry.name }}" width="{{ entry.imagefile_thumbnail.width }}" height="{{ entry.imagefile_thumbnail.height }}" />
</p>
{% endif %}
{% if entry.compo.allow_player %}
<p>
	<div id="mplayer"></div>
</p>
{% endif %}
<p>
    {{ entry.description }}
</p>
<p>
    <a href="{{ entry.entryfile.url }}">Lataa teos &raquo;</a>
</p>
{% endblock %}
{% extends "kompomaatti/base.html" %}

{% block head %}
{{ block.super }}
{% endblock %}

{% block jquery %}
{{ block.super }}
{% if entry.compo.entry_view_type == 3 %}
	$("#mplayer").jPlayer({
		ready: function () {
		   $(this).jPlayer("setMedia", {
		    oga: "{{ entry.entryfile.url }}"
		});
	},
	swfPath: "/static/libs/js/jplayer-2.1.0/",
	supplied: "oga"
 });
{% endif %}
{% endblock %}

{% block content %}
{{ block.super }}
<h2>Entry: {{ entry.name }} by {{ entry.creator }}</h2>
{% if entry.compo.entry_view_type == 2 and entry.imagefile_thumbnail %}
<p>
    <img src="{{ entry.imagefile_thumbnail.url }}" alt="{{ entry.name }}" width="{{ entry.imagefile_thumbnail.width }}" height="{{ entry.imagefile_thumbnail.height }}" />
</p>
{% endif %}
{% if entry.compo.entry_view_type == 3 %}
<p>
	<div id="mplayer"></div>
</p>
{% endif %}
<p>
    {{ entry.description }}
</p>
<p>
    <a href="{{ entry.entryfile.url }}">Lataa teos &raquo;</a>
</p>
{% endblock %}
Handle jPlayer / Image in Entries
Handle jPlayer / Image in Entries
