-
+ <%= render('thredded/redesigned/breadcrumbs') %>
+
diff --git a/Gemfile b/Gemfile
index c675b26c..c892e9aa 100644
--- a/Gemfile
+++ b/Gemfile
@@ -73,8 +73,8 @@ gem 'barnes'
#gem 'levenshtein-ffi'
# Forum
-gem 'thredded', git: 'https://github.com/indentlabs/thredded.git', branch: 'feature/report-posts'
-# gem 'thredded', path: "../thredded"
+# gem 'thredded', git: 'https://github.com/indentlabs/thredded.git', branch: 'feature/report-posts'
+gem 'thredded', path: "../thredded"
# gem 'thredded'
# gem 'thredded', git: 'https://github.com/sudara/thredded', branch: 'master'
diff --git a/Gemfile.lock b/Gemfile.lock
index 223dfabb..1d65eb75 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -24,10 +24,8 @@ GIT
specs:
serendipitous (0.0.2)
-GIT
- remote: https://github.com/indentlabs/thredded.git
- revision: edd58a785cd18fb2d7967c1f74aeaa92d3d82fbd
- branch: feature/report-posts
+PATH
+ remote: ../thredded
specs:
thredded (1.0.1)
active_record_union (>= 1.3.0)
@@ -1349,14 +1347,14 @@ GEM
flamegraph (0.9.5)
font-awesome-rails (4.7.0.8)
railties (>= 3.2, < 8.0)
- friendly_id (5.4.2)
+ friendly_id (5.5.0)
activerecord (>= 4.0.0)
globalid (1.0.0)
activesupport (>= 5.0)
haml (5.2.2)
temple (>= 0.8.0)
tilt
- html-pipeline (2.14.2)
+ html-pipeline (2.14.3)
activesupport (>= 2)
nokogiri (>= 1.4)
htmlentities (4.3.4)
@@ -1418,9 +1416,6 @@ GEM
language_filter (0.3.01)
libv8-node (16.10.0.0)
libv8-node (16.10.0.0-x86_64-linux)
- listen (3.7.1)
- rb-fsevent (~> 0.10, >= 0.10.3)
- rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.18.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
@@ -1545,9 +1540,6 @@ GEM
rake (>= 12.2)
thor (~> 1.0)
rake (13.0.6)
- rb-fsevent (0.11.0)
- rb-inotify (0.10.1)
- ffi (~> 1.0)
react-rails (2.6.2)
babel-transpiler (>= 0.7.0)
connection_pool
diff --git a/app/assets/stylesheets/thredded-overrides.scss b/app/assets/stylesheets/thredded-overrides.scss
index 928cf365..5a937862 100644
--- a/app/assets/stylesheets/thredded-overrides.scss
+++ b/app/assets/stylesheets/thredded-overrides.scss
@@ -1,232 +1,9 @@
@import "thredded";
-#thredded--container {
- .thredded--navigation--search {
-
- #q /* search input */ {
- padding-left: 16px;
- margin-top: 4.5em;
- }
-
- @media only screen and (min-width: 600px) {
- #q /* search input */ {
- height: 17px;
- margin-top: 0;
- }
- }
- }
-
- .thredded--navigation-breadcrumbs {
- margin-top: 0.4em;
- padding-left: 0.1em;
- overflow: hidden;
- min-height: 3em;
- max-height: 60px;
-
- width: 50%;
-
- li {
- display: inline !important;
- float: left;
- padding-right: 4px;
- margin-right: 8px;
- }
-
- li a {
- padding: 0;
- line-height: 2rem;
- }
- }
-
- .thredded--scoped-navigation {
- left: 1rem;
- top: 1rem;
- }
-
- .thredded--scoped-navigation li a {
- padding: 0;
- line-height: 2rem;
- float: left;
- }
-
- .thredded--user-navigation {
- height: 2rem;
- margin: 1rem;
- border-bottom: 0;
-
- @media only screen and (max-width: 600px) {
- .thredded--user-navigation--item {
- padding-top: 0.5rem;
- padding-right: 0.5rem;
- }
- }
-
- .thredded--user-navigation--item a {
- padding: 8px 4px;
- line-height: 2rem;
- }
- }
-
- @media only screen and (max-width: 600px) {
- .thredded--user-navigation {
- margin: 0;
- }
- }
-
- .thredded--post--user {
- color: black;
-
- a {
- color: #347a36;
- }
- }
-
- .thredded--currently-online {
- right: 100px;
- max-height: 80%;
- overflow-y: hidden;
- overflow-x: hidden;
- border: 1px solid lightgrey;
- }
-
- .thredded--currently-online.thredded--is-expanded {
- overflow-y: auto;
- overflow-x: hidden;
- }
-
- .thredded--new-topic-form {
- background: white;
- padding: 10px;
- padding-bottom: 0;
- border: 1px solid lightgrey;
-
- margin-bottom: 20px;
- }
-
- .thredded--topics--topic {
- background: white;
- padding: 4px 26px;
- border: 1px solid lightgrey;
-
- margin-bottom: 0.7rem;
- }
-
- .thredded--topics--posts-count {
- left: -1rem;
- top: 2px;
- }
-
- .thredded--topics--follow-icon {
- right: 0.2rem;
- top: 6px;
- }
-
- .thredded--pagination {
- background: white;
- padding: 0 0 10px 0;
- }
-
- .thredded--topic .thredded--post {
- background: white;
- padding: 10px;
-
- margin-bottom: 20px;
- border-bottom: 1px solid lightgrey;
- }
-
- @media (min-width: 47.12501rem) {
- .thredded--post--avatar {
- top: 0;
- }
- }
-
- .thredded--messageboard {
- background: white;
- border-bottom: 1px solid lightgrey;
- margin: 2px;
- }
+.thredded--topic-header--follow-info--follow {
+ position: static !important;
}
-.thredded--main-header {
- nav {
- background: white;
-
- margin-bottom: 4rem;
- line-height: 3rem;
- }
-
-
- @media only screen and (min-width: 600px) {
- nav {
- height: 3rem;
- }
- }
-}
-
-.thredded--topic-header {
- .thredded--topic-header--title {
- margin-bottom: 0.4em;
- }
-}
-
-.thredded--main-container {
- // The padding and max-width are handled by the app's container.
- min-width: 80%;
- padding: 0;
- @include thredded-media-tablet-and-up {
- padding: 0;
- }
-}
-
-.thredded--form {
- input[type="checkbox"] {
- position: relative !important;
- opacity: 1 !important;
- pointer-events: inherit !important;
- }
-}
-
-.thredded--messageboard--byline {
- i.material-icons {
- font-size: 0.9em;
- color: grey;
- }
-}
-
-.thredded--post--content {
- padding-top: 0.6em !important;
-
- ul {
- list-style-type: inherit !important;
- padding-left: 40px !important;
-
- li {
- list-style-type: disc !important;
- }
- }
- ol {
- list-style-type: inherit !important;
- padding-left: 40px !important;
-
- li {
- list-style-type: decimal !important;
- }
- }
-}
-
-.muted-thredded-post {
- color: #616161;
- background-color: #f5f5f5 !important;
- border-bottom: 0 !important;
-}
-
-.thredded--post {
- .card-content {
- padding: 0 !important;
- padding-top: 5px !important;
- }
-}
-.thredded--topic-delete--wrapper {
- margin-top: 0.5rem !important;
- padding-top: 1rem !important;
+.thredded--topic-header--follow-info--unfollow {
+ position: static !important;
}
diff --git a/app/controllers/document_analyses_controller.rb b/app/controllers/document_analyses_controller.rb
index e36a0ccb..3247a28c 100644
--- a/app/controllers/document_analyses_controller.rb
+++ b/app/controllers/document_analyses_controller.rb
@@ -1,16 +1,18 @@
class DocumentAnalysesController < ApplicationController
- before_action :authenticate_user!
- before_action :set_document
- before_action :authorize_user_for_document
- before_action :set_document_analysis
+ before_action :authenticate_user!, except: [:index]
+ before_action :set_document, except: [:index]
+ before_action :authorize_user_for_document, except: [:index]
+ before_action :set_document_analysis, except: [:index]
before_action :set_navbar_color
before_action :set_sidenav_expansion
- before_action :set_navbar_actions
+ # before_action :set_navbar_actions
- # def index
- # @document_analyses = DocumentAnalysis.all
- # end
+ layout 'tailwind', only: [:index]
+
+ def index
+ @document_analyses = DocumentAnalysis.all
+ end
def show
@navbar_actions = [] unless @analysis.present?
diff --git a/app/models/documents/document_analysis.rb b/app/models/documents/document_analysis.rb
index 6d8ee407..df3276ff 100644
--- a/app/models/documents/document_analysis.rb
+++ b/app/models/documents/document_analysis.rb
@@ -32,4 +32,8 @@ class DocumentAnalysis < ApplicationRecord
def self.text_color
'text-orange-500'
end
+
+ def self.color
+ 'bg-orange-500'
+ end
end
\ No newline at end of file
diff --git a/app/views/document_analyses/index.html.erb b/app/views/document_analyses/index.html.erb
new file mode 100644
index 00000000..cfa30457
--- /dev/null
+++ b/app/views/document_analyses/index.html.erb
@@ -0,0 +1,263 @@
+
+ Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo. Elit sunt amet fugiat veniam occaecat fugiat aliqua.
+ All-in-one report
+ Be a better editor with a little help from our experienced AI. Improve your story by making your own decisions using actionable data.
+
+ It's a great way to tackle a first round of edits before using a human editor, too!
+ Invite team members List view Keyboard shortcuts Calendars Notifications Boards Reporting Mobile app Semper curabitur ullamcorper posuere nunc sed. Ornare iaculis bibendum malesuada faucibus lacinia porttitor. Pulvinar laoreet sagittis viverra duis. In venenatis sem arcu pretium pharetra at. Lectus viverra dui tellus ornare pharetra.
+ “I always do a few rounds of AI editing before submitting to a human editor. Knocking out all the low-hanging fruit lets them focus on big-picture edits.”
+ Semper curabitur ullamcorper posuere nunc sed. Ornare iaculis bibendum malesuada faucibus lacinia porttitor. Pulvinar laoreet sagittis viverra duis. In venenatis sem arcu pretium pharetra at. Lectus viverra dui tellus ornare pharetra.
+ Start your editing off right with powerful
+ AI analysis
+
+ Everything you need
+
+
+ Stay on top of customer support
+
+
+
+ Better understand your customers
+
+
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Repellendus repellat laudantium.
+