summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2020-06-04 20:55:00 -0400
committerOwen Jacobson <owen@grimoire.ca>2020-06-04 20:55:00 -0400
commit29aa339964500a47cc9322c14006207e02cc5d2b (patch)
tree428591633bd0658b095c90382883a9a33446d1ca
parentdeb89e35533ecada8d0e668bd5a93c62a2ae5549 (diff)
Remove some visual clutter in template rendering.
-rw-r--r--src/view.rs38
1 files changed, 17 insertions, 21 deletions
diff --git a/src/view.rs b/src/view.rs
index 5f2e3d9..6f0256e 100644
--- a/src/view.rs
+++ b/src/view.rs
@@ -186,27 +186,23 @@ fn github_badge(repo: &str) -> Markup {
fn index_view(req: impl Urls, idx: &usize, thing: &Thing) -> MarkupResult {
page(
- || {
- Ok(html! {
- title { (thing.markdown) }
- (stylesheet())
- (og_card("Troubleshooting suggestion", &thing.markdown))
- })
- },
- || {
- Ok(html! {
- section {
- (PreEscaped(&thing.html))
- (suggestion_link(&req, ItemQuery::default(), || Ok(html! {
- "That wasn't it, suggest something else."
- }))?)
- (suggestion_link(&req, ItemQuery::from(idx), || Ok(html! {
- "Share this troubleshooting suggestion."
- }))?)
- }
- (github_badge("ojacobson/things-to-check"))
- })
- },
+ || Ok(html! {
+ title { (thing.markdown) }
+ (stylesheet())
+ (og_card("Troubleshooting suggestion", &thing.markdown))
+ }),
+ || Ok(html! {
+ section {
+ (PreEscaped(&thing.html))
+ (suggestion_link(&req, ItemQuery::default(), || Ok(html! {
+ "That wasn't it, suggest something else."
+ }))?)
+ (suggestion_link(&req, ItemQuery::from(idx), || Ok(html! {
+ "Share this troubleshooting suggestion."
+ }))?)
+ }
+ (github_badge("ojacobson/things-to-check"))
+ }),
)
}