diff options
Diffstat (limited to 'lib/nola_web/templates/irc/txts.html.eex')
-rw-r--r-- | lib/nola_web/templates/irc/txts.html.eex | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/lib/nola_web/templates/irc/txts.html.eex b/lib/nola_web/templates/irc/txts.html.eex new file mode 100644 index 0000000..aff0c5d --- /dev/null +++ b/lib/nola_web/templates/irc/txts.html.eex @@ -0,0 +1,49 @@ +<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}/#{NolaWeb.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""><%= NolaWeb.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}/#{NolaWeb.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> |