diff --git a/templates/post.html b/templates/post.html index bb0789c..26188d5 100644 --- a/templates/post.html +++ b/templates/post.html @@ -60,7 +60,7 @@ {{ post.title }} {% if post.flair.flair_parts.len() > 0 %} - {% call utils::render_flair(post.flair.flair_parts) %} + {% call utils::render_flair(post.flair.flair_parts) %} {% endif %} diff --git a/templates/search.html b/templates/search.html index 0bd9791..058761c 100644 --- a/templates/search.html +++ b/templates/search.html @@ -57,7 +57,7 @@
{% if post.flair.flair_parts.len() > 0 %} - {% call utils::render_flair(post.flair.flair_parts) %} + {% call utils::render_flair(post.flair.flair_parts) %} {% endif %} {{ post.title }}
diff --git a/templates/subreddit.html b/templates/subreddit.html index f0d2730..3f0c904 100644 --- a/templates/subreddit.html +++ b/templates/subreddit.html @@ -48,7 +48,7 @@{% if post.flair.flair_parts.len() > 0 %} - {% call utils::render_flair(post.flair.flair_parts) %} + {% call utils::render_flair(post.flair.flair_parts) %} {% endif %} {{ post.title }}
diff --git a/templates/user.html b/templates/user.html index 6b1111d..38981b8 100644 --- a/templates/user.html +++ b/templates/user.html @@ -42,7 +42,7 @@ {% if post.flair.background_color == "Comment" %} {% else if post.flair.background_color == "" %} {% else %} - {% call utils::render_flair(post.flair.flair_parts) %} + {% call utils::render_flair(post.flair.flair_parts) %} {% endif %} {{ post.title }} diff --git a/templates/utils.html b/templates/utils.html index cb3c65a..626e83e 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -29,7 +29,7 @@ {% macro render_flair(flair) -%} {% for flair_part in flair %} - {% if flair_part.flair_part_type == "emoji" %} + {% if flair_part.flair_part_type == "emoji" %} {% else if flair_part.flair_part_type == "text" %}{{ flair_part.value }}{% endif %} {% endfor %} {%- endmacro %}