diff --git a/app/assets/stylesheets/thredded-overrides.scss b/app/assets/stylesheets/thredded-overrides.scss index c9605c50..50052e80 100644 --- a/app/assets/stylesheets/thredded-overrides.scss +++ b/app/assets/stylesheets/thredded-overrides.scss @@ -6,8 +6,20 @@ padding-left: 16px; } + .thredded--navigation-breadcrumbs { + overflow: hidden; + max-height: 60px; + } + .thredded--user-navigation { - height: 64px; + height: 70px; + + margin-top: 10px; + margin-right: 10px; + + .thredded--user-navigation--item a { + padding: 0; + } } .thredded--currently-online { diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 7051c3a7..0526038e 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -24,7 +24,7 @@ class RegistrationsController < Devise::RegistrationsController def account_update_params params.require(:user).permit( :name, :email, :username, :password, :password_confirmation, :email_updates, :fluid_preference, - :bio, :favorite_genre, :favorite_author, :interests, :age, :location, :gender + :bio, :favorite_genre, :favorite_author, :interests, :age, :location, :gender, :forums_badge_text ) end diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index a451cd62..bdcac941 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -78,6 +78,7 @@ class UsersController < ApplicationController private def user_params + # todo is this used anywhere? params.permit(:id, :username) end end diff --git a/app/jobs/document_mention_job.rb b/app/jobs/document_mention_job.rb index 52c4cd5c..94b141a7 100644 --- a/app/jobs/document_mention_job.rb +++ b/app/jobs/document_mention_job.rb @@ -8,6 +8,7 @@ class DocumentMentionJob < ApplicationJob document = Document.find(document_id) return unless document.present? + return if document.body.nil? || document.body.empty? analysis = Documents::Analysis::DocumentAnalysisService.create_placeholder_analysis(document) diff --git a/app/models/users/user.rb b/app/models/users/user.rb index c7e39d4e..56c1aaa6 100644 --- a/app/models/users/user.rb +++ b/app/models/users/user.rb @@ -17,6 +17,11 @@ class User < ApplicationRecord allow_blank: true, length: { maximum: 40 }, format: /\A[A-Za-z0-9\-_\$\+\!\*]+\z/ + + validates :forums_badge_text, + allow_nil: true, + allow_blank: true, + length: { maximum: 20 } has_many :subscriptions, dependent: :destroy has_many :billing_plans, through: :subscriptions diff --git a/app/views/devise/registrations/panes/_information.html.erb b/app/views/devise/registrations/panes/_information.html.erb index bf1e3dab..920d0174 100644 --- a/app/views/devise/registrations/panes/_information.html.erb +++ b/app/views/devise/registrations/panes/_information.html.erb @@ -45,6 +45,16 @@ + +
- To celebrate the launch of our three new Premium pages, - you can now create as many School pages as you'd like during the month of June! + Premium users can now analyze their documents — and the characters within them — for readability, style, and emotion with IBM Watson's AI. +
++ Learn more at our blog post below:
@@ -86,7 +86,7 @@ body {
@@ -131,7 +131,7 @@ body {
@@ -174,9 +174,9 @@ body {
Having an in-depth reference while developing your game lets you quickly look up even the smallest of details when you need them and keep working uninterrupted. You'll never again have to flip backward to find out what quest rewards should be, or exactly how @@ -201,7 +201,7 @@ body {
@@ -236,7 +236,7 @@ body {
@@ -253,7 +253,7 @@ body {
Creating core notebook pages (universes, characters, locations, and items) is free and doesn't require any payment information to start creating your novel's world immediately upon signup. Free users, however, @@ -376,12 +376,12 @@ body { Additionally, a Premium subscription also increases your image upload storage from 50MB to 10GB.
@@ -86,7 +86,7 @@ body {
@@ -130,7 +129,7 @@ body {
@@ -172,7 +171,7 @@ body {
@@ -198,7 +197,7 @@ body {
@@ -233,7 +232,7 @@ body {
@@ -258,7 +257,7 @@ body {
Creating core notebook pages (universes, characters, locations, and items) is free and doesn't require any payment information to start creating your novel's world immediately upon signup. Free users, however, @@ -381,12 +380,12 @@ body { Additionally, a Premium subscription also increases your image upload storage from 50MB to 10GB.
@@ -81,12 +81,12 @@ body { items for any relevant objects or trinkets in your story.
- Once you've got the basics, just expand outward for your story! Right now, there are nine different page types you can - create in Notebook.ai. + Once you've got the basics, just expand outward for your story! Right now, there are <%= Rails.application.config.content_types[:all_non_universe].count %> different page types you can + create in Notebook.ai: <%= Rails.application.config.content_types[:all_non_universe].map { |t| t.name.downcase.pluralize }.to_sentence %>.
@@ -129,7 +129,7 @@ body {
@@ -164,7 +164,7 @@ body {
@@ -189,7 +189,7 @@ body {
@@ -224,7 +224,7 @@ body {
@@ -249,7 +249,7 @@ body {
- <%= t('marketing.landing_page.benefits.yours.text') %> + <%= t('marketing.landing_page.benefits.ads.text') %>
Creating core notebook pages (universes, characters, locations, and items) is free and doesn't require any payment information to start creating your novel's world immediately upon signup. Free users, however, @@ -374,12 +374,12 @@ body { Additionally, a Premium subscription also increases your image upload storage from 50MB to 10GB.
- <%= t('marketing.landing_page.benefits.speed.text') %> + <%= t('marketing.landing_page.benefits.backups.text') %>
- <%= t('marketing.landing_page.benefits.continuity.text') %> + <%= t('marketing.landing_page.benefits.ads.text') %>
- <%= t('marketing.landing_page.benefits.items.text') %> + <%= t('marketing.landing_page.benefits.continuity.text') %>
- <%= t('marketing.landing_page.benefits.backups.text') %> -
-- <%= t('marketing.landing_page.benefits.yours.text') %> + <%= t('marketing.landing_page.benefits.speed.text') %> +
++ <%= t('marketing.landing_page.benefits.quality.text') %>