Permalink
Browse files

Mark external images with a class

  • Loading branch information...
1 parent 0e0075e commit 074d1e781bbbd257e89a2bf51e0d5965e523afd6 @emesik emesik committed Jan 14, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −1 djiki/templates/djiki/parser/image.html
  2. +2 −1 media/css/styles.css
View
2 djiki/templates/djiki/parser/image.html
@@ -1,5 +1,5 @@
{% load thumbnail %}
-<div class="image{% if size %} with_size{% endif %}">
+<div class="image{% if size %} with_size{% endif %}{% if not image %} external{% endif %}">
{% if image %}
<a href="{% url djiki-image-view url_name %}">
{% if size %}
View
3 media/css/styles.css
@@ -106,7 +106,8 @@ fieldset {
padding: 3px;
float: left;
}
-.djiki .page .content .image.with_size {
+.djiki .page .content .image.with_size,
+.djiki .page .content .image.external {
margin-right: 10px;
}
.djiki .page .content .image .title {

0 comments on commit 074d1e7

Please sign in to comment.