aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/browser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/routes/ui/browser.rs')
-rw-r--r--server/src/routes/ui/browser.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/routes/ui/browser.rs b/server/src/routes/ui/browser.rs
index 9cc9d88..96c005d 100644
--- a/server/src/routes/ui/browser.rs
+++ b/server/src/routes/ui/browser.rs
@@ -6,7 +6,7 @@
use super::{
account::session::Session,
error::MyError,
- layout::{trs, trsa, DynLayoutPage, LayoutPage},
+ layout::{trs, DynLayoutPage, LayoutPage},
node::NodeCard,
sort::{filter_and_sort_nodes, NodeFilterSort, NodeFilterSortForm, SortOrder, SortProperty},
};
@@ -15,6 +15,7 @@ use crate::{
routes::{api::AcceptJson, locale::AcceptLanguage},
uri,
};
+use jellybase::locale::tr;
use jellycommon::{api::ApiItemsResponse, Visibility};
use rocket::{get, serde::json::Json, Either, State};
@@ -66,7 +67,7 @@ pub fn r_all_items_filter(
li {@NodeCard { node, udata, lang: &lang }}
}}
p.pagecontrols {
- span.current { @trsa(&lang, "page.curr", &[("cur", &(page + 1).to_string()), ("max", &max_page.to_string())]) " " }
+ span.current { @tr(lang, "page.curr").replace("{cur}", &(page + 1).to_string()).replace("{max}", &max_page.to_string()) " " }
@if page > 0 {
a.prev[href=uri!(r_all_items_filter(Some(page - 1), filter.clone()))] { @trs(&lang, "page.prev") } " "
}