Commits

tehfink committed 7252b7f

moved plugin templates

  • Participants
  • Parent commits 4415996

Comments (0)

Files changed (5)

File cmsplugin_photologue/templates/plugins/cmsplugin_photologue/photologue_gallery.html

+
+    <div class="photo-gallery{% if css %} {{ css }}{% endif %}">
+
+        <h2><a href="{{ gallery.get_absolute_url }}">{{ gallery.title }}</a></h2>
+
+        {% for photo in gallery.sample|slice:sample_size %}
+
+        <div class="gallery-photo">
+
+            <a href="{{ photo.get_absolute_url }}"><img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.title }}"/></a>
+
+        </div>
+
+        {% endfor %}
+
+    </div>

File cmsplugin_photologue/templates/plugins/cmsplugin_photologue/photologue_photo.html

+
+    <div class="gallery-photo{% if css %} {{ css }}{% endif %}">
+    
+        <a href="{{ photo.image.url }}"><img src="{% ifequal is_thumb '1' %}{{ photo.get_thumbnail_url }}{% else %}{{ photo.get_display_url }}{% endifequal %}" alt="{{ photo.title }}"/></a>
+    
+        {% if photo.caption %}<p>{{ photo.caption }}</p>{% endif %}
+    
+    </div>

File cmsplugin_photologue/templates/plugins/photologue_gallery.html

-
-    <div class="photo-gallery{% if css %} {{ css }}{% endif %}">
-
-        <h2><a href="{{ gallery.get_absolute_url }}">{{ gallery.title }}</a></h2>
-
-        {% for photo in gallery.sample|slice:sample_size %}
-
-        <div class="gallery-photo">
-
-            <a href="{{ photo.get_absolute_url }}"><img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.title }}"/></a>
-
-        </div>
-
-        {% endfor %}
-
-    </div>

File cmsplugin_photologue/templates/plugins/photologue_photo.html

-
-    <div class="gallery-photo{% if css %} {{ css }}{% endif %}">
-    
-        <a href="{{ photo.image.url }}"><img src="{% ifequal is_thumb '1' %}{{ photo.get_thumbnail_url }}{% else %}{{ photo.get_display_url }}{% endifequal %}" alt="{{ photo.title }}"/></a>
-    
-        {% if photo.caption %}<p>{{ photo.caption }}</p>{% endif %}
-    
-    </div>

File cmsplugin_photologue/tests.py

-"""
-This file demonstrates two different styles of tests (one doctest and one
-unittest). These will both pass when you run "manage.py test".
-
-Replace these with more appropriate tests for your application.
-"""
-
-from django.test import TestCase
-
-class SimpleTest(TestCase):
-    def test_basic_addition(self):
-        """
-        Tests that 1 + 1 always equals 2.
-        """
-        self.failUnlessEqual(1 + 1, 2)
-
-__test__ = {"doctest": """
-Another way to test that 1 + 1 is equal to 2.
-
->>> 1 + 1 == 2
-True
-"""}
-