From b56cc29fa4d4c3469baf2c4b03debd46f121db4f Mon Sep 17 00:00:00 2001 From: drusepth Date: Fri, 25 Nov 2022 21:42:11 -0800 Subject: [PATCH] wip from eod --- .../page_collections_controller.rb | 2 +- app/views/page_collections/show.html.erb | 269 ++++++++++++++++- app/views/stream/index.html.erb | 270 +++++++++--------- 3 files changed, 400 insertions(+), 141 deletions(-) diff --git a/app/controllers/page_collections_controller.rb b/app/controllers/page_collections_controller.rb index e6ea23f8..24908da0 100644 --- a/app/controllers/page_collections_controller.rb +++ b/app/controllers/page_collections_controller.rb @@ -7,7 +7,7 @@ class PageCollectionsController < ApplicationController before_action :set_page_collection, only: [:show, :edit, :by_user, :update, :destroy, :follow, :unfollow, :report] before_action :set_submittable_content, only: [:show, :by_user] - layout 'tailwind', only: [:index] + layout 'tailwind', only: [:index, :show] # GET /page_collections def index diff --git a/app/views/page_collections/show.html.erb b/app/views/page_collections/show.html.erb index 6b86981a..3dc7271a 100644 --- a/app/views/page_collections/show.html.erb +++ b/app/views/page_collections/show.html.erb @@ -1,3 +1,266 @@ +
+
+
+
+ <%= @page_collection.title %> +
+
+ <%= @page_collection.subtitle %> +
+
+
+ <% @page_collection.page_types.each do |submittable_class_name| %> + <% submittable_class = content_class_from_name(submittable_class_name) %> + <%# todo click on any to filter posts to just this type, hover effect %> + <%# todo tooltips %> + + <%= submittable_class.icon %> + + <% end %> +
+
+
+
+
+
+
+
+
About this Collection
+
+ <%= simple_format @page_collection.description %> +
+
+
+
+ +
+
+ + +
+

+ Follow this Collection to get a site notification each time something new is published! +

+
+ <%= link_to 'Follow', '#', class: "text-white #{PageCollection.color} py-2 px-4 rounded hover:shadow hover:bg-brown-500 transition" %> +
+
+
+
+
+ + + +
+

Published content

+ +
+ + + + + + + + + + + <%= content_for :full_width_page_header do %> <%= render partial: 'content/components/collection_header', locals: { collection: @page_collection } %> @@ -208,11 +471,7 @@
<%= f.hidden_field :page_collection_id, value: @page_collection.id %>
- <% @submittable_content.keys.each do |submittable_class_name| %> - <% submittable_class = content_class_from_name(submittable_class_name) %> - <%= submittable_class.icon %>   - <% end %> +

diff --git a/app/views/stream/index.html.erb b/app/views/stream/index.html.erb index fa7b8744..ad64e396 100644 --- a/app/views/stream/index.html.erb +++ b/app/views/stream/index.html.erb @@ -52,153 +52,153 @@

Shares from people you follow

- +