libreio / libre

Simple AWS gateway for storing and sharing files
http://libre.io
Other
7 stars 9 forks source link

total storage requires size metrics #273

Closed k0r closed 9 years ago

k0r commented 9 years ago

layout.xsl should include:

<li title="account size">
 <xsl:choose>
  <xsl:when test="size &gt;= 1073741824">
   <xsl:value-of select="format-number(size div 1073741824, '#,###')"/>
   <xsl:text>Gb</xsl:text>
  </xsl:when>
  <xsl:when test="size &gt;= 1048576">
   <xsl:value-of select="format-number(size div 1048576, '#,###')"/>
   <xsl:text>Mb</xsl:text>
  </xsl:when>
  <xsl:when test="size &gt;= 1024">
   <xsl:value-of select="format-number(size div 1024, '#,###')"/>
   <xsl:text>Kb</xsl:text>
  </xsl:when>
  <xsl:when test="size &gt; 0 and size &lt; 1024">
   <xsl:value-of select="format-number(size div 0, '#,###')"/>
   <xsl:text>bytes</xsl:text>
  </xsl:when>
  <xsl:otherwise>
   <xsl:text>0 bytes</xsl:text>
  </xsl:otherwise>
 </xsl:choose>
</li>
k0r commented 9 years ago

@yegor256 let me know if this code checks out.

yegor256 commented 9 years ago

@k0r FYI, see https://help.github.com/articles/github-flavored-markdown/

yegor256 commented 9 years ago

@k0r yes, it looks correct to me

k0r commented 9 years ago

@yegor256 thanks.

k0r commented 9 years ago

@yegor256 would we use size or $size for when test = ?

k0r commented 9 years ago

@rultor hello

rultor commented 9 years ago

@rultor hello

@k0r Hi there! I understand a few simple commands: "merge", "deploy", etc. This page explains them briefly. Any questions or bug reports are welcome. Have fun :)

k0r commented 9 years ago

@rultor release, tag is 0.3.24

rultor commented 9 years ago

@rultor release, tag is 0.3.24

@k0r Thanks for your request. @yegor256 Please confirm this.

yegor256 commented 9 years ago

@rultor release, tag is 0.3.24

rultor commented 9 years ago

@rultor release, tag is 0.3.24

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 9 years ago

@rultor release, tag is 0.3.24

@yegor256 Done! FYI, the full log is here (took me 10min)

k0r commented 9 years ago

@yegor256 thanks for the confirmation.