aboutsummaryrefslogtreecommitdiffstats
path: root/built-texts/templates/index.html
blob: 727489cfccf656f600eb7978de8da2f753ed54cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
{% extends "base.html" %}
{% block content_title %}{% endblock %}
{% block content %}        

{% if articles %}
{% for article in articles_page.object_list %}        

{% if loop.first and not articles_page.has_previous() %}
    <div class='row-fluid''>
        <div class="article-title span9">
            <a href="{{ SITEURL }}/{{ article.url }}"><h1>{{ article.title }}</h1></a>
        </div>
    </div>
    <div class="row-fluid">
      <div class="span2">
	{% include "article-sidebar.html" %}
      </div>
      <div class="article-content span8">
	{{ article.content}} 
	<a class="btn btn-mini xsmall" href="{{ SITEURL }}/{{ article.url }}">
          <i class="icon-comment"></i> Comment </a>
	<hr />
      </div>
      
    </div>
    
    {% if loop.length == 1 %}
        {% include 'pagination.html' %}
    {% endif %}

{# other items #}
{% else %}


    <div class='row-fluid'>
      <div class='article-title span9'> 
        <a href="{{ SITEURL }}/{{ article.url }}"><h1>{{ article.title }}</h1></a>
      </div>
    </div>
    <div class="row-fluid">
      <div class="span2">
	{% include "article-sidebar.html" %}
      </div>
      <div class="summary span8">
	{{ article.summary }} 
	<a class="btn btn-mini xsmall" href="{{ SITEURL }}/{{ article.url }}">
          <i class="icon-plus-sign"></i> Read More </a>
	<hr />
      </div>
      
    </div>
      
    {% if loop.last and (articles_page.has_previous() or not articles_page.has_previous() and loop.length > 1) %}
        {% include 'pagination.html' %}
    {% endif %}

{% endif %} {# First item if #}

{% endfor %} {# For article #}
{% endif %} {# If articles #}

{% endblock content %}