Fixed front page error on clean database.
This commit is contained in:
parent
b6401e8b1f
commit
1dbaffeb28
1 changed files with 7 additions and 3 deletions
|
@ -10,9 +10,13 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="container__title">Statistics</div>
|
<div class="container__title">Statistics</div>
|
||||||
<div class="container__content">
|
<div class="container__content">
|
||||||
We have <span class="index__stats__emphasis">{{ users_count|number_format }}</span> users and
|
{% if users_count < 1 %}
|
||||||
the last person to join was <a href="/profile.php?u={{ last_user.user_id }}" class="index__stats__emphasis index__stats__link" style="{{ last_user.user_colour|html_colour }}">{{ last_user.username }}</a>,
|
This is a fresh installation, <a href="/auth.php?m=register" class="index__stats__emphasis index__stats__link">create an account</a>!
|
||||||
<time datetime="{{ last_user.created_at|date('c') }}" title="{{ last_user.created_at|date('r') }}">{{ last_user.created_at|time_diff }}</time>!
|
{% else %}
|
||||||
|
We have <span class="index__stats__emphasis">{{ users_count|number_format }}</span> users and
|
||||||
|
the last person to join was <a href="/profile.php?u={{ last_user.user_id }}" class="index__stats__emphasis index__stats__link" style="{{ last_user.user_colour|html_colour }}">{{ last_user.username }}</a>,
|
||||||
|
<time datetime="{{ last_user.created_at|date('c') }}" title="{{ last_user.created_at|date('r') }}">{{ last_user.created_at|time_diff }}</time>!
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue