mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Revert "Dashboard improvements"
This commit is contained in:
@@ -8,17 +8,14 @@
|
||||
|
||||
class Widgets extends CI_Controller {
|
||||
|
||||
const LAST_QSOS_COUNT = 15; // number of of qsos to be displayed in the last qsos widget
|
||||
const LAST_QSOS_MAX_LIMIT = 40; // if user requests more than this limit, qsos will be capped to this number
|
||||
|
||||
public function index()
|
||||
{
|
||||
// Show a help page
|
||||
}
|
||||
|
||||
|
||||
// Can be used to embed last self::LAST_QSOS_COUNT QSOs in a iframe or javascript include.
|
||||
public function qsos($logbook_slug = null, $qso_count = self::LAST_QSOS_COUNT) {
|
||||
// Can be used to embed last 11 QSOs in a iframe or javascript include.
|
||||
public function qsos($logbook_slug = null) {
|
||||
|
||||
if($logbook_slug == null) {
|
||||
show_error(__("Unknown Public Page, please make sure the public slug is correct."));
|
||||
@@ -43,14 +40,7 @@ class Widgets extends CI_Controller {
|
||||
show_404(__("Unknown Public Page."));
|
||||
}
|
||||
|
||||
if ($qso_count > self::LAST_QSOS_MAX_LIMIT) {
|
||||
$qso_count = self::LAST_QSOS_MAX_LIMIT;
|
||||
}
|
||||
|
||||
$data['last_qsos_list'] = $this->logbook_model->get_last_qsos(
|
||||
$qso_count,
|
||||
$logbooks_locations_array,
|
||||
);
|
||||
$data['last_five_qsos'] = $this->logbook_model->get_last_qsos(15, $logbooks_locations_array);
|
||||
|
||||
$this->load->view('widgets/qsos', $data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user