diff --git a/application/controllers/ListController.php b/application/controllers/ListController.php index a27dd7f4..fbc779e6 100644 --- a/application/controllers/ListController.php +++ b/application/controllers/ListController.php @@ -48,10 +48,10 @@ class Director_ListController extends ActionController { $this->setImportTabs()->activate('importrun'); $this->view->title = $this->translate('Import runs'); + $this->view->stats = $this->db()->fetchImportStatistics(); $this->view->table = $this->applyPaginationLimits( $this->loadTable('importrun')->setConnection($this->db()) ); - $this->render('table'); } public function syncruleAction() diff --git a/application/views/scripts/list/importrun.phtml b/application/views/scripts/list/importrun.phtml new file mode 100644 index 00000000..b58bdd81 --- /dev/null +++ b/application/views/scripts/list/importrun.phtml @@ -0,0 +1,38 @@ +
+tabs ?> +

escape($this->title) ?>

+ + + + + + + + + + + + + + + + + + + + +
RowsProps
Importedstats['imported_rows'], 0, null, $pt) ?>stats['imported_properties'], 0, null, $pt) ?>
Uniquestats['unique_rows'], 0, null, $pt) ?>stats['unique_properties'], 0, null, $pt) ?>
+ +addLink ?> +
+table->getPaginator() ?> +
+ +
+table->render() ?> +
diff --git a/public/css/module.less b/public/css/module.less index e1a9b351..e010dd0e 100644 --- a/public/css/module.less +++ b/public/css/module.less @@ -85,6 +85,29 @@ p.error { } } +table.tinystats { + font-size: 0.7em; + float: right; + width: 16em; + + thead { + th { + width: 7em; + text-align: right; + } + + th:first-child { + width: auto; + } + } + + tbody { + th, td { + text-align: right; + } + } +} + /* Simple table, test */ table.simple {