<%= 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 %>
<%= 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 %>
<%= for {identifier, help} <- @commands do %>
<%= if help do %>
<%= LSGWeb.LayoutView.liquid_markdown(@conn, help) %>
<% end %>
<% end %>
Légende:
entre < >
: argument obligatoire,
entre [ ]
: argument optionel; [1 | ]
: argument optionel avec valeur par défaut.
source: git.yt/115ans/sys