allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [4/8] allura git commit: [#8143] avoid trailing commas in srcset
Date Mon, 06 Feb 2017 15:07:57 GMT
[#8143] avoid trailing commas in srcset


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/7f8d7210
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/7f8d7210
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/7f8d7210

Branch: refs/heads/master
Commit: 7f8d7210943468d47e0655ef86426df49b7439a2
Parents: cc1c327
Author: Dave Brondsema <dave@brondsema.net>
Authored: Fri Feb 3 17:16:56 2017 -0500
Committer: Kenton Taylor <ktaylor@slashdotmedia.com>
Committed: Mon Feb 6 15:03:46 2017 +0000

----------------------------------------------------------------------
 Allura/allura/templates/jinja_master/lib.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/7f8d7210/Allura/allura/templates/jinja_master/lib.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/jinja_master/lib.html b/Allura/allura/templates/jinja_master/lib.html
index 8feabf0..ea1ceb0 100644
--- a/Allura/allura/templates/jinja_master/lib.html
+++ b/Allura/allura/templates/jinja_master/lib.html
@@ -61,7 +61,7 @@
          {% elif icon_source == 'gravatar' %}
              src="{{ icon_url }}"
              srcset="{{icon_url}}&s={{ size*1.5 }} 1.5x,
-                     {{icon_url}}&s={{ size*2 }} 2x,"
+                     {{icon_url}}&s={{ size*2 }} 2x"
          {% endif %}
          alt="{{display_name}}"
          title="{{display_name}}"
@@ -214,9 +214,9 @@
     {% set icon_url = icon_url or project.url() + 'icon' %}
     src="{{icon_url}}?{{project.icon_timestamp}}"
     {% if project.icon_max_size >= 72 -%}
-        srcset="{{icon_url}}?w=72&amp;{{project.icon_timestamp}} 1.5x,
-        {% if project.icon_max_size >= 96 -%}
-            {{icon_url}}?w=96&amp;{{project.icon_timestamp}} 2x,
+        srcset="{{icon_url}}?w=72&amp;{{project.icon_timestamp}} 1.5x
+        {% if project.icon_max_size >= 96 -%},
+            {{icon_url}}?w=96&amp;{{project.icon_timestamp}} 2x
         {%- endif -%}
         "
    {%- endif -%}


Mime
View raw message