-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/redesign' into develop
* feature/redesign: Add ability to select messages by click Different colors for users in chat Change date style Different style for system and normal messages Mark system telegram messages in rake task Add is_system to telegram messages Add photos with author initials Redesign telegram messages
- Loading branch information
Showing
9 changed files
with
222 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<% if message.is_system? %> | ||
<div class="telegram-system-message"> | ||
<span class="telegram-message-author <%= "user-color-#{color_number_for_user(message.user_id)}" %>"> | ||
<%= message.author_name %> | ||
</span> | ||
<span><%= message.message %></div> | ||
</div> | ||
<% else %> | ||
<div class="telegram-message" data-sent-at=<%= message.sent_at.to_i %>> | ||
<%= check_box_tag 'telegram_message_ids[]', message.id, false, class: "telegram-message-checkbox" %> | ||
<time><%= format_time message.sent_at, false %></time> | ||
<div class="telegram-author-photo <%= "user-bgcolor-#{color_number_for_user(message.user_id)}" %>"> | ||
<span> | ||
<%= message.author_initials %> | ||
</span> | ||
</div> | ||
<div class="telegram-message-body"> | ||
<span class="telegram-message-author <%= "user-color-#{color_number_for_user(message.user_id)}" %>"> | ||
<%= message.author_name %> | ||
</span> | ||
<div class="telegram-message-text"> | ||
<%= message.message %> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddIsSystemToTelegramMessage < ActiveRecord::Migration | ||
def change | ||
add_column :telegram_messages, :is_system, :boolean, default: false | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters