From 57678496936919a99229dbc00c6e84072c00d560 Mon Sep 17 00:00:00 2001 From: Sam Rijs Date: Tue, 30 Jan 2018 07:41:07 +1100 Subject: [PATCH] design: right-align dependency versions and status tag --- src/server/views/status_html.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/server/views/status_html.rs b/src/server/views/status_html.rs index 7cf8435..f0b84be 100644 --- a/src/server/views/status_html.rs +++ b/src/server/views/status_html.rs @@ -36,9 +36,9 @@ fn dependency_table(title: &str, deps: BTreeMap) thead { tr { th "Crate" - th "Required" - th "Latest" - th "Status" + th class="has-text-right" "Required" + th class="has-text-right" "Latest" + th class="has-text-right" "Status" } } tbody { @@ -47,15 +47,15 @@ fn dependency_table(title: &str, deps: BTreeMap) td { a href=(format!("https://crates.io/crates/{}", name.as_ref())) (name.as_ref()) } - td code (dep.required.to_string()) - td { + td class="has-text-right" code (dep.required.to_string()) + td class="has-text-right" { @if let Some(ref latest) = dep.latest { code (latest.to_string()) } @else { "N/A" } } - td { + td class="has-text-right" { @if dep.is_outdated() { span class="tag is-warning" "out of date" } @else {