diff options
author | href <href@random.sh> | 2021-09-07 05:28:02 +0200 |
---|---|---|
committer | href <href@random.sh> | 2021-09-07 05:28:02 +0200 |
commit | cf7b21afa87ca5202bd626d26a60adab1e9131a1 (patch) | |
tree | 245cbb332e9ab63a2b84e4168e0ce750dc1e7ae9 /lib/lsg_web/templates/irc/index.html.eex | |
parent | user_track: fix find_by_account/2 (diff) |
web: openid & various fixes
Diffstat (limited to 'lib/lsg_web/templates/irc/index.html.eex')
-rw-r--r-- | lib/lsg_web/templates/irc/index.html.eex | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/lsg_web/templates/irc/index.html.eex b/lib/lsg_web/templates/irc/index.html.eex index f20f444..52372b5 100644 --- a/lib/lsg_web/templates/irc/index.html.eex +++ b/lib/lsg_web/templates/irc/index.html.eex @@ -1,22 +1,21 @@ <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") %> + <nav class="flex flex-wrap space-x-4"> + <%= link("live", to: LSGWeb.Router.Helpers.live_path(LSGWeb.Endpoint, LSGWeb.ChatLive, @network, LSGWeb.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: "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") %> + <%= 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 %> -<% users = for {_acc, user, nick} <- @members, do: if(user, do: nick, else: content_tag(:i, nick)) %> -<%= for u <- Enum.intersperse(users, ", ") do %> - <%= u %> -<% end %> + <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"> +<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 %>"> |