UX: Make profile views consistent with other elements (#7956)

UX: Make profile views consistent with other elements (#7956)

  • UX: Make profile views consistent with other elements

  • Spaces not tabs

diff --git a/app/assets/javascripts/discourse/templates/user.hbs b/app/assets/javascripts/discourse/templates/user.hbs
index 04a4ab8..f8f8d31 100644
--- a/app/assets/javascripts/discourse/templates/user.hbs
+++ b/app/assets/javascripts/discourse/templates/user.hbs
@@ -159,7 +159,9 @@
             {{#if model.last_seen_at}}
               <div><dt>{{i18n 'user.last_seen'}}</dt><dd>{{bound-date model.last_seen_at}}</dd></div>
             {{/if}}
-            <div><dt>{{i18n 'views'}}</dt><dd>{{model.profile_view_count}}</dd></div>
+            {{#if model.profile_view_count}}
+              <div><dt>{{i18n 'views'}}</dt><dd>{{model.profile_view_count}}</dd></div>
+            {{/if}}
             {{#if model.invited_by}}
               <div><dt class="invited-by">{{i18n 'user.invited_by'}}</dt><dd class="invited-by">{{#link-to 'user' model.invited_by}}{{model.invited_by.username}}{{/link-to}}</dd></div>
             {{/if}}

GitHub sha: 7ebb3503