diff options
author | ramon <ramongomez@us.es> | 2017-10-13 09:16:45 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2017-10-13 09:16:45 +0000 |
commit | e9182dcff638780e830016516b6d9a56e0dc3e12 (patch) | |
tree | 19137534357168cde72dc9f34c3f041177deb2b6 | |
parent | 72bbcf8591f01f284e8901b3683d4222b08312a1 (diff) |
#810: Corregir errata en r5458.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5459 a21b9725-9963-47de-94b9-378ad31fedc9
4 files changed, 6 insertions, 6 deletions
diff --git a/admin/WebConsole/idiomas/php/cat/propiedades_repositorios_cat.php b/admin/WebConsole/idiomas/php/cat/propiedades_repositorios_cat.php index fec234b2..55c4b2ac 100644 --- a/admin/WebConsole/idiomas/php/cat/propiedades_repositorios_cat.php +++ b/admin/WebConsole/idiomas/php/cat/propiedades_repositorios_cat.php @@ -26,7 +26,7 @@ $TbMsg[17]='Api Token'; $TbMsg['MSG_CONTENT']='Contenido'; $TbMsg['MSG_IMAGE']='Imatge'; $TbMsg['MSG_TYPE']='Tipo'; -$TbMsg['MSG_SIZEBYTES']='Tama&ndile;o (bytes)'; +$TbMsg['MSG_SIZEBYTES']='Tamaño (bytes)'; $TbMsg['MSG_MODIFIED']='Modificado'; $TbMsg['MSG_PERMISSIONS']='Permisos'; ?> diff --git a/admin/WebConsole/idiomas/php/esp/propiedades_repositorios_esp.php b/admin/WebConsole/idiomas/php/esp/propiedades_repositorios_esp.php index 5d63bbcf..a2d3852f 100644 --- a/admin/WebConsole/idiomas/php/esp/propiedades_repositorios_esp.php +++ b/admin/WebConsole/idiomas/php/esp/propiedades_repositorios_esp.php @@ -26,7 +26,7 @@ $TbMsg[17]='Api Token'; $TbMsg['MSG_CONTENT']='Contenido'; $TbMsg['MSG_IMAGE']='Imagen'; $TbMsg['MSG_TYPE']='Tipo'; -$TbMsg['MSG_SIZEBYTES']='Tama&ndile;o (bytes)'; +$TbMsg['MSG_SIZEBYTES']='Tamaño (bytes)'; $TbMsg['MSG_MODIFIED']='Modificado'; $TbMsg['MSG_PERMISSIONS']='Permisos'; ?> diff --git a/admin/WebConsole/propiedades/propiedades_repositorios.php b/admin/WebConsole/propiedades/propiedades_repositorios.php index 3759d7ad..ee97f047 100644 --- a/admin/WebConsole/propiedades/propiedades_repositorios.php +++ b/admin/WebConsole/propiedades/propiedades_repositorios.php @@ -172,13 +172,13 @@ if($apiKeyRepo != ""){ <?php
// Si tenemos informacion del repositorio remoto, mostramos las imagenes
if($repoWithApi == true && is_array($repoImages)){
- echo "<tr class='tabla_listados_sin'><th colspan='4'>".$TbMsg['MSG_CONTENT']." $repodir</th></tr>";
+ echo "<tr class='tabla_listados_sin'><th colspan='4'>".$TbMsg['MSG_CONTENT']." $repodir</th></tr>\n";
-echo "<tr><td>".$TbMsg['MSG_IMAGE']."</td><td>".$TbMsg['MSG_TYPE']."</td><td>".$TbMsg['MSG_SIZEBYTES']."</td><td>".$TbMsg['MSG_MODIFIED']."</td><td>".$TbMsg['MSG_PERMISSIONS']."</td></tr>\n";
+echo "<tr><td>".$TbMsg['MSG_IMAGE']." (".$TbMsg['MSG_TYPE'].")</td><td>".$TbMsg['MSG_SIZEBYTES']."</td><td>".$TbMsg['MSG_MODIFIED']."</td><td>".$TbMsg['MSG_PERMISSIONS']."</td></tr>\n";
foreach($repoImages as $image){
echo "<tr class='tabla_listados_sin'>";
echo "<td>".$image->name." (".$image->type.")</td>";
- echo "<td>".$image->size." bytes</td>";
+ echo "<td>".$image->size."</td>";
echo "<td>".$image->modified."</td>";
echo "<td>".$image->mode."</td>";
echo "</tr>\n";
diff --git a/admin/WebConsole/rest/repository.php b/admin/WebConsole/rest/repository.php index bbd365ce..e5ce76bd 100644 --- a/admin/WebConsole/rest/repository.php +++ b/admin/WebConsole/rest/repository.php @@ -114,7 +114,7 @@ $app->get('/repository/images(/)', 'validateRepositoryApiKey', $response['disk']['total'] = humanSize($total); $response['disk']['used'] = humanSize($total - $free); $response['disk']['free'] = humanSize($free); - $response['disk']['percent'] = 100 - floor(100 * (100 - $free) / $total) . " %"; + $response['disk']['percent'] = 100 - floor(100 * $free / $total) . " %"; // JSON response. jsonResponse(200, $response); } else { |