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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d45ce6a8edc50384836296852c639646640085479bf9f8d13735aba4d569ea6
4
- data.tar.gz: 3f376791971b8ae1750bedfcddf3400847c725974fd30b95d1bec2df7c2d034e
3
+ metadata.gz: 1b6ed8f98f2eb287346630ed8c6df83ce81edfd0f3ce918dcdb02841efd46590
4
+ data.tar.gz: 27a77b5767823d6c790cdc344efa10839241edd698714d1483620b5e317ed3ab
5
5
  SHA512:
6
- metadata.gz: 48d5b501e872df4b7bee32a4e5806d8417ea9afc097ff5a81657d2e74f51beb8589991a508fa5bf231b69e769533ccff5cf0ff0601cd920f644f1e68b231ba63
7
- data.tar.gz: 33b0ee0b1eeb45d867fb82883eb0a5b55a578bd1a58ada3789aa5507c6e9384d72a67a4ac4cb26b988645eb49402d1fef51f37b9f27a72966738ed97d56c1444
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.3'
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 # or is global
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
- <header>
4
- <h3 class="thredded--currently-online--title open">
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 %>
@@ -0,0 +1,5 @@
1
+ <header>
2
+ <h3 class="thredded--currently-online--title open">
3
+ <%= t "thredded.users.currently_online" %>
4
+ </h3>
5
+ </header>
@@ -0,0 +1,3 @@
1
+ <ul class="thredded--currently-online--users">
2
+ <%= render partial: 'thredded/shared/currently_online/user_list_item', collection: users, as: :user %>
3
+ </ul>
@@ -0,0 +1,6 @@
1
+ <li class="thredded--currently-online--user">
2
+ <a class="thredded--link" href="<%= user_path(user) %>">
3
+ <img class="thredded--currently-online--avatar" src="<%= Thredded.avatar_url.call(user) %>" alt=""/>
4
+ <%= user.thredded_display_name %>
5
+ </a>
6
+ </li>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Thredded
4
- VERSION = '0.14.3'
4
+ VERSION = '0.14.4'
5
5
  end
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.3
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-03-20 00:00:00.000000000 Z
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