mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-22 03:21:01 +00:00
Remove Latest articles from timeline tabs
This commit is contained in:
parent
39de967141
commit
ccf7ff2bc9
1 changed files with 2 additions and 3 deletions
|
@ -12,14 +12,13 @@
|
||||||
<h1 class="grow">@i18n_timeline_name(ctx.1, &tl.name)</h1>
|
<h1 class="grow">@i18n_timeline_name(ctx.1, &tl.name)</h1>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@tabs(&vec![(format!("{}", uri!(instance::index)), i18n!(ctx.1, "Latest articles"), false)]
|
@tabs(&all_tl
|
||||||
.into_iter().chain(all_tl
|
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|t| {
|
.map(|t| {
|
||||||
let url = format!("{}", uri!(timelines::details: id = t.id, page = _));
|
let url = format!("{}", uri!(timelines::details: id = t.id, page = _));
|
||||||
(url, i18n_timeline_name(ctx.1, &t.name), t.id == tl.id)
|
(url, i18n_timeline_name(ctx.1, &t.name), t.id == tl.id)
|
||||||
})
|
})
|
||||||
).collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
)
|
)
|
||||||
|
|
||||||
@if !articles.is_empty() {
|
@if !articles.is_empty() {
|
||||||
|
|
Loading…
Reference in a new issue