- <%= post.authorProfile.name %> + + <%= post.authorProfile.name %> +
<% let text = post.content.text.slice(0, 140) %> diff --git a/app/views/communities.ejs b/app/views/communities.ejs new file mode 100644 index 0000000..b6da9a1 --- /dev/null +++ b/app/views/communities.ejs @@ -0,0 +1,13 @@ +<%- include('_header') %> + +

Communities

+ +
+ <% communities.map(community => { %> + + #<%= community %> + + <% }) %> +
+ +<%- include('_footer') %> \ No newline at end of file diff --git a/app/views/community.ejs b/app/views/community.ejs new file mode 100644 index 0000000..8f5a04e --- /dev/null +++ b/app/views/community.ejs @@ -0,0 +1,28 @@ +<%- include('_header') %> + + +
+
+

#<%= community.name %>

+
+
+ +
+
+
+

Members

+ <%- include('_friends', { friends: community.members }) %> +
+
+

Posts

+ <%- include('_posts', { posts: community.posts }) %> +
+
+
+ +<%- include('_footer') %> \ No newline at end of file