From 49d6d525588a7d8f358e1abec61e6e5fb682209a Mon Sep 17 00:00:00 2001 From: Marco Rieger Date: Sat, 7 Feb 2015 19:06:00 +0100 Subject: [PATCH] added message for none results --- .../view/application/index/index.phtml | 87 ++++++++++--------- .../view/application/search/index.phtml | 28 +++--- 2 files changed, 64 insertions(+), 51 deletions(-) diff --git a/module/Application/view/application/index/index.phtml b/module/Application/view/application/index/index.phtml index f42abab8..015d920d 100644 --- a/module/Application/view/application/index/index.phtml +++ b/module/Application/view/application/index/index.phtml @@ -1,6 +1,5 @@ headTitle(sprintf('Browse %d modules for Zend Framework 2', $this->totalModules())); ?> inlineScript()->appendScript('$(\'#live-search input[name="query"]\').liveSearch({url: "' . $this->url('live-search', [], ['query' => ['query' => '']]) . '"});'); ?> -
@@ -14,53 +13,63 @@
- repositories as $module): ?> - -
-
-
-
-
-
-
- <?php echo $this->escapeHtmlAttr($module->getOwner()) ?> -
-
- escapeHtml($module->getOwner()) ?> -

- Github: - escapeHtml($module->getName()) ?> -

+ repositories) >= 1): ?> + repositories as $module): ?> + +
+
+
+
+
+
+
+ <?php echo $this->escapeHtmlAttr($module->getOwner()) ?> +
+
+ escapeHtml($module->getOwner()) ?> +

+ Github: + escapeHtml($module->getName()) ?> +

+
+
+ + + escapeHtml($module->getName()) ?> + + +

+ Created: getCreatedAtDateTime()->format('Y-m-d') ?>
+

+
+
-
- - - escapeHtml($module->getName()) ?> - - -

- Created: getCreatedAtDateTime()->format('Y-m-d') ?>
-

-
-
-
-
-
-
-

- escapeHtml($module->getDescription()) ?> -

+
+
+
+

+ escapeHtml($module->getDescription()) ?> +

+
+
-
+ + paginationControl($this->repositories, 'Sliding', 'application/index/pagination', ['query' => $this->query]) ?> + +
+ query): ?> + No modules found that match your search criteria "escapeHtml($this->query); ?>" + + No modules found +
- - paginationControl($this->repositories, 'Sliding', 'application/index/pagination', ['query' => $this->query]) ?> +