diff --git a/public/templates/mmcFE/global/navigation.tpl b/public/templates/mmcFE/global/navigation.tpl index 8d9e2fa6..32c432f9 100644 --- a/public/templates/mmcFE/global/navigation.tpl +++ b/public/templates/mmcFE/global/navigation.tpl @@ -33,6 +33,7 @@
  • Block Stats
  • Hashrate Graphs
  • Round Stats
  • +
  • Uptime Stats
  • {else} @@ -46,6 +47,9 @@ {/if} {if $GLOBAL.acl.round.statistics}
  • Round Stats
  • + {/if} + {if $GLOBAL.acl.uptime.statistics} +
  • Uptime Stats
  • {/if} {/if} diff --git a/public/templates/mmcFE/statistics/uptime/default.tpl b/public/templates/mmcFE/statistics/uptime/default.tpl new file mode 100644 index 00000000..34f47144 --- /dev/null +++ b/public/templates/mmcFE/statistics/uptime/default.tpl @@ -0,0 +1,55 @@ + + +{include file="global/block_header.tpl" BLOCK_HEADER="Uptime Statistics"} + + + + + + + + + + + +{foreach key=key item=item from=$STATUS.monitors.monitor} +{assign var=node value="."|explode:$item.friendlyname} + + + + + + + +{/foreach} + +
    LocationServiceState SinceStatusUptime
    {$node.1}{$item.log.1.datetime|date_format:"%b %d, %Y %H:%M"}{$CODES[$item.status]}
    + + + +{if !$GLOBAL.website.api.disabled}
  • These stats are also available in JSON format HERE
  • {/if} +{include file="global/block_footer.tpl"} diff --git a/public/templates/mpos/admin/settings/default.tpl b/public/templates/mpos/admin/settings/default.tpl index a2d1e753..9cc1f97e 100644 --- a/public/templates/mpos/admin/settings/default.tpl +++ b/public/templates/mpos/admin/settings/default.tpl @@ -1,4 +1,4 @@ -
    +
    diff --git a/public/templates/mpos/global/navigation.tpl b/public/templates/mpos/global/navigation.tpl index 6f2552ed..a73966f0 100644 --- a/public/templates/mpos/global/navigation.tpl +++ b/public/templates/mpos/global/navigation.tpl @@ -33,6 +33,7 @@
  • Blocks
  • Graphs
  • Round
  • +
  • Uptime
  • {else}

    Statistics

    @@ -47,7 +48,10 @@ {/if} {if $GLOBAL.acl.round.statistics}
  • Round
  • - {/if} + {/if} + {if $GLOBAL.acl.uptime.statistics} +
  • Uptime
  • + {/if} {/if}

    Help

    diff --git a/public/templates/mpos/master.tpl b/public/templates/mpos/master.tpl index b7d7e301..254835dc 100644 --- a/public/templates/mpos/master.tpl +++ b/public/templates/mpos/master.tpl @@ -26,6 +26,7 @@ + diff --git a/public/templates/mpos/statistics/uptime/default.tpl b/public/templates/mpos/statistics/uptime/default.tpl new file mode 100644 index 00000000..3a1716ff --- /dev/null +++ b/public/templates/mpos/statistics/uptime/default.tpl @@ -0,0 +1,54 @@ + + +
    +

    UptimeRobot Status

    + + + + + + + + + + + +{foreach key=key item=item from=$STATUS.monitors.monitor} +{assign var=node value="."|explode:$item.friendlyname} + + + + + + + +{/foreach} + +
    LocationServiceState SinceStatusUptime
    {$node.1}{$item.log.1.datetime|date_format:"%b %d, %Y %H:%M"}{$CODES[$item.status]}
    +
    + +