Adds notification menu and message for empty notifications
This commit is contained in:
@@ -2,13 +2,6 @@
|
|||||||
<section class="comments">
|
<section class="comments">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div id="comments" class="small-12 column">
|
<div id="comments" class="small-12 column">
|
||||||
<% if @notifications.blank? %>
|
|
||||||
<h2>
|
|
||||||
<%= t("proposals.show.comments_title") %>
|
|
||||||
<span class="js-comments-count">(<%= @proposal.comments_count %>)</span>
|
|
||||||
</h2>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render 'shared/wide_order_selector', i18n_namespace: "comments" %>
|
<%= render 'shared/wide_order_selector', i18n_namespace: "comments" %>
|
||||||
|
|
||||||
<% if user_signed_in? %>
|
<% if user_signed_in? %>
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
<div class="tabs-panel" id="tab-notifications">
|
<div class="tabs-panel" id="tab-notifications">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 column">
|
<div class="small-12 column">
|
||||||
|
<% if @notifications.blank? %>
|
||||||
|
<div class="callout primary text-center">
|
||||||
|
<%= t('proposals.show.no_notifications') %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% @notifications.each do |notification| %>
|
<% @notifications.each do |notification| %>
|
||||||
<h3><%= notification.title %></h3>
|
<h3><%= notification.title %></h3>
|
||||||
<p class="more-info"><%= notification.created_at.to_date %></p>
|
<p class="more-info"><%= notification.created_at.to_date %></p>
|
||||||
|
|||||||
@@ -124,10 +124,8 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="tabs-content" data-tabs-content="example-tabs">
|
<div class="tabs-content" data-tabs-content="example-tabs">
|
||||||
<% if @notifications.present? %>
|
|
||||||
<%= render "proposals/filter_subnav" %>
|
<%= render "proposals/filter_subnav" %>
|
||||||
<%= render "proposals/notifications" %>
|
<%= render "proposals/notifications" %>
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<div class="tabs-panel is-active" id="tab-comments">
|
<div class="tabs-panel is-active" id="tab-comments">
|
||||||
<%= render "proposals/comments" %>
|
<%= render "proposals/comments" %>
|
||||||
|
|||||||
@@ -356,7 +356,6 @@ en:
|
|||||||
other: "%{count} comments"
|
other: "%{count} comments"
|
||||||
zero: No comments
|
zero: No comments
|
||||||
comments_tab: Comments
|
comments_tab: Comments
|
||||||
comments_title: Comments
|
|
||||||
edit_proposal_link: Edit
|
edit_proposal_link: Edit
|
||||||
flag: This proposal has been flagged as inappropriate by several users.
|
flag: This proposal has been flagged as inappropriate by several users.
|
||||||
login_to_comment: You must %{signin} or %{signup} to leave a comment.
|
login_to_comment: You must %{signin} or %{signup} to leave a comment.
|
||||||
@@ -366,6 +365,7 @@ en:
|
|||||||
retired: Proposal retired by the author
|
retired: Proposal retired by the author
|
||||||
share: Share
|
share: Share
|
||||||
send_notification: Send notification
|
send_notification: Send notification
|
||||||
|
no_notifications: "This proposal has any notifications."
|
||||||
update:
|
update:
|
||||||
form:
|
form:
|
||||||
submit_button: Save changes
|
submit_button: Save changes
|
||||||
|
|||||||
@@ -356,7 +356,6 @@ es:
|
|||||||
other: "%{count} Comentarios"
|
other: "%{count} Comentarios"
|
||||||
zero: Sin comentarios
|
zero: Sin comentarios
|
||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
comments_title: Comentarios
|
|
||||||
edit_proposal_link: Editar propuesta
|
edit_proposal_link: Editar propuesta
|
||||||
flag: Esta propuesta ha sido marcada como inapropiada por varios usuarios.
|
flag: Esta propuesta ha sido marcada como inapropiada por varios usuarios.
|
||||||
login_to_comment: Necesitas %{signin} o %{signup} para comentar.
|
login_to_comment: Necesitas %{signin} o %{signup} para comentar.
|
||||||
@@ -366,6 +365,7 @@ es:
|
|||||||
retired: Propuesta retirada por el autor
|
retired: Propuesta retirada por el autor
|
||||||
send_notification: Enviar notificación
|
send_notification: Enviar notificación
|
||||||
share: Compartir
|
share: Compartir
|
||||||
|
no_notifications: "Esta propuesta no tiene notificaciones."
|
||||||
update:
|
update:
|
||||||
form:
|
form:
|
||||||
submit_button: Guardar cambios
|
submit_button: Guardar cambios
|
||||||
|
|||||||
Reference in New Issue
Block a user