Skip to content

Commit

Permalink
fixed offline only backups (that was an error)
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Oct 14, 2014
1 parent 8d103d5 commit aca6387
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/main/resources/templates/worldmanager.ftl
Expand Up @@ -11,12 +11,19 @@ ${wm.update()}
<div class="panel-body" style="text-align: center;">
<p>
World folder: ${wm.worldName}.<br>
Diskspace in use by server + backups: ${server.diskspaceUse} MB<br>
</p>
<p class="text-primary">
Diskspace in use:<br>
by server: ${server.diskspaceUse[0]}MB<br>
by backups: ${server.diskspaceUse[1]}MB<br>
total: ${server.diskspaceUse[2]}MB<br>
</p>
<p>
Make a backup now:
</p>
<div class="btn-group">
<button type="button" <#if isCoOwner && !server.online>onclick="call('worldmanager', '${server.name}', 'makeWorldBackup')" <#else>disabled</#if> class="btn btn-info">The World</button>
<button type="button" <#if isCoOwner && !server.online>onclick="call('worldmanager', '${server.name}', 'makeAllOfTheBackup')" <#else>disabled</#if> class="btn btn-info">EVERYTHING</button>
<button type="button" <#if isCoOwner>onclick="call('worldmanager', '${server.name}', 'makeWorldBackup')" <#else>disabled</#if> class="btn btn-info">The World</button>
<button type="button" <#if isCoOwner>onclick="call('worldmanager', '${server.name}', 'makeAllOfTheBackup')" <#else>disabled</#if> class="btn btn-info">EVERYTHING</button>
</div>
</div>
</div>
Expand All @@ -29,7 +36,7 @@ ${wm.update()}
<span class="pull-right clickable"><i class="fa fa-chevron-up"></i></span>
</div>
<div class="panel-body" style="text-align: center;">
<button type="button" <#if isCoOwner && !server.online>onclick="call('worldmanager_dim', '${server.name}', '${dim.dimid}', 'makeBackup')" <#else>disabled</#if> class="btn btn-info">Backup</button>
<button type="button" <#if isCoOwner>onclick="call('worldmanager_dim', '${server.name}', '${dim.dimid}', 'makeBackup')" <#else>disabled</#if> class="btn btn-info">Backup</button>
<button type="button" onclick="if (confirm('Are you sure?\nThis will delete the entire dimention!')) call('worldmanager_dim', '${server.name}', '${dim.dimid}', 'delete');" class="btn btn-danger">Delete</button>
</div>
</div>
Expand Down

0 comments on commit aca6387

Please sign in to comment.