ソースを参照

round stats to nearest thousand

master
コミット
1ab44e901b
1個のファイルの変更4行の追加4行の削除
  1. +4
    -4
      resources/views/page/index.blade.php

+ 4
- 4
resources/views/page/index.blade.php ファイルの表示

@@ -21,10 +21,10 @@
</div>
<div class="clearfix"></div>
<div class="row stats">
<span>Users: {{ $stat->users }}</span>
<span>Threads: {{ $stat->threads }}</span>
<span>Posts: {{ $stat->posts }}</span>
<span>Ratings: {{ $stat->ratings }}</span>
<span>Users: {{ number_format($stat->users / 1000, 1) }}k</span>
<span>Threads: {{ number_format($stat->threads / 1000, 1) }}k</span>
<span>Posts: {{ number_format($stat->posts / 1000, 1) }}k</span>
<span>Ratings: {{ number_format($stat->ratings / 1000, 1) }}k</span>
</div>
@endsection



読み込み中…
キャンセル
保存