Sha256: b117452d9ed5967c688a6295a96a9eed5a066ba6681aae0f5c7bb36b45d5f8e5

Contents?: true

Size: 757 Bytes

Versions: 2

Compression:

Stored size: 757 Bytes

Contents

<!DOCTYPE html>
<html>
<head>
  <title><%= @path %></title>
  <%= csrf_meta_tags %>
  <%= csp_meta_tag %>

  <%= yield :head %>

  <%= stylesheet_link_tag    "source_browser/application", media: "all" %>
  <style>
    .rouge-line-table {
      border-collapse: collapse;
    }
    .code { flex-grow: 1;}
    <%= Rouge::Themes::Molokai.render(scope: '.code')%>
  </style>
</head>
<body>
  <main style="display: flex; gap: 1rem">
    <nav style="max-width: 500px; flex-shrink: 0; overflow: auto;">
      <ul>
        <% @files.each do |path, _| %>
          <li>
            <%= link_to_unless_current path, browse_path(":" + path) %>
          </li>
        <% end %>
      </ul>
    </nav>
    <div class="code"><%= yield %></div>
  </main>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
source_browser-0.2.0 app/views/layouts/source_browser/source.html.erb
source_browser-0.1.0 app/views/layouts/source_browser/source.html.erb