# HG changeset patch # User cavaliet # Date 1361987850 -3600 # Node ID e235e1480819e2046df1df3c66e402f8b03be74f # Parent 271ec94b1c6fdebd6e394fe0d4f422c7c25708e2 Clean all_fragments template. diff -r 271ec94b1c6f -r e235e1480819 src/egonomy/static/egonomy/css/egonomy.css --- a/src/egonomy/static/egonomy/css/egonomy.css Wed Feb 27 18:43:52 2013 +0100 +++ b/src/egonomy/static/egonomy/css/egonomy.css Wed Feb 27 18:57:30 2013 +0100 @@ -242,6 +242,10 @@ position: relative; margin: 0 auto; display: inline-block; } +.little_square_fragment { + height: 110px; width: 110px; +} + .center-image img { display: inline-block; } diff -r 271ec94b1c6f -r e235e1480819 src/egonomy/templates/egonomy_all_fragments.html --- a/src/egonomy/templates/egonomy_all_fragments.html Wed Feb 27 18:43:52 2013 +0100 +++ b/src/egonomy/templates/egonomy_all_fragments.html Wed Feb 27 18:57:30 2013 +0100 @@ -28,14 +28,11 @@
  • -
    +
    {% with frgmt=frg.object|default:frg %}{# frg.object in search case, frg otherwise #} {% with image=frgmt.image.info.image_file %} {% if image %} - {% if image|is_portrait %} - {% thumbnail image "x110" format="PNG" crop="center" as im %} - - + @@ -44,9 +41,8 @@ - {% empty %} - - + {% else %} + @@ -55,41 +51,6 @@ - {% endthumbnail %} - {% else %} - {% thumbnail image "110" format="PNG" crop="center" as im %} - - - - - - - - - - - {% empty %} - - - - - - - - - - {% endthumbnail %} - {% endif %} - {% else %} - - - - - - - - - {% endif %} {% endwith %} {% endwith %}