Skip to content

Commit

Permalink
Merge branch 'wip'
Browse files Browse the repository at this point in the history
  • Loading branch information
bochoven committed Sep 8, 2016
2 parents 36f7341 + 79fc016 commit 90179c3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/helpers/site_helper.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

// Munkireport version (last number is number of commits)
$GLOBALS['version'] = '2.9.0.2121';
$GLOBALS['version'] = '2.9.0.2122';

// Return version without commit count
function get_version()
Expand Down
6 changes: 3 additions & 3 deletions app/modules/bluetooth/lib/Bt_legacy_support.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ function toArray()
// Translate network strings to db fields
$translate = array(
'Status = ' => 'bluetooth_power',
'Keyboard = ' => 'keyboard',
'Mouse = ' => 'mouse',
'Trackpad = ' => 'trackpad');
'Keyboard = ' => 'apple wireless keyboard',
'Mouse = ' => 'apple magic mouse',
'Trackpad = ' => 'apple wireless trackpad');

//clear any previous data we had
foreach($translate as $search => $field) {
Expand Down
2 changes: 1 addition & 1 deletion app/views/listing/bluetooth.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
var in_device=$('td:eq(4)', nRow).html();
var cls = in_device < 15 ? 'danger' : (in_device < 40 ? 'warning' : 'success');
$('td:eq(4)', nRow).html('<div class="progress"><div class="progress-bar progress-bar-'+cls+'" style="width: '+in_device+'%;">'+in_device+'%</div></div>');
$('td:eq(3)', nRow).html(i18n.t(device_type));
$('td:eq(3)', nRow).html(i18n.t('bluetooth.' + device_type));
}
}
} );
Expand Down
2 changes: 1 addition & 1 deletion assets/js/clients/client_detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ $(document).on('appReady', function(e, lang) {
for (key in data){
var rows = ''
if (key != 'bluetooth_power'){
rows = rows + '<tr><th>'+i18n.t(key)+'</th><td>'+data[key]+'%'+'</td></tr>'
rows = rows + '<tr><th>'+i18n.t('bluetooth.'+key)+'</th><td>'+data[key]+'%'+'</td></tr>'
$('table.mr-bluetooth-table').append(rows)
}
}
Expand Down
6 changes: 6 additions & 0 deletions assets/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,15 @@
},
"bluetooth": {
"all_ok": "No bluetooth devices with low battery",
"apple wireless keyboard": "Apple Wireless Keyboard",
"apple wireless trackpad": "Apple Wireless Trackpad",
"apple magic mouse": "Apple Magic Mouse",
"bluetooth": "Bluetooth",
"bluetooth_battery_widget": "Bluetooth battery status",
"keyboard": "Keyboard Status",
"magic keyboard": "Magic Keyboard",
"magic trackpad 2": "Magic Trackpad 2",
"magic mouse 2": "Magic Mouse 2",
"mouse": "Mouse Status",
"panel_title": "Bluetooth devices with less than 15% battery life",
"status": "Bluetooth Status",
Expand Down

0 comments on commit 90179c3

Please sign in to comment.