Revision 8a4135b4

b/cloudcmsblog/templates/cloudcmsblog/archive.html
6 6
	<ul>
7 7
	    {% for entry in entries %}
8 8
	    <li>
9
	    	<div class="clearfix">
10
	    		<div class="img-div">
11
	    			<p>{{ entry.published_on|date:"d M Y"|upper }}</p>
12
	    			{% if entry.image %}
13
			        <a href="{{ entry.get_absolute_url }}">	
14
			        	<img src="{{ entry.image.get_absolute_url }}" alt="{{ entry.title }}" />
15
			        </a>
16
			        {% endif %}
17
	    		</div>
18
	    		<div class="txt">
19
	    			<h3>
20
			            <a href="{{ entry.get_absolute_url }}">{{ entry.title|upper }}</a>
21
			        </h3>
22
			        {% if entry.intro_text %}
23
			        <div class="intro-content">
24
			            {{ entry.intro_text|safe|truncatewords:100 }}
25
			            {% if entry.intro_text|safe|wordcount > 100 %}
26
			                <a href="{{ entry.get_absolute_url }}">{% trans "read more" %}</a>
27
			            {% endif %}
28
			        </div>
29
			        {% endif %}
30
	    		</div>
9
	    	 
10
    		 
11
			<p class="date">{{ entry.published_on|date:"d M Y"|upper }}</p>
12
			<h2>
13
	            <a href="{{ entry.get_absolute_url }}">{{ entry.title|upper }}</a>
14
	        </h2>
15
			{% if entry.image %}
16
	        <a href="{{ entry.get_absolute_url }}">	
17
	        	<img src="{{ entry.image.get_absolute_url }}" alt="{{ entry.title }}" />
18
	        </a>
19
	        {% endif %}
20
		 
21
		 
22
			
23
	        {% if entry.intro_text %}
24
	        <div class="intro-content">
25
	            {{ entry.intro_text|safe|truncatewords:100 }}
26
	            {% if entry.intro_text|safe|wordcount > 100 %}
27
	                <a href="{{ entry.get_absolute_url }}">{% trans "read more" %}</a>
28
	            {% endif %}
29
	        </div>
30
	        {% endif %}
31
    		 
31 32
		        
32 33
		         
33 34
		        
34
		    </div>    
35
		       
35 36
	        <p class="info">
36 37
	            {% trans "posted by" %} 
37 38
	            <span class="author">{{ entry.author }}</span>
b/cloudcmsblog/templates/cloudcmsblog/detail.html
2 2

  
3 3
{% fragment request "maincol" %}
4 4
<div class="article">
5
	<p class="date">{{ entry.published_on }}</p>
5 6
    <h2>{{ entry.title|upper }}</h2>
6
    <p class="info">
7
        {% trans "posted by" %} 
8
        <span class="author">{{ entry.author }}</span>
9
        {% trans "on" %} <span class="date">{{ entry.published_on }}</span>,
10
        {% trans "filed under" %}
11
        {% for c in entry.categories.all %}
12
        <a href="{{ c.get_absolute_url }}" title="{{ c|lower }} {% trans "posts" %}">
13
            {{ c|lower }}
14
        </a> {% if not forloop.last %},{% endif %}
15
        {% endfor %}
16
    </p>
7
    
17 8
    {% if entry.image %}
18 9
    <img src="{{ entry.image.get_absolute_url }}" alt="{{ entry.title }}" />
19 10
    {% endif %}
......
26 17
                {{ entry.intro_text|safe }}
27 18
        {% endif %}
28 19
    </div>
29

  
20
	<p class="info">
21
        {% trans "posted by" %} 
22
        <span class="author">{{ entry.author }}</span>
23
        {% trans "on" %} <span class="date">{{ entry.published_on }}</span>,
24
        {% trans "filed under" %}
25
        {% for c in entry.categories.all %}
26
        <a href="{{ c.get_absolute_url }}" title="{{ c|lower }} {% trans "posts" %}">
27
            {{ c|lower }}
28
        </a> {% if not forloop.last %},{% endif %}
29
        {% endfor %}
30
    </p>
30 31
    <p>
31
        <a href="{{ entry.back_url }}">{% trans "Back to blog" %}</a>
32
        <a href="{{ entry.back_url }}">{% trans "&lt; Back " %}</a>
32 33
    </p>
33 34
</div>
34 35
{% endfragment %}

Also available in: Unified diff