summaryrefslogtreecommitdiff
path: root/lib/lsg_web/templates/irc/index.html.eex
blob: 182624d7a89253ac92ec6ff454e226c86e6abc09 (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
<div class="hidden sm:block">
    <nav class="flex flex-wrap space-x-4">
        <%= link("live", to: NolaWeb.Router.Helpers.live_path(NolaWeb.Endpoint, NolaWeb.ChatLive, @network, NolaWeb.format_chan(@chan)), class: "py-4 font-medium leading-5 rounded-md text-gray-500 hover:text-gray-700 focus:outline-none focus:text-indigo-600 focus:bg-indigo-50", 'data-turbo': false) %>
  <% list =  for {identifier, _} <- @commands do %>
    <% name = String.replace(identifier, "_", " ") %>
    <%= link(name, to: "##{identifier}", class: "py-4 font-medium 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 %>
    <ul class="flex flew-wrap space-x-4 mt-12">
        <%= for user <- @members do %><li><%= user.nick %></li><% end %>
    </ul>
<% end %>

<div class="irchelps space-y-6 mt-12">
  <%= 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"><%= NolaWeb.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>
  running beautte version <%= Nola.version() %> &mdash; <a href="<%= Nola.source_url() %>">git</a>
</small>
</p>