From 3ace68dc38c70d77618aeeccbb43f8f8f5014fb1 Mon Sep 17 00:00:00 2001 From: Sam Rijs Date: Sun, 28 Jan 2018 20:07:46 +1100 Subject: [PATCH] improve page header --- assets/static/style.css | 3 ++- src/server/views/status_html.rs | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/static/style.css b/assets/static/style.css index 31489e2..83d3f23 100644 --- a/assets/static/style.css +++ b/assets/static/style.css @@ -1 +1,2 @@ -@import url('https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.2/css/bulma.min.css') +@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'); +@import url('https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.2/css/bulma.min.css'); diff --git a/src/server/views/status_html.rs b/src/server/views/status_html.rs index 289b34f..b30ca89 100644 --- a/src/server/views/status_html.rs +++ b/src/server/views/status_html.rs @@ -86,10 +86,10 @@ pub fn status_html(analysis_outcome: AnalyzeDependenciesOutcome, repo_path: Repo section class=(format!("hero {}", hero_class)) { div class="hero-body" { div class="container" { - h1 class="title is-2" { - "Dependency status for " + h1 class="title is-1" { a href=(format!("{}/{}/{}", repo_path.site.to_base_uri(), repo_path.qual.as_ref(), repo_path.name.as_ref())) { - code (format!("{}/{}", repo_path.qual.as_ref(), repo_path.name.as_ref())) + i class="fa fa-github" "" + (format!(" {}/{}", repo_path.qual.as_ref(), repo_path.name.as_ref())) } }