| 1 |
{% load static %}<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<!-- Copyright 2008 Orbitz WorldWide |
| 3 |
|
| 4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
you may not use this file except in compliance with the License. |
| 6 |
You may obtain a copy of the License at |
| 7 |
|
| 8 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
|
| 10 |
Unless required by applicable law or agreed to in writing, software |
| 11 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
See the License for the specific language governing permissions and |
| 14 |
limitations under the License. --> |
| 15 |
<html> |
| 16 |
<head> |
| 17 |
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> |
| 18 |
<title>Graphite Browser Header</title> |
| 19 |
<style> |
| 20 |
html { |
| 21 |
height: 100%; |
| 22 |
} |
| 23 |
body { |
| 24 |
background-color: #000; |
| 25 |
background: #000 url('{% static "img/carbon-fiber.png" %}'); |
| 26 |
background: url('{% static "img/carbon-fiber.png" %}'), -webkit-linear-gradient(top, #000 55%, #333); |
| 27 |
background: url('{% static "img/carbon-fiber.png" %}'), -moz-linear-gradient(top, #000, #000); |
| 28 |
background: url('{% static "img/carbon-fiber.png" %}'), -ms-linear-gradient(top, #000 55%, #333); |
| 29 |
background: url('{% static "img/carbon-fiber.png" %}'), -o-linear-gradient(top, #000 55%, #333); |
| 30 |
background: url('{% static "img/carbon-fiber.png" %}'), linear-gradient(top, #000 55%, #333); |
| 31 |
} |
| 32 |
div.header { |
| 33 |
background-image: url('{% static "img/graphite-logo.png" %}'); |
| 34 |
background-repeat: no-repeat; |
| 35 |
background-size: 12%; |
| 36 |
min-height: 60px; |
| 37 |
margin: 22px 0 0 50px; |
| 38 |
} |
| 39 |
.header div.nav { |
| 40 |
float: right; |
| 41 |
} |
| 42 |
.header .nav * { |
| 43 |
font: 0.96em Helvetica, Arial, Tahoma, sans-serif; |
| 44 |
color: rgb(173, 173, 173); |
| 45 |
} |
| 46 |
.header .nav ul { |
| 47 |
margin: 14px 30px 0 0; |
| 48 |
list-style: none; |
| 49 |
} |
| 50 |
.header .nav ul li { |
| 51 |
float: left; |
| 52 |
margin-right: 15px; |
| 53 |
} |
| 54 |
.header .nav ul li a { |
| 55 |
text-decoration: none; |
| 56 |
} |
| 57 |
.header .nav ul li.login a { |
| 58 |
color: #66B3CF; |
| 59 |
} |
| 60 |
.header .nav ul li a:hover, .header .nav ul li a.logout:hover { |
| 61 |
color: #fff; |
| 62 |
} |
| 63 |
.header .nav ul li a.logout { |
| 64 |
color: rgb(228, 133, 126); |
| 65 |
} |
| 66 |
.header .nav ul li.user_state { |
| 67 |
margin-left: 20px; |
| 68 |
} |
| 69 |
</style> |
| 70 |
</head> |
| 71 |
<body> |
| 72 |
<div class="header"> |
| 73 |
<div class="nav"> |
| 74 |
<ul> |
| 75 |
{% if documentation_url %} |
| 76 |
<li><a href="{{documentation_url}}" target="_newWindow">Documentation</a></li> |
| 77 |
{% endif %} |
| 78 |
<li><a href="{% url "dashboard" %}" target="_top">Dashboard</a></li> |
| 79 |
<li><a href="{% url "events" %}" target="_top">Events</a></li> |
| 80 |
{% if user.is_authenticated %} |
| 81 |
<li class="user_state"><a href="{% url "account_logout" %}" class="logout" target="_top">Logout</a> <b>{{ user.username }}</b> (<a href="{% url "account_edit" %}" target="_top">profile</a>)</li> |
| 82 |
{% else %} |
| 83 |
<li class="user_state login"><a href="{{login_url}}" target="_top">Login</a></li> |
| 84 |
{% endif %} |
| 85 |
</ul> |
| 86 |
</div> |
| 87 |
</div> |
| 88 |
</body> |
| 89 |
</html> |