-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdisk.tt2
More file actions
65 lines (62 loc) · 2.51 KB
/
Copy pathdisk.tt2
File metadata and controls
65 lines (62 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[%- PROCESS header.tt2 -%]
<h1>Google Compute Engine Disk Type [% disk.name %]</h1>
[%-
minDiskSize = 10;
IF disk.name == 'pd-extreme'; minDiskSize = 500; END;
IF disk.name == 'local-ssd'; minDiskSize = 375; END;
-%]
<blockquote class="blockquote">
<p>[% IF disk.description %][% disk.description %], [% END %]<mark>minimum capacity per disk [% minDiskSize %] GB</mark>.</p>
</blockquote>
<p>Costs and pricing for Google Compute Engine disk type [% disk.name %] in Google Cloud regions in which the disk is available.</p>
<div class="table-responsive">
<table
class="table table-hover table-bordered"
data-toggle="table"
data-sort-name="region"
data-sort-order="asc"
data-sortable="true"
data-sticky-header="true"
>
<thead>
<tr>
<th scope="col" data-field="region" data-sortable="true">Region</th>
<th scope="col">Location</th>
<th scope="col" data-sortable="true">#Zones</th>
<!-- Costs -->
<th scope="col" data-sortable="true">1 GB</th>
<th scope="col" data-sortable="true">10 GB</th>
<th scope="col" data-sortable="true">375 GB</th>
<th scope="col" data-sortable="true">500 GB</th>
</tr>
</thead>
<tbody>
[% FOREACH region IN regions %]
<tr>
<td>
<a
href="/[% region.name %].html"
title="Google Compute Engine disk type [% disk.name %] in Google Cloud region [% region.name %]">
[% region.name %]
</a>
</td>
<td>[% IF region.regionLocation %][% region.regionLocation %][% ELSE %]<span class="text-muted">?</span>[% END %]</td>
<td [% IF region.zoneCount < 1%]class="table-danger"[% END%] title="Available [% region.zoneCount %] zone[% IF region.zoneCount > 1 %]s[% END %] in region [% region.name %]">[% IF region.zoneCount %][% region.zoneCount %][% ELSE %]<span class="text-muted">?</span>[% END %]</td>
<!-- Costs -->
[% IF region.monthGb %]
<td title="Costs for 1 GB [% disk.name %] per month: [% region.monthGb %] USD" class="currency">[% region.monthGb %]</td>
<td title="Costs for 10 GB [% disk.name %] per month: [% region.monthGb %] USD" class="currency">[% region.monthGb*10 FILTER format("%.2f") %]</td>
<td title="Costs for 375 GB [% disk.name %] per month: [% region.monthGb %] USD" class="currency">[% region.monthGb*375 FILTER format("%.2f") %]</td>
<td title="Costs for 500 GB [% disk.name %] per month: [% region.monthGb %] USD" class="currency">[% region.monthGb*500 FILTER format("%.2f") %]</td>
[% ELSE %]
<td>???</td>
<td>???</td>
<td>???</td>
<td>???</td>
[% END %]
</tr>
[% END %]
</tbody>
</table>
</div><!-- table-responsive -->
[% PROCESS footer.tt2 %]