Sha256: db284998025c9acf4bf104edcbd8893edc54d3274afa6cece1182254b284a7ff

Contents?: true

Size: 1.8 KB

Versions: 2

Compression:

Stored size: 1.8 KB

Contents

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="/fonts/opensans/stylesheet.css">
        <link rel="stylesheet" type="text/css" href="/css/reset.css">
        <link rel="stylesheet" type="text/css" href="/css/style.css">
        <title>Overview</title>
        <script src="<%= url_prefix %>js/jquery.js"></script>
    </head>
    <body>
        <header>
            <h1><%= @site_name %></h1>
            <nav>
                <ul>
                    <li>
                        <%= nav_item(url_prefix, 'Overview', false) %>
                    </li>
                    <li>
                        <%= nav_item("#{url_prefix}systems", 'Systems', false) %>
                        <ul>
                            <% @groups.each do |group| %>
                                <%= nav_item("#{url_prefix}groups/#{group.id}/systems", group.name) %>
                            <% end %>
                        </ul>
                    </li>
                    <li>
                        <a href="<%= url_prefix %>admin">Admin</a>
                        <% if request.path.start_with?("#{url_prefix}admin") %>
                            <ul>
                                <%= nav_item("#{url_prefix}admin/systems", 'Systems') %>
                                <%= nav_item("#{url_prefix}admin/groups", 'Groups') %>
                                <%= nav_item("#{url_prefix}admin/configs", 'Configs') %>
                                <%= nav_item("#{url_prefix}admin/alerts", 'Alerts') %>
                                <%= nav_item("#{url_prefix}admin/scripts", 'Scripts') %>
                            </ul>
                        <% end %>
                    </li>
                </ul>
            </nav>
        </header>
        <main>
            <%= yield %>
        </main>
    </body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
perus-0.1.1 lib/perus/server/views/layout.erb
perus-0.1.0 lib/perus/server/views/layout.erb