summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Core/Paginator.php33
-rw-r--r--app/Locale/bs_BA/translations.php1
-rw-r--r--app/Locale/cs_CZ/translations.php1
-rw-r--r--app/Locale/da_DK/translations.php1
-rw-r--r--app/Locale/de_DE/translations.php1
-rw-r--r--app/Locale/el_GR/translations.php1
-rw-r--r--app/Locale/es_ES/translations.php1
-rw-r--r--app/Locale/fi_FI/translations.php1
-rw-r--r--app/Locale/fr_FR/translations.php1
-rw-r--r--app/Locale/hu_HU/translations.php1
-rw-r--r--app/Locale/id_ID/translations.php1
-rw-r--r--app/Locale/it_IT/translations.php1
-rw-r--r--app/Locale/ja_JP/translations.php1
-rw-r--r--app/Locale/ko_KR/translations.php1
-rw-r--r--app/Locale/my_MY/translations.php1
-rw-r--r--app/Locale/nb_NO/translations.php1
-rw-r--r--app/Locale/nl_NL/translations.php1
-rw-r--r--app/Locale/pl_PL/translations.php1
-rw-r--r--app/Locale/pt_BR/translations.php1
-rw-r--r--app/Locale/pt_PT/translations.php1
-rw-r--r--app/Locale/ru_RU/translations.php1
-rw-r--r--app/Locale/sr_Latn_RS/translations.php1
-rw-r--r--app/Locale/sv_SE/translations.php1
-rw-r--r--app/Locale/th_TH/translations.php1
-rw-r--r--app/Locale/tr_TR/translations.php1
-rw-r--r--app/Locale/zh_CN/translations.php1
26 files changed, 58 insertions, 0 deletions
diff --git a/app/Core/Paginator.php b/app/Core/Paginator.php
index cfe89938..046c539c 100644
--- a/app/Core/Paginator.php
+++ b/app/Core/Paginator.php
@@ -232,6 +232,17 @@ class Paginator
}
/**
+ * Get the number of current page
+ *
+ * @access public
+ * @return integer
+ */
+ public function getPage()
+ {
+ return $this->page;
+ }
+
+ /**
* Set the default column order
*
* @access public
@@ -271,6 +282,16 @@ class Paginator
}
/**
+ * Get the maximum number of items per page.
+ *
+ * @return int
+ */
+ public function getMax()
+ {
+ return $this->limit;
+ }
+
+ /**
* Return true if the collection is empty
*
* @access public
@@ -391,6 +412,17 @@ class Paginator
}
/**
+ * Generate the page showing.
+ *
+ * @access public
+ * @return string
+ */
+ public function generatPageShowing()
+ {
+ return '<span class="pagination-showing">'.t('Showing %d-%d of %d', (($this->getPage() - 1) * $this->getMax() + 1), min($this->getTotal(), $this->getPage() * $this->getMax()), $this->getTotal()).'</span>';
+ }
+
+ /**
* Return true if there is no pagination to show
*
* @access public
@@ -413,6 +445,7 @@ class Paginator
if (! $this->hasNothingtoShow()) {
$html .= '<div class="pagination">';
+ $html .= $this->generatPageShowing();
$html .= $this->generatePreviousLink();
$html .= $this->generateNextLink();
$html .= '</div>';
diff --git a/app/Locale/bs_BA/translations.php b/app/Locale/bs_BA/translations.php
index d0fe2026..3a36cd46 100644
--- a/app/Locale/bs_BA/translations.php
+++ b/app/Locale/bs_BA/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/cs_CZ/translations.php b/app/Locale/cs_CZ/translations.php
index 98fbcab0..1d736a8c 100644
--- a/app/Locale/cs_CZ/translations.php
+++ b/app/Locale/cs_CZ/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/da_DK/translations.php b/app/Locale/da_DK/translations.php
index 4f6ccb04..5496ac89 100644
--- a/app/Locale/da_DK/translations.php
+++ b/app/Locale/da_DK/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/de_DE/translations.php b/app/Locale/de_DE/translations.php
index 24eaffd6..699e4e57 100644
--- a/app/Locale/de_DE/translations.php
+++ b/app/Locale/de_DE/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/el_GR/translations.php b/app/Locale/el_GR/translations.php
index 0f151637..c81c3701 100644
--- a/app/Locale/el_GR/translations.php
+++ b/app/Locale/el_GR/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/es_ES/translations.php b/app/Locale/es_ES/translations.php
index c6b583ed..6e2dc4f0 100644
--- a/app/Locale/es_ES/translations.php
+++ b/app/Locale/es_ES/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/fi_FI/translations.php b/app/Locale/fi_FI/translations.php
index c81a9cfd..be67dbac 100644
--- a/app/Locale/fi_FI/translations.php
+++ b/app/Locale/fi_FI/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/fr_FR/translations.php b/app/Locale/fr_FR/translations.php
index 4368dccb..b822225a 100644
--- a/app/Locale/fr_FR/translations.php
+++ b/app/Locale/fr_FR/translations.php
@@ -1289,4 +1289,5 @@ return array(
'Your personal API access token is "%s"' => 'Votre jeton d\'accès personnel à l\'API est « %s »',
'Remove your token' => 'Supprimer votre jeton',
'Generate a new token' => 'Générer un nouveau jeton',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/hu_HU/translations.php b/app/Locale/hu_HU/translations.php
index 5df1cb03..b161f829 100644
--- a/app/Locale/hu_HU/translations.php
+++ b/app/Locale/hu_HU/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/id_ID/translations.php b/app/Locale/id_ID/translations.php
index 22f39d0e..bdb0d670 100644
--- a/app/Locale/id_ID/translations.php
+++ b/app/Locale/id_ID/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/it_IT/translations.php b/app/Locale/it_IT/translations.php
index 5af3dc05..edcebfae 100644
--- a/app/Locale/it_IT/translations.php
+++ b/app/Locale/it_IT/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/ja_JP/translations.php b/app/Locale/ja_JP/translations.php
index f4b996f6..c1023cbd 100644
--- a/app/Locale/ja_JP/translations.php
+++ b/app/Locale/ja_JP/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/ko_KR/translations.php b/app/Locale/ko_KR/translations.php
index eba10b9a..1194f94e 100644
--- a/app/Locale/ko_KR/translations.php
+++ b/app/Locale/ko_KR/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/my_MY/translations.php b/app/Locale/my_MY/translations.php
index d527798c..6b6aacf0 100644
--- a/app/Locale/my_MY/translations.php
+++ b/app/Locale/my_MY/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/nb_NO/translations.php b/app/Locale/nb_NO/translations.php
index 77febbed..36de55a2 100644
--- a/app/Locale/nb_NO/translations.php
+++ b/app/Locale/nb_NO/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/nl_NL/translations.php b/app/Locale/nl_NL/translations.php
index bf218d21..cc7c3dcd 100644
--- a/app/Locale/nl_NL/translations.php
+++ b/app/Locale/nl_NL/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/pl_PL/translations.php b/app/Locale/pl_PL/translations.php
index 9c16a880..80ccd5b1 100644
--- a/app/Locale/pl_PL/translations.php
+++ b/app/Locale/pl_PL/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/pt_BR/translations.php b/app/Locale/pt_BR/translations.php
index cd09255e..95a5d07a 100644
--- a/app/Locale/pt_BR/translations.php
+++ b/app/Locale/pt_BR/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/pt_PT/translations.php b/app/Locale/pt_PT/translations.php
index 9cd78737..d177f712 100644
--- a/app/Locale/pt_PT/translations.php
+++ b/app/Locale/pt_PT/translations.php
@@ -1288,4 +1288,5 @@ return array(
'Your personal API access token is "%s"' => 'O seu token de acesso pessoal ao API é "%s"',
'Remove your token' => 'Remover o seu token',
'Generate a new token' => 'Gerar um novo token',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/ru_RU/translations.php b/app/Locale/ru_RU/translations.php
index 83ca37ed..ffebcd6a 100644
--- a/app/Locale/ru_RU/translations.php
+++ b/app/Locale/ru_RU/translations.php
@@ -1288,4 +1288,5 @@ return array(
'Your personal API access token is "%s"' => 'Ваш персональный токен доступа к API: "%s"',
'Remove your token' => 'Удалить токен',
'Generate a new token' => 'Сгенерировать новый токен',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/sr_Latn_RS/translations.php b/app/Locale/sr_Latn_RS/translations.php
index a0c5f1bc..04dcdb2f 100644
--- a/app/Locale/sr_Latn_RS/translations.php
+++ b/app/Locale/sr_Latn_RS/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/sv_SE/translations.php b/app/Locale/sv_SE/translations.php
index 536b0ed4..bcb8d75d 100644
--- a/app/Locale/sv_SE/translations.php
+++ b/app/Locale/sv_SE/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/th_TH/translations.php b/app/Locale/th_TH/translations.php
index 3f4f4092..93408fc8 100644
--- a/app/Locale/th_TH/translations.php
+++ b/app/Locale/th_TH/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/tr_TR/translations.php b/app/Locale/tr_TR/translations.php
index ce1ceed6..b30ad05b 100644
--- a/app/Locale/tr_TR/translations.php
+++ b/app/Locale/tr_TR/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ // 'Showing %d-%d of %d' => '',
);
diff --git a/app/Locale/zh_CN/translations.php b/app/Locale/zh_CN/translations.php
index bbe7df5b..8153a78a 100644
--- a/app/Locale/zh_CN/translations.php
+++ b/app/Locale/zh_CN/translations.php
@@ -1288,4 +1288,5 @@ return array(
// 'Your personal API access token is "%s"' => '',
// 'Remove your token' => '',
// 'Generate a new token' => '',
+ 'Showing %d-%d of %d' => '本页显示 %d-%d 条,共有: %d 条',
);