effective_messaging 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/effective/chats/_chat_message.html.haml +4 -3
- data/app/views/effective/chats/_form.html.haml +3 -12
- data/app/views/effective/chats/_summary.html.haml +9 -17
- data/config/locales/effective_messaging.en.yml +1 -1
- data/lib/effective_messaging/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fe14923df11de2dddfd94f0abd846be5626d621e85f5161f6459fae12d1ca77
|
4
|
+
data.tar.gz: a22a0c35c235640bb941724b77d9b09080e58aeeb67866d628e9f76817ce4621
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a86a0a712ea702cdacfd4477eac7417f493626a398ddfce5b95466fba85ec905221426d1ef39b2045a3ed1182c3c7115590700df901f4ae6c5192bb1780b4038
|
7
|
+
data.tar.gz: b5a51b9d8c5510212d06973f91125c924ebe1c3fd54d16b5fbdaf4c63f1d744c1caddfe9c06b075513574d022e8dde26353af7b2b071b27146e60ad1962e3527
|
@@ -1,8 +1,9 @@
|
|
1
1
|
.effective-chat-message
|
2
2
|
.card
|
3
3
|
.card-header
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
.row
|
5
|
+
.col
|
6
|
+
%strong= chat_message.name
|
7
|
+
.col.text-right= chat_message.created_at.strftime("%b %e, %Y %k:%M")
|
7
8
|
.card-body
|
8
9
|
= simple_format(chat_message.body)
|
@@ -6,22 +6,13 @@
|
|
6
6
|
= render('effective/chats/summary', chat: chat)
|
7
7
|
= render(partial: 'effective/chats/chat_message', collection: chat.chat_messages, chat: chat)
|
8
8
|
|
9
|
-
- if chat.chat_messages.blank?
|
10
|
-
%p There are no #{etsd(chat.chat_messages)} so far. Please send one!
|
11
|
-
|
12
|
-
%hr
|
13
|
-
|
14
9
|
- chat_message = chat.build_chat_message(user: current_user)
|
15
10
|
- chat_user = chat.chat_user(user: current_user)
|
16
11
|
|
17
12
|
.card
|
18
|
-
.card-
|
19
|
-
= et('effective_messaging.send')
|
20
|
-
.card-body
|
21
|
-
%p Your name is displayed as <strong>#{chat_user.name}</strong>
|
22
|
-
|
13
|
+
.card-body.pb-0
|
23
14
|
= f.fields_for :chat_messages, chat_message do |fcm|
|
24
15
|
- # The user and name are set by controller's current_user
|
25
|
-
= fcm.text_area :body, required: true, label: '
|
16
|
+
= fcm.text_area :body, required: true, label: 'Message'
|
26
17
|
|
27
|
-
= f.submit et('effective_messaging.send')
|
18
|
+
= f.submit et('effective_messaging.send'), border: false
|
@@ -1,22 +1,14 @@
|
|
1
1
|
- current_chat_user = chat.chat_user(user: current_user)
|
2
2
|
- chat_users_count = chat.chat_users.count
|
3
3
|
|
4
|
-
|
5
|
-
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
A #{etd(chat)} with
|
4
|
+
- if chat.anonymous?
|
5
|
+
.alert.alert-danger.my-4
|
6
|
+
This is an anonymous #{etd(chat)}.
|
7
|
+
%strong Do not reveal any potentially personally identifying information
|
8
|
+
like your name or employer.
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
- else
|
14
|
-
= pluralize(chat_users_count, etd(chat.chat_users))
|
15
|
-
|
16
|
-
opened
|
17
|
-
= time_ago_in_words(chat.created_at)
|
18
|
-
ago on
|
19
|
-
= chat.created_at.strftime('%F')
|
10
|
+
%p
|
11
|
+
This #{etd(chat)} includes:
|
20
12
|
|
21
|
-
|
22
|
-
=
|
13
|
+
- if current_chat_user.present? && chat_users_count
|
14
|
+
= (chat.chat_users).map(&:name).to_sentence
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_messaging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|