clacks/lib/clacks_web/templates/frontend/search.html.eex

13 lines
444 B
Elixir
Raw Normal View History

2020-04-26 02:28:30 +00:00
<%= form_tag Routes.frontend_path(@conn, :search), method: :get, class: "search-form" do %>
<input type="text" name="q" id="q" placeholder="Search Query" value="<%= @q %>">
<%= submit "Search" %>
<% end %>
<%= if @conn.assigns[:status_results] do %>
<hr>
<%= for {status, author} <- @status_results do %>
<%= render "_status.html", conn: @conn, author: author, status: status, note: status.data["object"] %>
<% end %>
<% end %>