blob: 68d35f53df2e7b145cbcc3d44cde5ad210454ec9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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}/#{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>
|