diff options
author | href <href@random.sh> | 2021-09-02 07:05:42 +0200 |
---|---|---|
committer | href <href@random.sh> | 2021-09-02 07:05:42 +0200 |
commit | d14408c7e054619f2648eb0480fe55f60397e8c2 (patch) | |
tree | 077c0e0ecc33b7a1e4fa00023325db54f3cd40e8 /lib/lsg_web/templates/irc/txts.html.eex | |
parent | exirc fork: use git repo (diff) |
txt: don't search in files with dot, display them below in web
Diffstat (limited to '')
-rw-r--r-- | lib/lsg_web/templates/irc/txts.html.eex | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/lib/lsg_web/templates/irc/txts.html.eex b/lib/lsg_web/templates/irc/txts.html.eex index 66321b5..68d35f5 100644 --- a/lib/lsg_web/templates/irc/txts.html.eex +++ b/lib/lsg_web/templates/irc/txts.html.eex @@ -1,8 +1,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">Aide</a> + <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 %> @@ -22,5 +22,28 @@ </ul> </div> -<div class="prose" id="help"><%= LSGWeb.LayoutView.liquid_markdown(@conn, @doc) %></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> |