Changeset fca9c76
- Timestamp:
- 11/10/11 13:52:36 (20 months ago)
- Branches:
- master, crem, crem2, dev, dev2, diadems, forma, generic, instru_search, lam, nlivemulti, production, release/1.4.4, security, social, storage, test, video
- Children:
- fb59680
- Parents:
- 94ae57b
- git-author:
- yomguy <yomguy@…> (11/10/11 13:52:36)
- git-committer:
- yomguy <yomguy@…> (11/10/11 13:52:36)
- Location:
- telemeta/templates/telemeta_default
- Files:
-
- 2 edited
-
mediaitem_detail.html (modified) (2 diffs)
-
mediaitem_detail_dc.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
telemeta/templates/telemeta_default/mediaitem_detail.html
r94ae57b rfca9c76 278 278 <h4><a href="#">{% trans "Related media" %}</a></h4> 279 279 {% if related_files %} 280 <div class="instruments">280 <div> 281 281 <table class="instruments" width="100%"> 282 282 <thead> 283 283 <tr> 284 <td>{% field_label "MediaItemRelated" "title" %}</td> 285 <td>{% field_label "MediaItemRelated" "description" %}</td> 286 <td>{% field_label "MediaItemRelated" "mime type" %}</td> 284 <td>{% field_label "MediaItemRelated" "media" %}</td> 287 285 <td>{% field_label "MediaItemRelated" "preview" %}</td> 288 286 </tr> … … 291 289 {% for file in related_files %} 292 290 <tr> 293 <td> 294 {% if file.url %} 295 <a href="{{ file.url }}" target="_blank"> 296 {% if file.title %} 297 {{ file.title }} 298 {% else %} 299 {{ file.url|get_filename }} 291 <td style="font-size: 1em;"> 292 <dl class="listing"> 293 <dt>{% trans "Title" %}</dt> 294 <dd> 295 {% if file.url %} 296 <a href="{{ file.url }}" target="_blank"> 297 {% if file.title %} 298 {{ file.title }}</a> 299 {% else %} 300 {{ file.url|get_filename }}</a> 301 {% endif %} 302 {% else %} 303 <a href="{% url telemeta-item-related-file item.public_id file.id %}" target="_blank"> 304 {% if file.title %} 305 {{ file.title }}</a> 306 {% else %} 307 {{ file.file|get_filename }}</a> 308 {% endif %} 309 {% endif %} 310 </dd> 311 <dt>{% trans "Description" %}</dt> 312 <dd>{{ file.description|html_line_break|safe }}</dd> 313 {% dl_field file "mime_type" %} 314 <dt>{% trans "URL" %}</dt> 315 <dd> 316 {% if file.url %} 317 <a href="{{ file.url }}" target="_blank">{{ file.url }}</a> 318 {% else %} 319 <a href="{% url telemeta-item-related-file item.public_id file.id %}" target="_blank"> 320 {% url telemeta-item-related-file item.public_id file.id %} 321 </a> 300 322 {% endif %} 301 </a> 302 {% endif %} 303 {% if file.file %} 304 <a href="{% url telemeta-item-related-file item.public_id file.id %}" target="_blank"> 305 {% if file.title %} 306 {{ file.title }} 307 {% else %} 308 {{ file.file|get_filename }} 309 {% endif %} 310 </a> 311 {% endif %} 323 </dd> 324 </dl> 312 325 </td> 313 <td>{{ file.description }}</td> 314 <td>{{ file.mime_type }}</td> 326 315 327 <td>{% if file.is_image %} 316 328 {% if file.url %} 317 329 <a href="{{ file.url }}"> 318 <img src="{{ file.url }}" style="max-width: 420px; " /></a>330 <img src="{{ file.url }}" style="max-width: 420px; max-height: 200px;" /></a> 319 331 {% else %} 320 332 <a href="{% url telemeta-item-related-file item.public_id file.id %}"> 321 <img src="{% url telemeta-item-related-file item.public_id file.id %}" style="max-width: 420px; " /></a>333 <img src="{% url telemeta-item-related-file item.public_id file.id %}" style="max-width: 420px; max-height: 200px;" /></a> 322 334 {% endif %} 323 335 {% else %} 324 336 {% if file.url %} 325 337 {% if "youtube" in file.url %} 326 <iframe width="420" height="315" src="{{ file.url|get_youtube }}" frameborder="0" allowfullscreen></iframe> 327 {% else %} 328 <a href="{{ file.url }}">{% trans "link" %}</a> 338 <iframe width="251" height="200" src="{{ file.url|get_youtube }}" frameborder="0" allowfullscreen></iframe> 329 339 {% endif %} 330 340 {% endif %} 331 {% if file.file %}332 <a href="{% url telemeta-item-related-file item.public_id file.id %}">link</a>333 341 {% endif %} 334 {% endif %}</td>342 </td> 335 343 </tr> 336 344 {% endfor %} -
telemeta/templates/telemeta_default/mediaitem_detail_dc.html
r6e65a5b rfca9c76 17 17 {% endif %} 18 18 19 19 {% block related %} 20 {% endblock related %}
Note: See TracChangeset
for help on using the changeset viewer.
