Skip to content

Commit

Permalink
Merge pull request #62 from dblachut/master
Browse files Browse the repository at this point in the history
Reading count in same line as date, smallTitle more visible style
  • Loading branch information
trekawek committed Apr 9, 2021
2 parents d3ea8e7 + d81262e commit 2bf664e
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/htdocs/locale/cs.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
$locale['Radius (m)'] = 'Polomě (m)';
$locale['Range'] = 'Rozsah';
// $locale['Reading count'] = '';
// $locale['Readings'] = '';
$locale['Redirect home page'] = 'Přesměrovat home page';
$locale['Received JSONs'] = 'Přijaté JSONs';
$locale['register'] = 'registrovat';
Expand Down
1 change: 1 addition & 0 deletions src/htdocs/locale/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
$locale['Radius (m)'] = '';
$locale['Range'] = '';
$locale['Reading count'] = '';
$locale['Readings'] = '';
$locale['Redirect home page'] = '';
$locale['Received JSONs'] = '';
$locale['register'] = '';
Expand Down
1 change: 1 addition & 0 deletions src/htdocs/locale/hu.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
$locale['Radius (m)'] = 'Sugár (m)';
$locale['Range'] = 'Távolság';
// $locale['Reading count'] = '';
// $locale['Readings'] = '';
$locale['Redirect home page'] = 'Honlap átirányítása';
$locale['Received JSONs'] = 'Fogadott JSON adatok';
$locale['register'] = 'regisztrálás';
Expand Down
1 change: 1 addition & 0 deletions src/htdocs/locale/pl.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
$locale['Radius (m)'] = 'Promień (m)';
$locale['Range'] = 'Zakres';
$locale['Reading count'] = 'Liczba pomiarów';
$locale['Readings'] = 'Pomiary';
$locale['Redirect home page'] = 'Przekieruj stronę domową';
$locale['Received JSONs'] = 'Otrzymane JSONy';
$locale['register'] = 'rejestruj';
Expand Down
1 change: 1 addition & 0 deletions src/htdocs/locale/ro.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
$locale['Radius (m)'] = 'Radius (m)';
$locale['Range'] = 'Gamă';
// $locale['Reading count'] = '';
// $locale['Readings'] = '';
$locale['Redirect home page'] = 'Redirecționeză către prima pagină';
$locale['Received JSONs'] = 'Received JSONs';
$locale['register'] = 'înregistrează-te';
Expand Down
4 changes: 2 additions & 2 deletions src/htdocs/partials/sensors/avg-switch.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="row">
<div class="col-md-8 offset-md-2 text-center">
<small><?php echo __('Average') ?>:
<small><span class="smallTitle"><?php echo __('Average') ?></span>:
(<?php
foreach (array('0' => __('Last'), '0.25' => '15m', '1' => '1h', '24' => '24h') as $value => $name) {
if ($currentAvgType == $value) {
echo "<strong>$name</strong>";
echo "$name";
} else if ($currentController == 'main' && $currentAction == 'all') {
echo "<a href=\"".l('main', 'all', null, array('node_id' => $nodeId), array('avgType' => $value))."\">$name</a>";
} else {
Expand Down
6 changes: 3 additions & 3 deletions src/htdocs/partials/sensors/table.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@
}
?>
<small class="<?php echo $lastUpdatedClass ?>">
<?php echo __('Last update') ?>: <?php echo date("Y-m-d H:i:s", $sensors['last_update']); ?>.
</small><br/>
<small><?php echo __('Reading count') ?>: <?php echo $averages['values']['count']; ?>.</small>
<span class="smallTitle"><?php echo __('Last update') ?></span>: <?php echo date("Y-m-d H:i:s", $sensors['last_update']); ?>.
</small>
<small><span class="smallTitle"><?php echo __('Readings') ?></span>: <?php echo $averages['values']['count']; ?>.</small>
</td>
</tr>
</tbody>
Expand Down
7 changes: 6 additions & 1 deletion src/htdocs/public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,9 @@ a.disabled {

.darkly .colorOrange {
color: orangered;
}
}

.smallTitle {
text-decoration: underline;
font-weight: bolder;
}

0 comments on commit 2bf664e

Please sign in to comment.