From 1ea20132a0ac41dcf93cb47a12672f62b3636a8a Mon Sep 17 00:00:00 2001 From: Rishabh Nambiar <5862206+rishabhnambiar@users.noreply.github.com> Date: Wed, 12 Sep 2018 14:53:29 +0530 Subject: [PATCH] FIX: Remove an unnecessary Handlebars condition --- .../templates/admin/plugins-explorer.hbs | 104 +++++++++--------- 1 file changed, 51 insertions(+), 53 deletions(-) diff --git a/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs b/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs index 119bc21..c753d86 100644 --- a/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs +++ b/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs @@ -137,60 +137,58 @@ {{/unless}} {{#if showRecentQueries}} - {{#if sortedQueries.length}} -
- - - - - - - - - {{#each sortedQueries as |query|}} - - + + + {{/each}} + +
-
- {{directory-toggle field="name" labelKey="explorer.query_name" order=order asc=asc}} -
-
-
- {{directory-toggle field="username" labelKey="explorer.query_user" order=order asc=asc}} -
-
-
- {{directory-toggle field="last_run_at" labelKey="explorer.query_time" order=order asc=asc}} -
-
- - {{query.name}} - {{query.description}} +
+ + + + + + + + + {{#each sortedQueries as |query|}} + + + - - - - {{/each}} - -
+
+ {{directory-toggle field="name" labelKey="explorer.query_name" order=order asc=asc}} +
+
+
+ {{directory-toggle field="username" labelKey="explorer.query_user" order=order asc=asc}} +
+
+
+ {{directory-toggle field="last_run_at" labelKey="explorer.query_time" order=order asc=asc}} +
+
+ + {{query.name}} + {{query.description}} + + + {{#if query.username}} + + {{query.username}} - - {{#if query.username}} - - {{query.username}} - - {{/if}} - - {{#if query.last_run_at}} - - {{bound-date query.last_run_at}} - - {{else}} - - {{bound-date query.created_at}} - - {{/if}} -
-
- {{/if}} + {{/if}} +
+ {{#if query.last_run_at}} + + {{bound-date query.last_run_at}} + + {{else}} + + {{bound-date query.created_at}} + + {{/if}} +
+
{{/if}}