diff --git a/app/views/cards/serendipitous/_tailwind_content_question.html.erb b/app/views/cards/serendipitous/_tailwind_content_question.html.erb index 01dedae1..7e06ff91 100644 --- a/app/views/cards/serendipitous/_tailwind_content_question.html.erb +++ b/app/views/cards/serendipitous/_tailwind_content_question.html.erb @@ -1,4 +1,7 @@ <% + # DEPRECATED: This partial has been merged into app/views/main/components/_serendipitous_question.html.erb + # and is no longer used. It's kept here temporarily for reference. + # # Partial locals: `content` to ask a question about, and `field` for the field being questioned include_quick_reference = defined?(include_quick_reference) && !!include_quick_reference %> diff --git a/app/views/main/components/_recently_edited_pages.html.erb b/app/views/main/components/_recently_edited_pages.html.erb index 8fdd0604..e7fd8ee1 100644 --- a/app/views/main/components/_recently_edited_pages.html.erb +++ b/app/views/main/components/_recently_edited_pages.html.erb @@ -21,12 +21,6 @@ schedule edited <%= time_ago_in_words page.updated_at %> ago - <% if page.cached_word_count.present? %> - - description - <%= number_with_delimiter page.cached_word_count %> words - - <% end %> <% if page.respond_to?(:favorite?) && page.favorite? %> star <% end %> diff --git a/app/views/main/components/_serendipitous_question.html.erb b/app/views/main/components/_serendipitous_question.html.erb index bfef7836..f669588b 100644 --- a/app/views/main/components/_serendipitous_question.html.erb +++ b/app/views/main/components/_serendipitous_question.html.erb @@ -1,4 +1,4 @@ -<% if @content %> +<% if @content && @attribute_field_to_question %>
@@ -27,39 +27,109 @@
-
- <% if @attribute_field_to_question %> - <%= render partial: 'cards/serendipitous/tailwind_content_question', locals: { - content: @content, - field: @attribute_field_to_question, - expand_by_default: true, - include_quick_reference: false - } %> - - - - - <% end %> +
+
+ <%= @content.icon %> + + Your answer will be automatically saved to your + <%= @content.name %> + <%= @content.page_type.downcase %> page. + +
+ + <% end %> +
<% end %> \ No newline at end of file diff --git a/app/views/main/dashboard.html.erb b/app/views/main/dashboard.html.erb index b0571867..08ab7915 100644 --- a/app/views/main/dashboard.html.erb +++ b/app/views/main/dashboard.html.erb @@ -64,15 +64,17 @@
-
-
-
-

New Something

-

This is a little notice box about what's new. I can fit about 2 lines before I feel bad.

-
- <%= link_to 'Dismiss', '#', class: 'text-blue-600 hover:text-blue-700 font-medium text-xs' %> +
+ <%= link_to '#' do %> +
+
+

New Something

+

This is a little notice box about what's new. I can fit about 2 lines before I feel bad.

+ <% end %> +
+ <%= link_to 'Dismiss this notice', '#', class: 'text-gray-400 hover:text-notebook-blue font-medium text-xs' %>
@@ -112,9 +114,6 @@ library_books Most-Edited Pages - <%= link_to recent_content_path, class: "text-sm text-blue-600 hover:text-blue-700 font-medium" do %> - View more → - <% end %>