mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Merge branch 'cloudcompare'
This commit is contained in:
commit
3b5d4b50cb
2 changed files with 32 additions and 4 deletions
|
@ -30,6 +30,14 @@ class Numeric
|
|||
"#{computed} #{unit}"
|
||||
end
|
||||
|
||||
def to_gigabytes_pretty
|
||||
self.to_gigabytes.to_s + ' GB'
|
||||
end
|
||||
|
||||
def to_gigabytes
|
||||
self / (1000**3)
|
||||
end
|
||||
|
||||
def to_comma_separated
|
||||
self.to_i.to_s.chars.to_a.reverse.each_slice(3).map(&:join).join(",").reverse
|
||||
end
|
||||
|
|
|
@ -13,15 +13,15 @@
|
|||
<td class="feature-column">
|
||||
<span data-original-title="How much disk space you can use for your site. More space means you can upload more files.">Storage</span>
|
||||
</td>
|
||||
<td><%= Site::PLAN_FEATURES[:free][:space].to_bytes_pretty %></td>
|
||||
<td><%= (Site::PLAN_FEATURES[:supporter][:space] / (10**6)).to_comma_separated %> MB</td>
|
||||
<td><%= Site::PLAN_FEATURES[:free][:space].to_gigabytes_pretty %></td>
|
||||
<td><%= (Site::PLAN_FEATURES[:supporter][:space]).to_gigabytes_pretty %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="feature-column">
|
||||
<span data-original-title="How much content you can serve in one month. Don’t worry—these are soft limits. Temporary surges are fine, we won't take your site down automatically, and we're very flexible.">Bandwidth</span>
|
||||
</td>
|
||||
<td><%= Site::PLAN_FEATURES[:free][:bandwidth].to_bytes_pretty %></td>
|
||||
<td><%= Site::PLAN_FEATURES[:supporter][:bandwidth].to_bytes_pretty %></td>
|
||||
<td><%= Site::PLAN_FEATURES[:free][:bandwidth].to_gigabytes_pretty %></td>
|
||||
<td><%= Site::PLAN_FEATURES[:supporter][:bandwidth].to_gigabytes_pretty %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="feature-column">
|
||||
|
@ -156,8 +156,28 @@
|
|||
<td></td>
|
||||
<td><i class="fa fa-check"></i></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="feature-column">
|
||||
<span data-original-title="How much more it would cost for the same thing with Amazon Web Services.">Cost Savings vs AWS *</span>
|
||||
</td>
|
||||
<td style="color: #FF0000">$37.50/mo</td>
|
||||
<td style="color: #FF0000">$482.84/mo</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="feature-column">
|
||||
<span data-original-title="How much more it would cost for the same thing with Google Cloud Services.">Cost Savings vs GCS *</span>
|
||||
</td>
|
||||
<td style="color: #FF0000">$16.03/mo</td>
|
||||
<td style="color: #FF0000">$155.00/mo</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p style="margin-top: 20px">
|
||||
* AWS and GCS price estimates only include storage and CDN bandwidth, it does not include cost of HTTP requests or cache purging/reloading. Actual costs would be much higher.
|
||||
</p>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$('.feature-column span').tooltip({
|
||||
|
|
Loading…
Add table
Reference in a new issue