Changeset 628:90b6545a6a3e
- Timestamp:
- 20/06/12 14:14:07 (11 months ago)
- Branch:
- default
- rebase_source:
- c2ad8a5059a8b11ac2bea2b06270343fd01eeed4
- Location:
- cyclope/apps/articles/templates/articles
- Files:
-
- 3 edited
-
article_detail.html (modified) (5 diffs)
-
article_slideshow_item.html (modified) (2 diffs)
-
article_teaser.html (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cyclope/apps/articles/templates/articles/article_detail.html
r492 r628 1 1 {% extends host_template %} 2 2 3 {% comment%} 4 TODO(nicoechaniz): finish adaptation from smarty to django. add trans to text that should be translated 5 {% endcomment%} 6 7 {% load comments i18n fb_versions cyclope_utils dbgettext_tags%} 3 {% load comments i18n fb_versions cyclope_utils dbgettext_tags %} 8 4 9 5 {% block content %} 10 11 6 {% alias article as 'current_object' %} 12 13 7 <div class="content-view article detail article-detail"> 14 8 … … 16 10 <h6 class="pretitle">{% trans article.pretitle %}</h6> 17 11 {% endif %} 12 18 13 <h1 class="title">{% trans article.name %}</h1> 19 14 … … 42 37 {% endif %} 43 38 44 45 39 <!-- author --> 46 40 {% if article.author %} 47 41 <h4 class="author meta-content"> 48 {% comment %}the path author image not work. uncomment when fixed.49 {% if article.author.image %}50 <img src="{% version author.image.path 'small' %}" width="60" alt="{{ article.author }}" />51 {% endif %}52 {% endcomment %}53 42 <span>{% trans "By"%} {{ article.author }}</span> 54 43 </h4> 55 44 {% endif %} 56 45 <!-- /autor --> 57 58 <!-- descargas -->59 60 <!-- TODO(nicoechaniz): uncomment and fix when attachments are implemented61 62 {if $articulo.downloads eq 'si'}63 64 <div id="attachments">65 <div class="attachments_box">66 <h6><img src="{$templatedir}{{ CYCLOPE_THEME_MEDIA_URL }}images/css/leer_adjuntos.png" alt="Adjuntos" width="16" height="16" border="0" align="absmiddle" /> Archivos para descargar </h6>67 {section name=bucle loop=$downloads}68 <p><img src="http://codigosur.org/imagenes/icons/{$downloads[bucle].ext}.gif" width="20" height="22" border="0" align="middle"> <a href="{$downloads[bucle].link}" title="{$downloads[bucle].desc}" >{$downloads[bucle].nombre}</a></p>69 {/section}70 </div>71 </div>72 73 {/if}74 -->75 <!-- /descargas -->76 46 77 47 <div class="text"><span class="html-text html-content"> … … 80 50 81 51 {% if article.get_last_change_date or article.source %} 82 {% if article.source %} 83 <h6 class="source"> 84 <!-- {% if article.get_last_change_date %}|{% endif%} --> 85 {% trans "Source" %}: {{article.source}} 86 </h6> 52 {% if article.source %} 53 <h6 class="source">{% trans "Source" %}: {{article.source}}</h6> 87 54 {% endif %} 88 55 89 56 {% if article.get_last_change_date %} 90 57 <span class="date"> … … 92 59 </span> 93 60 {% endif %} 94 95 96 61 {% endif %} 97 98 {% comment %} {# TAGS ARE NOT IMPLEMENTED YET #}99 {% if article.tags %}100 <div class="meta-content"><span class="tags"><span class="tags-label"> {% trans "Tags" %}:</span>{{ article.tags }}</span></div>101 {% endif %}102 {% endcomment %}103 62 104 63 <div class="meta-content">{% include 'collections/categories_navigation_block.html' %}</div> 105 64 65 {% include 'cyclope/related_contents_block.html' %} 106 66 107 {% include 'cyclope/related_contents_block.html' %} 108 109 110 <div class="clear"></div> 111 <!-- redsocial #TODO: commented until fixed 112 <div id="socialnetworks" class="socialnetworks">{% trans "Share in your social networks"%}: 113 <a href="http://www.facebook.com" rel="nofollow" onclick="sbs_facebook(); return false;"><img src="{{ CYCLOPE_THEME_MEDIA_URL }}images/redsocial/facebook.png" border="0" alt="Compartir en Facebook" title="Compartir en Facebook" height="24" width="24" /></a> 114 <a href="http://www.del.icio.us" rel="nofollow" onclick="sbs_delicious(); return false;"><img src="{{ CYCLOPE_THEME_MEDIA_URL }}images/redsocial/delicious.png" border="0" alt="Compartir en Delicious" title="Compartir en Delicious" height="24" width="24" /></a> 115 <a href="http://www.yahoo.com" rel="nofollow" onclick="sbs_yahoobm(); return false;"><img src="{{ CYCLOPE_THEME_MEDIA_URL }}images/redsocial/yahoo.png" border="0" alt="Compartir en Yahoo" title="Compartir en Yahoo" height="24" width="24" /></a> 116 <a href="http://www.google.com" rel="nofollow" onclick="sbs_googlebm(); return false;"><img src="{{ CYCLOPE_THEME_MEDIA_URL }}images/redsocial/google.png" border="0" alt="Compartir en Google" title="Compartir en Google" height="24" width="24" /></a> 117 </div> 118 119 <div class="clear"></div> 120 /redsocial --> 121 122 67 <div class="clear"></div> 123 68 124 69 <!--COMENTARIOS --> 125 70 {% include 'comments/comments_block.html' %} 126 127 71 </div> <!--termina article_detail --> 128 129 72 {% endblock content%} -
cyclope/apps/articles/templates/articles/article_slideshow_item.html
r601 r628 1 1 {% load i18n fb_versions cyclope_utils dbgettext_tags %} 2 2 <div class="slideshow article teaser"> 3 4 3 {% if view_options.show_image %} 5 4 <div class="teaser_icon_container"> … … 32 31 </div> 33 32 {% endif %} 34 -
cyclope/apps/articles/templates/articles/article_teaser.html
r492 r628 5 5 <div class="pretitle-container first meta-content"> 6 6 {% if article.pretitle and not simplified_view %} 7 <div class="pretitle">{% trans article.pretitle %}{% if article.date %}<span class="pretitle-separator"> | </span>{% endif %}</div> 7 <div class="pretitle">{% trans article.pretitle %} 8 {% if article.date %}<span class="pretitle-separator"> | </span>{% endif %}</div> 8 9 {% endif%} 9 10 10 11 {% if article.date %} 11 12 <div class="date">{{ article.date|date:'SHORT_DATE_FORMAT' }}</div> … … 13 14 </div> 14 15 15 <h2 class="title"><img class="type_icon" src="{{ CYCLOPE_THEME_MEDIA_URL }}images/icons/article.png" /><a href="{% url article-detail article.slug %}">{{ article.name }}</a></h2> 16 <h2 class="title"><img class="type_icon" src="{{ CYCLOPE_THEME_MEDIA_URL }}images/icons/article.png" /> 17 <a href="{% url article-detail article.slug %}">{{ article.name }}</a> 18 </h2> 16 19 17 20 {% if article.pictures and not simplified_view %} … … 27 30 {{ article|parsed_gettext:"text"|smart_style|truncatewords_html:40 }} 28 31 {% endif %} 29 <span class="more"><a href="{% url article-detail article.slug %}"> {% trans "More" %}</a></span> 32 <span class="more"><a href="{% url article-detail article.slug %}"> {% trans "More" %}</a></span> 30 33 </div> 31 34 … … 42 45 {% if not simplified_view %} 43 46 44 {% comment %} TAGS ARE NOT IMPLEMENTED45 {% if article.tags %}46 <div class="meta-content"><h2 class="tags">47 <span class="tags-label">{% trans "Tags" %}:</span>48 {% tags_for_object article as article_tags %}49 {% for tag in article_tags %}50 <!--<a href="/tag/{{ tag.name|slugify }}" class="tag">{{tag.name}}</a>-->51 {{tag.name}}{% if not forloop.last%},{% endif%}52 53 {% endfor %}54 </h2></div>55 {% endif %}56 {% endcomment %}57 47 <div class="clear"></div> 58 48 {% endif %} 59 60 49 </div>
Note: See TracChangeset
for help on using the changeset viewer.

