forked from global-pulse/HunchWorks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
117 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,36 @@ | ||
{% extends "hunches/show/base.html" %} | ||
{% load paginator_tags %} | ||
{% load bookmark_tags %} | ||
{% load embed_tags %} | ||
{% load markup %} | ||
|
||
{% block title %} | ||
Evidence — | ||
{{ block.super }} | ||
{% endblock %} | ||
|
||
{% block secondary_content %} | ||
{% if hunch_evidences.object_list %} | ||
|
||
<section class="object-list evidence"> | ||
{% for object in hunch_evidences.object_list %} | ||
|
||
<article class="evidence short" data-id="{{ object.evidence.id }}"> | ||
{% embed object.evidence.link %} | ||
<h2><a href="">{{ object.evidence }}</a></h2> | ||
|
||
<ul class="stats"> | ||
<li>Added by: {{ object.creator }}</li> | ||
<li>Comments: {{ object.comment_set.count }}</li> | ||
<li>Votes: {{ object.vote_set.count }}</li> | ||
</ul> | ||
</article> | ||
{% block evidence_tab_class %}active{% endblock %} | ||
|
||
{% endfor %} | ||
</section> | ||
|
||
{% include "includes/evidences/list.html" with object_list=evidences.object_list %} | ||
{% else %} | ||
<div class="empty-list"> | ||
<p>No evidence has been added to this hunch yet.</p> | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block paginator %} | ||
{% paginator hunch_evidences %} | ||
{% block secondary_content %} | ||
<article class="evidence full"> | ||
<header> | ||
{% if evidence.link %} | ||
{% embed evidence.link %} | ||
<h1><a href="{{ evidence.get_absolute_url }}">{{ evidence }}</a></h1> | ||
{% else %} | ||
<section class="desc"> | ||
{{ evidence.description|markdown }} | ||
</section> | ||
|
||
<h1><a href="{{ evidence.get_absolute_url }}">{{ evidence }}</a></h1> | ||
{% endif %} | ||
</header> | ||
|
||
<!--<ul class="meta"> | ||
<li class="source"><span>Source:</span> <a href="{{ evidence.link }}">{{ evidence.short_link }}</a></li> | ||
<li class="date"><span>Posted:</span> {{ evidence.time_created|date:"j F Y" }}</li> | ||
<li class="creator"><span>By:</span> <a href="{{ evidence.creator.get_absolute_url }}">{{ evidence.creator }}</a></li> | ||
</ul>--> | ||
|
||
{% bookmarks evidence %} | ||
</article> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% extends "hunches/show/base.html" %} | ||
{% load paginator_tags %} | ||
{% load embed_tags %} | ||
|
||
{% block title %} | ||
Evidence — | ||
{{ block.super }} | ||
{% endblock %} | ||
|
||
{% block secondary_content %} | ||
{% if hunch_evidences.object_list %} | ||
|
||
<section class="object-list evidence"> | ||
{% for object in hunch_evidences.object_list %} | ||
|
||
<article class="evidence short" data-id="{{ object.evidence.id }}"> | ||
{% embed object.evidence.link %} | ||
<h2><a href="{% url hunch_evidence object.hunch.id, object.evidence.id %}">{{ object.evidence }}</a></h2> | ||
|
||
<ul class="stats"> | ||
<li>Added by: {{ object.creator }}</li> | ||
<li>Comments: {{ object.comment_set.count }}</li> | ||
<li>Votes: {{ object.vote_set.count }}</li> | ||
</ul> | ||
</article> | ||
|
||
{% endfor %} | ||
</section> | ||
|
||
{% include "includes/evidences/list.html" with object_list=evidences.object_list %} | ||
{% else %} | ||
<div class="empty-list"> | ||
<p>No evidence has been added to this hunch yet.</p> | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block paginator %} | ||
{% paginator hunch_evidences %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters