diff options
author | href <href@random.sh> | 2018-02-10 21:40:22 +0100 |
---|---|---|
committer | href <href@random.sh> | 2018-02-10 21:40:22 +0100 |
commit | 935a36eecc0faea60236101e11bc9f7cf1872686 (patch) | |
tree | b7b4358dee2eb3fc60681852f62c750ae8c05cb9 /lib/lsg_web/templates/irc | |
parent | sse / embedded player (diff) |
update
Diffstat (limited to 'lib/lsg_web/templates/irc')
-rw-r--r-- | lib/lsg_web/templates/irc/index.html.eex | 29 | ||||
-rw-r--r-- | lib/lsg_web/templates/irc/txt.html.eex | 19 | ||||
-rw-r--r-- | lib/lsg_web/templates/irc/txts.html.eex | 8 |
3 files changed, 56 insertions, 0 deletions
diff --git a/lib/lsg_web/templates/irc/index.html.eex b/lib/lsg_web/templates/irc/index.html.eex new file mode 100644 index 0000000..91873e6 --- /dev/null +++ b/lib/lsg_web/templates/irc/index.html.eex @@ -0,0 +1,29 @@ +<h1>bot `115ans</h1> + +<p> +Si vous cherchez l'IRC c'est <a href="https://115ans.net/irc/">par là</a>. +<br /> +<a href="/irc/stats/">Statistiques</a>. +</p> + + +<style type="text/css"> +.help-entry h1 { + font-size: 18px; +} +.help-entry h2 { + font-size: 16px; +} +</style> + +<div class="irchelps"> + <%= for help <- @commands do %> + <div class="help-entry"><%= help |> Earmark.as_html! |> raw() %></div> + <% end %> +</div> + +<p> +<small> + source: <a href="https://git.yt/115ans/sys">git.yt/115ans/sys</a> +</small> +</p> diff --git a/lib/lsg_web/templates/irc/txt.html.eex b/lib/lsg_web/templates/irc/txt.html.eex new file mode 100644 index 0000000..4ffde50 --- /dev/null +++ b/lib/lsg_web/templates/irc/txt.html.eex @@ -0,0 +1,19 @@ +<style type="text/css"> +h1 small { + font-size: 14px; +} +ol li { + margin-bottom: 5px +} +</style> + +<h1> + <small><a href="/irc/txt">irc.txt</a>:</small><br/> + <%= @name %>.txt</h1> + +<ol> + <%= for {txt, id} <- Enum.with_index(@data) do %> + <li id="<%= @name %>-<%= id %>"><%= txt %></li> + <% end %> +</ol> + diff --git a/lib/lsg_web/templates/irc/txts.html.eex b/lib/lsg_web/templates/irc/txts.html.eex new file mode 100644 index 0000000..7c96ed9 --- /dev/null +++ b/lib/lsg_web/templates/irc/txts.html.eex @@ -0,0 +1,8 @@ +<h1>irc.txt</h1> + +<ul> + <%= for {txt, data} <- @data do %> + <li><a href="/irc/txt/<%= txt %>"><%= txt %></a> <i>(<%= Enum.count(data) %>)</i></li> + <% end %> +</ul> + |