feedless/web/views/desktop/search.ejs

32 lines
832 B
Plaintext
Raw Normal View History

2020-04-05 14:51:25 +02:00
<%- include('_header') %>
2020-04-20 21:57:00 +02:00
<% if (query.length < 3) { %>
<h2>You need to search for 3 or more characters</h2>
<% } else { %>
<h2>Results for "<%= query %>"</h2>
2020-04-05 14:51:25 +02:00
2020-04-21 08:13:33 +02:00
<h3>People</h3>
<% if (people.length == 0) { %>
<p>No results found</p>
<% } %>
2020-04-05 14:51:25 +02:00
<% people.map(person => { %>
2020-04-20 21:57:00 +02:00
<a class="link-block" href="<%= profileUrl(person.author) %>">
<img class="link-profile-pic" src="<%= profileImageUrl(person.authorProfile) %>" />
<div><%= person.content.name %></div>
2020-04-05 20:11:55 +02:00
</a>
2020-04-05 14:51:25 +02:00
<% }) %>
2020-04-21 08:13:33 +02:00
<h3 style="padding-top: 20px">Communities</h3>
<% if (communities.length == 0) { %>
<p>No results found</p>
<% } %>
<% communities.map(community => { %>
<a href="/communities/<%= community %>" class="link-block">
2020-04-21 08:13:33 +02:00
#<%= community %>
</a>
<% }) %>
2020-04-20 21:57:00 +02:00
<% } %>
2020-04-05 14:51:25 +02:00
<%- include('_footer') %>