Skip to content

Commit

Permalink
streamline blocked menu
Browse files Browse the repository at this point in the history
  • Loading branch information
judell committed Mar 9, 2023
1 parent a52627b commit 86cf56f
Showing 1 changed file with 9 additions and 35 deletions.
44 changes: 9 additions & 35 deletions blocked.sp
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,15 @@ dashboard "Blocked" {

container {
text {
value = <<EOT
Blocked
[Direct](${local.host}/mastodon.dashboard.Direct)
[Favorites](${local.host}/mastodon.dashboard.Favorites)
[Followers](${local.host}/mastodon.dashboard.Followers)
[Following](${local.host}/mastodon.dashboard.Following)
[Home](${local.host}/mastodon.dashboard.Home)
[List](${local.host}/mastodon.dashboard.List)
[Local](${local.host}/mastodon.dashboard.Local)
[Me](${local.host}/mastodon.dashboard.Me)
[Notification](${local.host}/mastodon.dashboard.Notification)
[PeopleSearch](${local.host}/mastodon.dashboard.PeopleSearch)
[Rate](${local.host}/mastodon.dashboard.Rate)
[Relationships](${local.host}/mastodon.dashboard.Relationships)
[Remote](${local.host}/mastodon.dashboard.Remote)
[Server](${local.host}/mastodon.dashboard.Server)
[StatusSearch](${local.host}/mastodon.dashboard.StatusSearch)
[TagSearch](${local.host}/mastodon.dashboard.TagSearch)
EOT
value = replace(
replace(
"${local.menu}",
"__HOST__",
"${local.host}"
),
"[Blocked](${local.host}/mastodon.dashboard.Blocked)",
"Blocked"
)
}
}

Expand Down

0 comments on commit 86cf56f

Please sign in to comment.