Sha256: b7599132c637d6d40ad7c972ad8d8746ad5884064564a3001b044925310e424c

Contents?: true

Size: 1.92 KB

Versions: 32

Compression:

Stored size: 1.92 KB

Contents

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="<%= url_prefix %>fonts/opensans/stylesheet.css">
        <link rel="stylesheet" type="text/css" href="<%= url_prefix %>css/reset.css">
        <link rel="stylesheet" type="text/css" href="<%= url_prefix %>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?('/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') %>
                                <%= nav_item("#{url_prefix}admin/stats", 'Stats') %>
                            </ul>
                        <% end %>
                    </li>
                </ul>
            </nav>
        </header>
        <main>
            <%= yield %>
        </main>
    </body>
</html>

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
perus-1.0.7 lib/perus/server/views/layout.erb
perus-1.0.6 lib/perus/server/views/layout.erb
perus-1.0.5 lib/perus/server/views/layout.erb
perus-1.0.4 lib/perus/server/views/layout.erb
perus-1.0.3 lib/perus/server/views/layout.erb
perus-1.0.2 lib/perus/server/views/layout.erb
perus-1.0.1 lib/perus/server/views/layout.erb
perus-1.0.0 lib/perus/server/views/layout.erb
perus-0.1.35 lib/perus/server/views/layout.erb
perus-0.1.34 lib/perus/server/views/layout.erb
perus-0.1.33 lib/perus/server/views/layout.erb
perus-0.1.32 lib/perus/server/views/layout.erb
perus-0.1.31 lib/perus/server/views/layout.erb
perus-0.1.30 lib/perus/server/views/layout.erb
perus-0.1.29 lib/perus/server/views/layout.erb
perus-0.1.28 lib/perus/server/views/layout.erb
perus-0.1.27 lib/perus/server/views/layout.erb
perus-0.1.26 lib/perus/server/views/layout.erb
perus-0.1.25 lib/perus/server/views/layout.erb
perus-0.1.24 lib/perus/server/views/layout.erb