From ec2fe23f7ec4e20457eda08ee1d55ddc6e2c8239 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 4 Nov 2014 19:27:15 +0100 Subject: [PATCH] Fixed showing "siblings" text even if theren't any --- public_html/templates/tag.tpl | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/public_html/templates/tag.tpl b/public_html/templates/tag.tpl index 1085f9e7..12067cc3 100644 --- a/public_html/templates/tag.tpl +++ b/public_html/templates/tag.tpl @@ -77,19 +77,21 @@ <% } %> -
-

Siblings

+ <% if (siblings.length) { %> +
+

Siblings

-
    - <% _.each(siblings.slice(0, 50), function(tag) { %> -
  • - <%= tag.name %> - -
  • - <% }) %> -
-
+ +
+ <% } %>

Example usages