Skip to content

Commit

Permalink
Add a big banner for Spyglass to Gubernator.
Browse files Browse the repository at this point in the history
  • Loading branch information
Katharine committed Feb 19, 2019
1 parent 197a584 commit 9799aa8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gubernator/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ body {
margin: 0;
scroll-behavior: smooth;
}
#page-top-banner {
text-align: center;
padding: 15px;
background-color: #ffeb00;
font-weight: bold;
}
#page-top-banner a {
color: #0027ff;
}
#header {
background-color: #3f51b5;
color: white;
Expand Down
2 changes: 2 additions & 0 deletions gubernator/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
ga('send', 'pageview');
</script>
% endblock
% block banner
% endblock
<div id="header" class="container">
<a href="/"><img src="{{'logo.svg'|static}}"></a>
% block header
Expand Down
7 changes: 7 additions & 0 deletions gubernator/templates/build.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
<link rel="icon" type="image/png" href="{{'favicon-green.png'|static}}" />
% endif
% endblock
% block banner
% if spyglass_link
<div id="page-top-banner">
This job view page is being replaced by Spyglass soon. <a href="{{spyglass_link}}">Check out the new job view</a>.
</div>
% endif
% endblock
% block header
<h1>{% if pr and pr != "batch" %}<a href="/pr/{{pr_path}}{{pr}}">{% if repo != "kubernetes/kubernetes"%}{{repo}} {% endif %}PR #{{pr}}</a> {% endif %}
% if testgrid_query
Expand Down

0 comments on commit 9799aa8

Please sign in to comment.