32 lines
880 B
Elixir
32 lines
880 B
Elixir
<%= 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 length(@actor_results) > 0 do %>
|
|
<hr>
|
|
|
|
<%= for actor <- @actor_results do %>
|
|
<div class="actor">
|
|
<h2 class="actor-nickname">
|
|
<a href="<%= local_actor_link(actor) %>">
|
|
<%= actor.data["preferredUsername"] %>
|
|
</a>
|
|
</h2>
|
|
<h3 class="actor-username">
|
|
<a href="<%= actor.ap_id %>">
|
|
<%= display_username(actor) %>
|
|
</a>
|
|
</h3>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= if length(@status_results) > 0 do %>
|
|
<hr>
|
|
|
|
<%= for {status, author} <- @status_results do %>
|
|
<%= render "_status.html", conn: @conn, author: author, status: status, note: status.object.data %>
|
|
<% end %>
|
|
<% end %>
|