thredded 0.14.3 → 0.14.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -5
- data/app/models/thredded/notifications_for_followed_topics.rb +3 -1
- data/app/views/thredded/shared/_currently_online.html.erb +2 -14
- data/app/views/thredded/shared/currently_online/_header.html.erb +5 -0
- data/app/views/thredded/shared/currently_online/_user_list.html.erb +3 -0
- data/app/views/thredded/shared/currently_online/_user_list_item.html.erb +6 -0
- data/lib/thredded/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b6ed8f98f2eb287346630ed8c6df83ce81edfd0f3ce918dcdb02841efd46590
|
4
|
+
data.tar.gz: 27a77b5767823d6c790cdc344efa10839241edd698714d1483620b5e317ed3ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24f2999aabccaa1a87faa5e4b2fefa611b86a8189e199d79e6e086df3d648244194c9c49c083dcd9f55dafff2eae8367bbedf87fc2d54a756170b441c0f1b65d
|
7
|
+
data.tar.gz: cf738f7f1f6354f97bb0fc54b0846b46a99d2047747e306049d03090761047b8cc17ff9a791c897cc5d0361b54ecdcdb45ffdecf0bd810b949d5298d4df861be
|
data/README.md
CHANGED
@@ -15,10 +15,6 @@ Some of the features currently in Thredded:
|
|
15
15
|
* Basic moderation.
|
16
16
|
* Lightweight default theme configurable via Sass.
|
17
17
|
|
18
|
-
<a href='https://pledgie.com/campaigns/27480'><img alt='Click here to lend your support to: Thredded and make a donation at pledgie.com !' src='https://pledgie.com/campaigns/27480.png?skin_name=chrome' border='0' ></a>
|
19
|
-
|
20
|
-
<img src="http://emoji.fileformat.info/gemoji/point_up.png" width="24"> If you are so inclined, donating to the project will help aid in its development
|
21
|
-
|
22
18
|
| ![Messageboards (Thredded v0.8.2)](https://cloud.githubusercontent.com/assets/216339/20338810/1fbc4240-abd1-11e6-9cba-4ae2e654c4d4.png) | ![Topics (Thredded v0.8.2)](https://cloud.githubusercontent.com/assets/216339/20338809/1fbb7dc4-abd1-11e6-9bc3-207b94018931.png) |
|
23
19
|
|:---:|:---:|
|
24
20
|
| ![Topic on iPhone 6 (Thredded v0.8.2)](https://cloud.githubusercontent.com/assets/216339/20338433/0920debc-abcf-11e6-811c-8f29d10dfed7.png) | ![Messageboard Preferences on iPhone 6 (Thredded v0.8.2)](https://cloud.githubusercontent.com/assets/216339/20338432/090e9c5c-abcf-11e6-8e7e-e287d31f6a54.png) |
|
@@ -98,7 +94,7 @@ Then, see the rest of this Readme for more information about using and customizi
|
|
98
94
|
Add the gem to your Gemfile:
|
99
95
|
|
100
96
|
```ruby
|
101
|
-
gem 'thredded', '~> 0.14.
|
97
|
+
gem 'thredded', '~> 0.14.4'
|
102
98
|
```
|
103
99
|
|
104
100
|
Add the Thredded [initializer] to your parent app by running the install generator.
|
@@ -5,7 +5,9 @@ module Thredded
|
|
5
5
|
belongs_to :user,
|
6
6
|
class_name: Thredded.user_class_name,
|
7
7
|
inverse_of: :thredded_notifications_for_followed_topics
|
8
|
-
belongs_to :messageboard
|
8
|
+
belongs_to :messageboard,
|
9
|
+
# If messageboard is `nil`, these are the global preferences.
|
10
|
+
**(Thredded.rails_gte_51? ? { optional: true } : {})
|
9
11
|
belongs_to :user_preference,
|
10
12
|
primary_key: :user_id,
|
11
13
|
foreign_key: :user_id,
|
@@ -1,18 +1,6 @@
|
|
1
1
|
<% if (users = active_users).present? %>
|
2
2
|
<aside data-thredded-currently-online class="thredded--currently-online">
|
3
|
-
|
4
|
-
|
5
|
-
<%= t "thredded.users.currently_online" %>
|
6
|
-
</h3>
|
7
|
-
</header>
|
8
|
-
|
9
|
-
<ul class="thredded--currently-online--users">
|
10
|
-
<% users.each do |user| %>
|
11
|
-
<li class="thredded--currently-online--user">
|
12
|
-
<img class="thredded--currently-online--avatar" src="<%= Thredded.avatar_url.call(user) %>" alt=""/>
|
13
|
-
<%= user.thredded_display_name %>
|
14
|
-
</li>
|
15
|
-
<% end %>
|
16
|
-
</ul>
|
3
|
+
<%= render 'thredded/shared/currently_online/header', users: users %>
|
4
|
+
<%= render 'thredded/shared/currently_online/user_list', users: users %>
|
17
5
|
</aside>
|
18
6
|
<% end %>
|
data/lib/thredded/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thredded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Oliveira
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pundit
|
@@ -947,6 +947,9 @@ files:
|
|
947
947
|
- app/views/thredded/shared/_header.html.erb
|
948
948
|
- app/views/thredded/shared/_nav.html.erb
|
949
949
|
- app/views/thredded/shared/_page.html.erb
|
950
|
+
- app/views/thredded/shared/currently_online/_header.html.erb
|
951
|
+
- app/views/thredded/shared/currently_online/_user_list.html.erb
|
952
|
+
- app/views/thredded/shared/currently_online/_user_list_item.html.erb
|
950
953
|
- app/views/thredded/shared/nav/_moderation.html.erb
|
951
954
|
- app/views/thredded/shared/nav/_notification_preferences.html.erb
|
952
955
|
- app/views/thredded/shared/nav/_private_topics.html.erb
|