This repository has been archived by the owner on Oct 12, 2018. It is now read-only.
/
application.html.erb
61 lines (54 loc) · 2 KB
/
application.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html>
<head>
<title><%= yield :page_title %> | GOV.UK Panopticon</title>
<%= csrf_meta_tags %>
<%= stylesheet_link_tag 'bootstrap.min.css', 'application.css' %>
<%= yield :extra_headers %>
</head>
<body>
<header class="navbar navbar-fixed-top" role="banner">
<div class="navbar-inner">
<div class="container-fluid">
<%= link_to 'GOV.UK Panopticon', root_path, :class => "brand" %>
<% if user_signed_in? %>
<nav role="navigation" class="nav-collapse">
<ul class="nav">
<%= nav_link 'All artefacts', artefacts_path %>
<%= nav_link 'Add artefact', new_artefact_path %>
</ul>
<ul class="nav pull-right">
<li class="dropdown">
<a href="#"
class="dropdown-toggle"
data-toggle="dropdown">
Services
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="http://digital.cabinetoffice.gov.uk/">GDS blog</a></li>
<li><a href="http://wiki.digital.cabinet-office.gov.uk/">GDS wiki</a></li>
<li class="divider"></li>
<li><%= link_to 'Analytics', 'https://www.google.com/analytics/web/#dashboard/default/a26179049w50705554p51337955/'%></li>
<li class="divider"></li>
<li><%= link_to 'Sign out', gds_sign_out_path %></li>
</ul>
</li>
</ul>
<p class="navbar-text pull-right">Signed in as <a href="<%= Plek.current.find('signon') %>"><%= current_user.name %></a></p>
</nav>
<% end %>
</div>
</div>
</header>
<section class="container-fluid" role="main">
<%= yield %>
<hr>
<footer>
<p>© GDS. <span class="pull-right">Panopticon release: <%= CURRENT_RELEASE_SHA %></span> </p>
</footer>
</section>
<%= javascript_include_tag('jquery.min.js', 'bootstrap.min.js') %>
<%= yield :extra_javascript %>
</body>
</html>