-
{article_title(&article.article)}
-
- {article
- .edits
- .into_iter()
- .rev()
- .map(|edit| {
- let path = format!(
- "/article/{}@{}/diff/{}",
- article.article.title,
- extract_domain(&article.article.ap_id),
- edit.edit.hash.0,
- );
- view! {
-
- {render_date_time(edit.edit.created)}": "
- {edit.edit.summary} " by "
- {user_link(&edit.creator)}
-
- }
- })
- .collect::
>()}
-
+
+
+ {article
+ .edits
+ .into_iter()
+ .rev()
+ .map(|edit| {
+ let path = format!(
+ "/article/{}@{}/diff/{}",
+ article.article.title,
+ extract_domain(&article.article.ap_id),
+ edit.edit.hash.0,
+ );
+ view! {
+ -
+ {render_date_time(edit.edit.created)}": "
+
+ {edit.edit.summary}
+ " by " {user_link(&edit.creator)}
+
+ }
+ })
+ .collect::>()}
+
}
})
diff --git a/src/frontend/pages/article/list.rs b/src/frontend/pages/article/list.rs
index 5037c73..06fc287 100644
--- a/src/frontend/pages/article/list.rs
+++ b/src/frontend/pages/article/list.rs
@@ -21,19 +21,19 @@ pub fn ListArticles() -> impl IntoView {
);
view! {
- Most recently edited Articles
+ Most recently edited Articles
-
+
{move || {
articles
.get()
@@ -42,7 +42,7 @@ pub fn ListArticles() -> impl IntoView {
.map(|a| {
view! {
-
- {article_title(&a)}
+ {article_title(&a)}
}
})
diff --git a/src/frontend/pages/article/read.rs b/src/frontend/pages/article/read.rs
index 2363fb1..9b9bf23 100644
--- a/src/frontend/pages/article/read.rs
+++ b/src/frontend/pages/article/read.rs
@@ -1,6 +1,5 @@
use crate::frontend::{
- article_title,
- components::article_nav::ArticleNav,
+ components::article_nav::{ActiveTab, ArticleNav},
markdown::render_markdown,
pages::article_resource,
};
@@ -11,7 +10,7 @@ pub fn ReadArticle() -> impl IntoView {
let article = article_resource();
view! {
-
+
@@ -21,10 +20,10 @@ pub fn ReadArticle() -> impl IntoView {
.get()
.map(|article| {
view! {
-
-
{article_title(&article.article)}
-
-
+
}
})
}}
diff --git a/src/frontend/pages/diff.rs b/src/frontend/pages/diff.rs
index 32e5b29..7b7769c 100644
--- a/src/frontend/pages/diff.rs
+++ b/src/frontend/pages/diff.rs
@@ -1,5 +1,5 @@
use crate::frontend::{
- components::article_nav::ArticleNav,
+ components::article_nav::{ActiveTab, ArticleNav},
pages::article_resource,
render_date_time,
user_link,
@@ -13,7 +13,7 @@ pub fn EditDiff() -> impl IntoView {
let article = article_resource();
view! {
-
+