summaryrefslogblamecommitdiff
path: root/lib/lsg_web/templates/irc/txts.html.eex
blob: 68d35f53df2e7b145cbcc3d44cde5ad210454ec9 (plain) (tree)
1
2
3
4
5
6
7
8


                                                                                      

                                                                      

                                                                                 
                                    



                                                                                                   







                                                                                                                                                                   
           

       
 
                                                                                               
 






















                                                                                                                                                                                 
<div>
  <h2 class="text-gray-500 text-xs font-medium uppercase tracking-wide">
    <strong><%= @lines %></strong> lignes dans <strong><%= @files %></strong> fichiers
    <a href="#help" class="ml-4 font-bold">Aide</a>
    <a href="#system" class="text-gray-300 ml-4">Fichiers système</a>
  </h2>
  <ul class="mt-3 grid grid-cols-1 gap-5 sm:gap-6 sm:grid-cols-4 lg:grid-cols-6">
  <%= for {txt, data} <- @data do %>
    <% base_url = cond do
      @conn.assigns[:chan] -> "/#{@conn.assigns.network}/#{LSGWeb.format_chan(@conn.assigns.chan)}"
      true -> "/-"
    end %>
    <li class="col-span-1 flex shadow-sm rounded-m">
     <div class="flex-1 flex items-center justify-between border-l border-t border-r border-b border-gray-200 bg-white rounded-md truncate">
        <div class="flex-1 px-4 py-2 text-sm leading-5 truncate">
          <a href="<%= base_url %>/txt/<%= txt %>" class="text-gray-900 text-lg font-medium hover:text-gray-600 transition ease-in-out duration-150"><%= txt %></a>
          <p class="text-gray-500"><%= Enum.count(data) %> lignes</p>
        </div>
      </div>
    </li>
  <% end %>
  </ul>
</div>

<div class="prose mt-12" id="help""><%= LSGWeb.LayoutView.liquid_markdown(@conn, @doc) %></div>

<div class="mt-24">
    <h2 class="text-gray-500 text-xs font-medium uppercase tracking-wide">
        Fichiers système
    </h2>

    <ul class="mt-3 grid grid-cols-1 gap-5 sm:gap-6 sm:grid-cols-4 lg:grid-cols-6">
        <%= for {txt, data} <- @system do %>
            <% base_url = cond do
            @conn.assigns[:chan] -> "/#{@conn.assigns.network}/#{LSGWeb.format_chan(@conn.assigns.chan)}"
            true -> "/-"
            end %>
            <li class="col-span-1 flex shadow-sm rounded-m">
                <div class="flex-1 flex items-center justify-between border-l border-t border-r border-b border-gray-200 bg-white rounded-md truncate">
                    <div class="flex-1 px-4 py-2 text-sm leading-5 truncate">
                        <a href="<%= base_url %>/txt/<%= txt %>" class="text-gray-900 text-lg font-medium hover:text-gray-600 transition ease-in-out duration-150"><%= txt %></a>
                        <p class="text-gray-500"><%= Enum.count(data) %> lignes</p>
                    </div>
                </div>
            </li>
        <% end %>
    </ul>

</div>