-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Muda status da notificação para "clicked" ao ser clicada -Muda status da notificação para "seen" ao acessar página de notificações Co-authored-by: ana resgalla <[email protected]>
- Loading branch information
1 parent
826608b
commit 0b8170e
Showing
16 changed files
with
145 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<%= link_to notification.notifiable.user.full_name, profile_path(notification.notifiable.user.profile) %> comentou em sua publicação: <%= link_to notification.notifiable.post.title, post_path(notification.notifiable.post) %> | ||
<%= notification.notifiable.user.full_name %> comentou em sua publicação: <%= notification.notifiable.post.title %> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
<%= link_to notification.notifiable.follower.user.full_name, profile_path(notification.notifiable.follower) %> começou a te seguir | ||
<%= notification.notifiable.follower.full_name %> começou a te seguir |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Você recebeu um convite para <%= link_to notification.notifiable.project_title, invitation_path(notification.notifiable) %> | ||
Você recebeu um convite para <%= notification.notifiable.project_title %> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<% if notification.notifiable.likeable.is_a?Post %> | ||
<%= link_to notification.notifiable.user.full_name, profile_path(notification.notifiable.user.profile) %> curtiu sua publicação | ||
<%= notification.notifiable.user.full_name %> curtiu sua publicação | ||
<% else %> | ||
<%= link_to notification.notifiable.user.full_name, profile_path(notification.notifiable.user.profile) %> curtiu seu comentário | ||
<%= notification.notifiable.user.full_name %> curtiu seu comentário | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<%= notification.notifiable.user.full_name %> fez uma <%= link_to 'publicação', post_path(notification.notifiable) %> | ||
<%= notification.notifiable.user.full_name %> fez uma publicação |
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<div class="container d-flex flex-column align-items-center"> | ||
<h2>Notificações</h2> | ||
<% if @notifications&.any? %> | ||
<h2><%= Notification.model_name.human(count: 2) %></h2> | ||
<% if @notifications.any? %> | ||
<ul class="list-group list-group-flush"> | ||
<% @notifications.each do |notification| %> | ||
<li class="list-group-item"> | ||
<%= render( | ||
partial: "#{notification.notifiable.class.name.downcase}" , | ||
locals: { notification: notification } | ||
)%> | ||
há <%= distance_of_time_in_words_to_now(notification.notifiable.created_at) %> | ||
<li class="list-group-item <%= 'list-group-item-primary' if notification.seen? %> "> | ||
<%= button_to notification_path(notification), method: :patch, class: 'btn btn-link' do %> | ||
<%= render( partial: "#{notification.notifiable.class.name.downcase}", | ||
locals: { notification: notification } ) %> | ||
há <%= distance_of_time_in_words_to_now(notification.notifiable.created_at) %> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
<% else %> | ||
<p>Nenhuma notificação encontrada</p> | ||
<p><%= t('notifications.no_notifications') %></p> | ||
<% end %> | ||
</div> |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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