Sha256: e26444b45fd6c422dfbd995f71d41392aba678e154b8f65ce7a58e3bf47f3d55

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8"/>
    <meta name="referrer" content="same-origin"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"/>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
    <title><%= project.display_name %></title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
      p.pagetitle {
          display: -webkit-box;
          -webkit-line-clamp: 3;
          -webkit-box-orient: vertical;
      }
    </style>
  </head>
  <body class="bg-gray-100 p-4">
    <div class="max-w-screen-xl mx-auto">
      <h1 class="text-xl mb-4"><%= project.display_name %> ページ一覧</h1>
      <div class="grid grid-cols-8 gap-4">
        <% project.pages.each do |page|%>
        <div class="bg-white shadow-md rounded-md aspect-square flex items-start justify-center p-2 overflow-hidden">
            <div class="break-words text-xs w-full">
              <a href="<%= page.link_path %>">
                <p class="pagetitle font-bold  overflow-hidden"><%= page.title %></p>
              </a>
              <a href="<%= page.link_path %>">
              <% page.body_lines.each do |line| %>
                <p class="inline text-xs"><%= line.to_s %></p>
              <% end %>
              </a>
            </div>
        </div>
        <% end %>
      </div>
    </div>
  </body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cosensee-0.6.0 templates/index.html.erb