Browse Source

move network status to the header

main
ghost 3 years ago
parent
commit
55b8362246
  1. 3
      src/application/controller/common/footer/guest.php
  2. 3
      src/application/controller/common/footer/user.php
  3. 3
      src/application/controller/common/header/guest.php
  4. 3
      src/application/controller/common/header/user.php
  5. 1
      src/application/view/common/footer/guest.phtml
  6. 1
      src/application/view/common/footer/user.phtml
  7. 1
      src/application/view/common/header/guest.phtml
  8. 1
      src/application/view/common/header/user.phtml

3
src/application/controller/common/footer/guest.php

@ -1,6 +1,3 @@ @@ -1,6 +1,3 @@
<?php
$usersTotal = $_modelUser->getTotal();
$blocksTotal = $_modelBlock->getTotal();
require(PROJECT_DIR . '/application/view/common/footer/guest.phtml');

3
src/application/controller/common/footer/user.php

@ -1,6 +1,3 @@ @@ -1,6 +1,3 @@
<?php
$usersTotal = $_modelUser->getTotal();
$blocksTotal = $_modelBlock->getTotal();
require(PROJECT_DIR . '/application/view/common/footer/user.phtml');

3
src/application/controller/common/header/guest.php

@ -1,3 +1,6 @@ @@ -1,3 +1,6 @@
<?php
$usersTotal = $_modelUser->getTotal();
$blocksTotal = $_modelBlock->getTotal();
require(PROJECT_DIR . '/application/view/common/header/guest.phtml');

3
src/application/controller/common/header/user.php

@ -1,3 +1,6 @@ @@ -1,3 +1,6 @@
<?php
$usersTotal = $_modelUser->getTotal();
$blocksTotal = $_modelBlock->getTotal();
require(PROJECT_DIR . '/application/view/common/header/user.phtml');

1
src/application/view/common/footer/guest.phtml

@ -1,7 +1,6 @@ @@ -1,7 +1,6 @@
<div class="t-center c-2">
<p><small><?php echo sprintf(_('Twisterarmy Cloud is the <a class="c-0" href="%s">Open Source</a> web interface to interact <a class="c-0" href="%s">Twister Network</a> remotely.'), 'https://github.com/twisterarmy/cloud-server', 'http://twister.net.co') ?></small></p>
<p><small><?php echo _('* software under development. Import existing wallets on your own risk.') ?></small></p>
<p><small><?php echo sprintf(_('Network status: %s users in %s blocks'), $usersTotal, $blocksTotal) ?></small></p>
<p class="mt-20"><small><?php echo sprintf(_('version %s'), SERVER_VERSION) ?> <i class="bi bi-suit-heart"></i></small></p>
<p class="mt-10 f-size-16"></p>
</div>

1
src/application/view/common/footer/user.phtml

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
<div class="t-center c-2">
<p><small><?php echo sprintf(_('Network status: %s users in %s blocks'), $usersTotal, $blocksTotal) ?></small></p>
<p class="mt-10"><small><?php echo sprintf(_('version %s'), SERVER_VERSION) ?> <i class="bi bi-suit-heart"></i></small></p>
</div>
</body>

1
src/application/view/common/header/guest.phtml

@ -20,6 +20,7 @@ @@ -20,6 +20,7 @@
</div>
<div class="nav bg-c-2 bg-img-2 float-right t-right h-48 lh-48">
<div class="px-16">
<small><?php echo sprintf(_('Network status: %s users in %s blocks'), $usersTotal, $blocksTotal) ?></small>
<a class="c-1 ml-16" href="https://github.com/twisterarmy/cloud-server" target="_blank"><i class="bi bi-github"></i></a>
<a class="c-1 ml-16" href="https://github.com/twisterarmy/cloud-server/issues" target="_blank"><i class="bi bi-question-circle"></i></a>
</div>

1
src/application/view/common/header/user.phtml

@ -21,6 +21,7 @@ @@ -21,6 +21,7 @@
</div>
<div class="nav bg-c-2 bg-img-2 float-right t-right h-48 lh-48">
<div class="px-16">
<small><?php echo sprintf(_('Network status: %s users in %s blocks'), $usersTotal, $blocksTotal) ?></small>
<a class="c-1 ml-16" href="https://github.com/twisterarmy/cloud-server" target="_blank"><i class="bi bi-github"></i></a>
<a class="c-1 ml-16" href="https://github.com/twisterarmy/cloud-server/issues" target="_blank"><i class="bi bi-question-circle"></i></a>
</div>

Loading…
Cancel
Save