summaryrefslogtreecommitdiff
path: root/lib/lsg_web/templates/irc/index.html.eex
blob: f20f44455458bd4b43b6cb883350d26a777cface (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
<div class="hidden sm:block">
    <nav class="flex flex-wrap content-center">
        <%= link("live", to: LSGWeb.Router.Helpers.live_path(LSGWeb.Endpoint, LSGWeb.ChatLive, @network, LSGWeb.format_chan(@chan)), class: "px-3 py-2 font-medium text-sm leading-5 rounded-md text-gray-500 hover:text-gray-700 focus:outline-none focus:text-indigo-600 focus:bg-indigo-50") %>
  <% list =  for {identifier, _} <- @commands do %>
    <% name = String.replace(identifier, "_", " ") %>
    <%= link(name, to: "##{identifier}", class: "px-3 py-2 font-medium text-sm leading-5 rounded-md text-gray-500 hover:text-gray-700 focus:outline-none focus:text-indigo-600 focus:bg-indigo-50") %>
  <% end %>
  <%= list %>
  </nav>
</div>

<%= if @members != [] do %>
<% users = for {_acc, user, nick} <- @members, do: if(user, do: nick, else: content_tag(:i, nick)) %>
<%= for u <- Enum.intersperse(users, ", ") do %>
  <%= u %>
<% end %>
<% end %>

<div class="irchelps space-y-6">
  <%= for {identifier, help} <- @commands do %>
    <%= if help do %>
      <div class="bg-white border-b border-gray-200" id="<%= identifier %>">
        <div class="prose w-auto max-w-full"><%= LSGWeb.LayoutView.liquid_markdown(@conn, help) %></div>
      </div>
    <% end %>
  <% end %>
</div>

<br/><br/><br/>

<p>
<small>
  <strong>Légende:</strong><br />
  entre <code>< ></code>: argument obligatoire,<br />
  entre <code>[ ]</code>: argument optionel; <code>[1 | ]</code>: argument optionel avec valeur par défaut.
</small>
</p>

<br/><br/><br/>

<p>
<small>
  source: <a href="https://git.yt/115ans/sys">git.yt/115ans/sys</a>
</small>
</p>