introduce footer section

fixes #14
This commit is contained in:
Sam Rijs 2018-02-11 17:52:48 +11:00
parent ca367f54bb
commit 9f07308418
4 changed files with 26 additions and 0 deletions

View file

@ -12,5 +12,6 @@ pub fn render(title: &str, descr: &str) -> Response {
}
}
}
(super::render_footer())
})
}

View file

@ -50,5 +50,6 @@ pub fn render(popular: Vec<Repository>) -> Response {
section class="section" {
div class="container" (popular_table(popular))
}
(super::render_footer())
})
}

View file

@ -52,3 +52,25 @@ fn render_navbar() -> Markup {
}
}
}
fn render_footer() -> Markup {
html! {
footer class="footer" {
div class="container" {
div class="content has-text-centered" {
p {
strong "Deps.rs"
" is a service for the Rust community. It is open source on "
a href="https://github.com/srijs/deps.rs" "GitHub"
"."
}
p {
"Please report any issues on the "
a href="https://github.com/srijs/deps.rs/issues" "issue tracker"
"."
}
}
}
}
}
}

View file

@ -108,6 +108,7 @@ fn render_failure(repo_path: RepoPath) -> Markup {
}
}
}
(super::render_footer())
}
}
@ -153,6 +154,7 @@ fn render_success(analysis_outcome: AnalyzeDependenciesOutcome, repo_path: RepoP
}
}
}
(super::render_footer())
}
}