home.html 3.55 KB
Newer Older
denis's avatar
denis committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{% extends 'base.html' %}

{% block header %}

{% endblock %}

{% block content %}
<div>

    <div id="active-projects">
        <div id="home-info" class="project">
        <p>You're looking at the inside of our cupboards. In the OSP kitchen, source files&nbsp;=&nbsp;ingredients. These arrangements of blocks of text and images depict recent projects, their narratives, some selected visuals and how these all came to be. <br>We welcome you to <a href="http://en.wikipedia.org/wiki/Copyleft#Applying_copyleft">study</a>
        these, <a href="http://en.wikipedia.org/wiki/Copyleft#Applying_copyleft">improve</a> them, to <a href="http://en.wikipedia.org/wiki/Copyleft#Applying_copyleft">redistribute copies</a>
        of them and <a href="http://en.wikipedia.org/wiki/Copyleft#Applying_copyleft">release your improvements</a>.
        <br>Nous sommes embarqués.
        <a href="{{ HOST }}/about">Read more about the way we work</a></p>
17 18 19 20 21
        <h1><a href="http://ospublish.constantvzw.org/blog/">Latest posts on &nbsp;the&nbsp;blog</a></h1>
        <div id="on-the-table-feed">
          <ul>
          {% for entry in ospblog %}
          <li><a href="{{entry.link}}">{{entry.title}}</a>
22
            <p>{{ entry.summary|safe }}</p>
23 24 25 26
          </li>
          {% endfor %}
        </ul>
        </div>
denis's avatar
denis committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
        {% include "incl-newsletter.html" %}
        </div>

        {% for repo in repos %}
        <div class="project">
            <h2 class="project-title">
              {% if repo.category %}
                <a class="category" href="{% url osp.views.category repo.category %}">{{ repo.category }}</a><br>
                {% else %}
                  <a class="category-none" href="#"></a><br>
              {% endif %}
            <a href="{{ repo.web_path }}">{{ repo.name }}</a>
            </h2>
            <div class="iceberg">
              {% if repo.cover %}
                <a href="{{ repo.web_path }}">
                <img src="/visual/{{repo.slug}}/{{repo.cover.hex}}/width..300/{{ repo.cover.name }}"/>
                </a>
              {% else %}
                {% for ice in repo.iceberg|dictsortreversed:"datetime" %}
                    {% if forloop.first %}
                    <!--<a href="/{{ repo.category }}/{{ repo.name }}/tree/master/iceberg/{{ ice.name }}">-->
                    <a href="{{ repo.web_path }}">
                        {% if 'image/' in ice.mime and 'svg' not in ice.mime or ice.mime == 'application/pdf' %}
                        <img src="/visual/{{repo.slug}}/{{ice.hex}}/width..300/{{ ice.name }}.png"/>
                        {% else %}
                        <img src="/static/img/file-frog.png" />
                        {% endif %}
                    </a>
                    {% endif %}
                {% endfor %}
              {% endif %}

            </div>

            {% include "commit-list.html" %}
            <div class="gradient-to-more">
              <a href="{{ repo.web_path }}" class="see-more">see more</a>
            </div>
        </div>
        {% endfor %}

    </div>
</div>
{% endblock %}

{% block footer %}
  <p> These project views are all based on <a href="{{ HOST }}/tools/visualculture/">VisualCulture</a>.<br>We welcome you to <a href="http://en.wikipedia.org/wiki/Copyleft#Applying_copyleft">study</a>
  these, <a href="http://en.wikipedia.org/wiki/Copyleft#Applying_copyleft">improve</a> them, to <a href="http://en.wikipedia.org/wiki/Copyleft#Applying_copyleft">redistribute copies</a>
  of them and <a href="http://en.wikipedia.org/wiki/Copyleft#Applying_copyleft">release your improvements</a>.</p>
{% endblock %}