2017-07-03 08:14:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="large-8 medium-8 columns special-column">
|
|
|
|
<img src="http://camputer.org/images/{{projects.image}}">
|
|
|
|
<div class="index-text">
|
|
|
|
<h4><a href="/{{projects.type}}/{{ projects.shortname }}/" class="big-title">{{projects.title}} </a></h4>
|
|
|
|
<p> {{projects.formatted_header|safe}} </p>
|
|
|
|
<p> {{projects.formatted_body|safe}} </p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if latest_content_list %}
|
|
|
|
|
|
|
|
<div class="large-4 medium-4 columns">
|
2017-08-03 17:44:00 +00:00
|
|
|
{% if projects.children.all %}
|
|
|
|
<h4 class="sidebar-h4"> Related </h4>
|
|
|
|
{% for child in projects.children.all %}
|
|
|
|
<div class="row related-row">
|
|
|
|
<div class="small-6 columns">
|
|
|
|
<img src="http://camputer.org/images/{{ child.image }}">
|
|
|
|
</div>
|
|
|
|
<div class="small-6 columns">
|
|
|
|
<h6><a href="http://127.0.0.1:8000/{{child.type}}/{{child.shortname}}" class="sidebar-title"> {{child}} </a> </h6>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
<h4 class="sidebar-h4">Projects </h4>
|
2017-07-03 08:14:07 +00:00
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
{% for projects in latest_content_list %}
|
|
|
|
<div class="row right-items">
|
|
|
|
<div class="small-6 columns">
|
|
|
|
<img src="http://camputer.org/images/{{ projects.image }}">
|
|
|
|
</div>
|
|
|
|
<div class="small-6 columns">
|
|
|
|
<a href="/{{projects.type}}/{{ projects.shortname }}/" class="sidebar-title">{{ projects.title }}</a>
|
2017-08-03 17:44:00 +00:00
|
|
|
<p> {{projects.header|striptags|truncatechars:100}} </p>
|
2017-07-03 08:14:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2017-08-03 17:44:00 +00:00
|
|
|
<p>No projects.</p>
|
2017-07-03 08:14:07 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|