diff options
author | href <href@random.sh> | 2020-03-11 21:18:34 +0100 |
---|---|---|
committer | href <href@random.sh> | 2020-03-11 21:18:34 +0100 |
commit | a28d24470ddeca6196219a1333c1ccac1319efef (patch) | |
tree | 4f29e3c8fb6afbb1f99d6b8737f844c95fca54df /lib/lsg_web/templates | |
parent | up to 420*100 (diff) |
welp
Diffstat (limited to 'lib/lsg_web/templates')
-rw-r--r-- | lib/lsg_web/templates/irc/index.html.eex | 35 | ||||
-rw-r--r-- | lib/lsg_web/templates/irc/txt.html.eex | 5 | ||||
-rw-r--r-- | lib/lsg_web/templates/irc/txts.html.eex | 9 | ||||
-rw-r--r-- | lib/lsg_web/templates/page/index.html.eex | 2 |
4 files changed, 39 insertions, 12 deletions
diff --git a/lib/lsg_web/templates/irc/index.html.eex b/lib/lsg_web/templates/irc/index.html.eex index c42d71f..f127101 100644 --- a/lib/lsg_web/templates/irc/index.html.eex +++ b/lib/lsg_web/templates/irc/index.html.eex @@ -4,18 +4,17 @@ h1 small { } </style> -<h1> - <small><a href="https://115ans.net">115ans.net</a> › </small><br/> -irc 115ans</h1> +<h1><%= Keyword.get(Application.get_env(:lsg, :irc), :name, "ircbot") %></h1> -<p> +<!--<p> Serveur IRC: <a href="irc://irc.quakenet.org/lsg">irc.quakenet.org #lsg</a>. Matrix: <a href="https://matrix.random.sh/riot/#rooms/#lsg:random.sh">#lsg:random.sh</a>. <br /> <a href="https://115ans.net/irc/">Webchat</a>. <br /> <a href="/irc/stats/">Statistiques</a>. -</p> +</del> +</p>--> <style type="text/css"> @@ -27,12 +26,34 @@ Serveur IRC: <a href="irc://irc.quakenet.org/lsg">irc.quakenet.org #lsg</a>. } </style> +<p> + <% list = for {identifier, _} <- @commands do %> + <% name = String.replace(identifier, "_", " ") %> + <%= link(name, to: "##{identifier}") #raw("<a href='##{identifier}'>#{name}</a>") %> + <% end %> + <small><%= Enum.intersperse(list, " - ") %></small> +</p> + <div class="irchelps"> - <%= for help <- @commands do %> - <div class="help-entry"><%= help |> Earmark.as_html! |> raw() %></div> + <%= for {identifier, help} <- @commands do %> + <%= if help do %> + <div class="help-entry" id="<%= identifier %>"><%= help |> Earmark.as_html! |> raw() %></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> diff --git a/lib/lsg_web/templates/irc/txt.html.eex b/lib/lsg_web/templates/irc/txt.html.eex index e060e5f..5b31320 100644 --- a/lib/lsg_web/templates/irc/txt.html.eex +++ b/lib/lsg_web/templates/irc/txt.html.eex @@ -8,7 +8,7 @@ ol li { </style> <h1> - <small><a href="https://115ans.net">115ans.net</a> › <a href="/irc">irc</a> › <a href="/irc/txt">txt</a> ›</small><br/> + <small><a href="/irc"><%= Keyword.get(Application.get_env(:lsg, :irc), :name, "ircbot") %></a> › <a href="/irc/txt">txt</a> ›</small><br/> <%= @name %>.txt</h1> <ol> @@ -17,3 +17,6 @@ ol li { <% end %> </ol> +<p> + <a href="/irc/txt/<%= @name %>.txt">télécharger au format texte</a> +</p> diff --git a/lib/lsg_web/templates/irc/txts.html.eex b/lib/lsg_web/templates/irc/txts.html.eex index 5039c29..28d0220 100644 --- a/lib/lsg_web/templates/irc/txts.html.eex +++ b/lib/lsg_web/templates/irc/txts.html.eex @@ -9,10 +9,13 @@ h1 small { font-size: 14px; } </style> -<h1><small><a href="https://115ans.net">115ans.net</a> › <a href="/irc">irc</a> ›</small><br/> +<h1> + <small><a href="/irc"><%= Keyword.get(Application.get_env(:lsg, :irc), :name, "ircbot") %></a> › </small><br/> txt</h1> -<p><strong><%= @lines %></strong> lignes dans <strong><%= @files %></strong> fichiers.</p> +<p><strong><%= @lines %></strong> lignes dans <strong><%= @files %></strong> fichiers. +<a href="#help">Aide</a>. +</p> <ul> <%= for {txt, data} <- @data do %> @@ -20,5 +23,5 @@ h1 small { <% end %> </ul> -<div class="help-entry"><%= @doc |> Earmark.as_html! |> raw() %></div> +<div class="help-entry" id="help"><%= @doc |> Earmark.as_html! |> raw() %></div> diff --git a/lib/lsg_web/templates/page/index.html.eex b/lib/lsg_web/templates/page/index.html.eex index 98e407c..1b8519a 100644 --- a/lib/lsg_web/templates/page/index.html.eex +++ b/lib/lsg_web/templates/page/index.html.eex @@ -1 +1 @@ -<p>Vous n'avez rien de mieux à faire ? Non ? Allez sur <a href="https://115ans.net">115ans.net</a>, alors.</p> +<p>vOv</p> |