Adding default welcome message, default opening messages body while no commentaires
This commit is contained in:
parent
c03de66137
commit
94373094fa
6 changed files with 25 additions and 6 deletions
|
@ -6,6 +6,10 @@ function init_default_data_block() {
|
|||
$('.default_data_block #dossier .carret-right').toggle();
|
||||
$('.default_data_block #dossier .carret-down').toggle();
|
||||
|
||||
if ($('.default_data_block #messages .commentaires').length == 0) {
|
||||
$('.default_data_block #messages .body').toggle();
|
||||
}
|
||||
|
||||
$('.default_data_block .title').click(function () {
|
||||
toggle_default_data_bloc(this, 400);
|
||||
});
|
||||
|
|
|
@ -14,6 +14,11 @@
|
|||
overflow-y: scroll;
|
||||
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.075) 0%, rgba(219, 219, 219, 0) 50%, rgba(250, 251, 253, 0.18) 51%, #ffffff 100%);
|
||||
}
|
||||
.no-commentaires {
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
}
|
||||
.last-commentaire, .commentaire {
|
||||
padding: 20px 0 0 20px;
|
||||
|
|
|
@ -11,9 +11,13 @@
|
|||
- message_count = @facade.commentaires.count
|
||||
= (message_count == 1) ? "1 message" : "#{message_count} messages"
|
||||
%div.body
|
||||
%div.commentaires
|
||||
- @facade.commentaires.object.sort.each do |commentaire|
|
||||
= render partial: commentaire
|
||||
- unless @facade.commentaires.empty?
|
||||
%div.commentaires
|
||||
- @facade.commentaires.object.sort.each do |commentaire|
|
||||
= render partial: commentaire
|
||||
- else
|
||||
%div.no-commentaires
|
||||
= t("utils.no-commentaires")
|
||||
.row
|
||||
.col-lg-12.col-md-12
|
||||
%div.split-hr
|
||||
|
|
|
@ -11,9 +11,13 @@
|
|||
- message_count = @facade.commentaires.count
|
||||
= (message_count == 1) ? "1 message" : "#{message_count} messages"
|
||||
%div.body
|
||||
%div.commentaires
|
||||
- @facade.commentaires.object.sort.each do |commentaire|
|
||||
= render partial: commentaire
|
||||
- unless @facade.commentaires.empty?
|
||||
%div.commentaires
|
||||
- @facade.commentaires.object.sort.each do |commentaire|
|
||||
= render partial: commentaire
|
||||
- else
|
||||
%div.no-commentaires
|
||||
= t("utils.no-commentaires")
|
||||
.row
|
||||
.col-lg-12.col-md-12
|
||||
%div.split-hr
|
||||
|
|
|
@ -24,3 +24,4 @@ en:
|
|||
utils:
|
||||
deconnexion: "Logout"
|
||||
involved: "See concerned people"
|
||||
no-commentaires: "There is no message yet, feel free to start the first one."
|
||||
|
|
|
@ -23,6 +23,7 @@ fr:
|
|||
utils:
|
||||
deconnexion: "Déconnexion"
|
||||
involved: "Voir les personnes impliquées"
|
||||
no-commentaires: "Il n'y a aucun message dans le fil de discussion, n'hésitez pas à initier le premier."
|
||||
will_paginate:
|
||||
next_label: 'Suivant'
|
||||
previous_label: 'Précédent'
|
||||
|
|
Loading…
Reference in a new issue