diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index 6a797873..ed213598 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -37,6 +37,7 @@ class MainController < ApplicationController end def table_of_contents + @serialized_content = ContentSerializer.new(@universe_scope) end def infostack diff --git a/app/models/serializers/content_serializer.rb b/app/models/serializers/content_serializer.rb index 5238ce46..5a9684d0 100644 --- a/app/models/serializers/content_serializer.rb +++ b/app/models/serializers/content_serializer.rb @@ -8,7 +8,7 @@ class ContentSerializer attr_accessor :documents attr_accessor :raw_model - attr_accessor :class_name, :class_color, :class_icon + attr_accessor :class_name, :class_color, :class_text_color, :class_icon attr_accessor :data # name: 'blah, @@ -39,6 +39,7 @@ class ContentSerializer self.class_name = content.class.name self.class_color = content.class.color + self.class_text_color = content.class.text_color self.class_icon = content.class.icon self.page_tags = content.page_tags.pluck(:tag) || [] diff --git a/app/views/main/table_of_contents.html.erb b/app/views/main/table_of_contents.html.erb index 36a10807..a0c3ff40 100644 --- a/app/views/main/table_of_contents.html.erb +++ b/app/views/main/table_of_contents.html.erb @@ -79,7 +79,526 @@
-

42 characters

+

+ + <%= link_to @universe_scope.name, @universe_scope %> + + + by + + <%= link_to @universe_scope.user.display_name, @universe_scope.user %> + + +

+
+ + + +
+
+
+ + + +
+
+ + <%# @serialized_content.data[:categories].inspect %> + <% @serialized_content.data[:categories].each do |category| %> +
+
+

+ <%= category[:icon] %> + <%= category[:label] %> +

+

+ <%= category[:percent_complete] %>% complete +

+
+ +
+ <% category[:fields].each do |field| %> +
+
+ +
+
+ <%= field[:value] %> +
+ <%= field.inspect %> +
+ +
    +
  • <%= link_to 'Edit', '#' %>
  • +
  • <%= link_to 'Revise', '#' %>
  • +
+
+
+ <% end %> +
+
+ <% end %> + + + + +
+
+

Profile

+

This information will be displayed publicly so be careful what you share.

+
+ +
+
+ +
+
+ workcation.com/ + +
+
+
+ +
+ +
+ +

Write a few sentences about yourself.

+
+
+ +
+ +
+
+ + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +

or drag and drop

+
+

PNG, JPG, GIF up to 10MB

+
+
+
+
+
+
+ +
+
+

Personal Information

+

Use a permanent address where you can receive mail.

+
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+
+
+ +
+
+

Notifications

+

We'll always let you know about important changes, but you pick what else you want to hear about.

+
+
+
+
+
+
+
By Email
+
+
+
+
+
+ +
+
+ +

Get notified when someones posts a comment on a posting.

+
+
+
+
+
+ +
+
+ +

Get notified when a candidate applies for a job.

+
+
+
+
+
+
+ +
+
+ +

Get notified when a candidate accepts or rejects an offer.

+
+
+
+
+
+
+
+
+
+
+
+
+
Push Notifications
+
+
+
+

These are delivered via SMS to your mobile phone.

+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+
+
+
+
+
+ +
+
+ + +
+
+
+ + +
+ + +
+
+ + +
+ + Create page + +
+ +
+

Recent Activity

+
+
+
    + + <% 4.times do %> + +
  • +
    + +
    +
    +

    John Cena

    +

    1h

    +
    +

    + Character updated by <%= link_to current_user.display_name, current_user, class: "group-hover:#{User.text_color}" %>. +

    +
    +
    +
  • + + <% end %> + + +
+ + +
+

Contributors

+
+ +
+
+ Emily Selman + + Kristin Watson + + Emma Dorsey +
+
+
+
+
+ + + +
+ +
+ +
+ +
+
+
+
+
+ +
+
+ <%= link_to @universe_scope do %> + <%= image_tag @universe_scope.random_image_including_private, class: 'rounded-lg' %> + <% end %> +
+
+
<%= link_to @universe_scope.name, @universe_scope %>
+ <%= link_to @universe_scope.user, class: 'group flex items-center text-xs' do %> + <%= User.icon %> + <%= @universe_scope.user.display_name %> + <% end %> +
+
+ +
+

In this universe

+ + + + + +
+
+ +
+
+ + + 15,323 words +
+
+ + + 7 documents +
+
+ + + Premium universe +
+
+
+
+
+
+ + +
+
+
+

+ 42 characters in + + <%= link_to @universe_scope.name, @universe_scope %> + +