From e003cf49c1e1f36d98971ec3554697fa9c22019c Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Sun, 28 Jun 2020 16:04:08 +0200 Subject: [PATCH] suite --- app/assets/stylesheets/public.scss | 24 +++++- app/views/admin/admin_auths/index.haml | 104 ++++++++++++++++++++++++- 2 files changed, 122 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/public.scss b/app/assets/stylesheets/public.scss index 1d916ea..2c49e33 100644 --- a/app/assets/stylesheets/public.scss +++ b/app/assets/stylesheets/public.scss @@ -1189,7 +1189,7 @@ body { position: relative; background-color: #fd0; p { - margin-bottom: 25px; + margin-bottom: 30px; } &:before { content: ''; @@ -1221,7 +1221,7 @@ body { width: 220px; display: inline-block; position: relative; - margin-top: 40px; + margin: 40px 0; } } p { @@ -10721,6 +10721,26 @@ a.sp-video { margin-top:-5px; } } + + .row2 { + .block_intro{ + img{margin:0;} + .right_intro a{ + margin-bottom:20px; + } + } + .block_intro:nth-child(2) { + img{ + position:static !important; + margin:0; + } + } + + } + + .num_programme{ + padding:30px 20px; + } } diff --git a/app/views/admin/admin_auths/index.haml b/app/views/admin/admin_auths/index.haml index d1d863f..da1ea9f 100644 --- a/app/views/admin/admin_auths/index.haml +++ b/app/views/admin/admin_auths/index.haml @@ -6,9 +6,105 @@ %p Date et heure sur le serveur au chargement de cette page : =l Time.now - -.qi_row - .qi_pannel.qi_plain.padding + +-if params[:refresh_date] + -PCustomer.where("imp_email is not NULL").all.each do |pc| + -pc.created_at = pc.imp_creation + =pc.save + %br - \ No newline at end of file +.qi_kpi + .kpi + .number + =PCustomer.where(:test_user => false).where("created_at >= ?", Date.today.beginning_of_day).count + + .label + Inscriptions + .desc + aujourd'hui + + + .kpi + .number + =PCustomer.where(:test_user => false).where("created_at >= ? and created_at < ?",(Date.today-1.day).beginning_of_day, Date.today.beginning_of_day).count + + .label + Inscriptions + .desc + hier + + + + .kpi + .number + =PCustomer.where(:test_user => false).where("created_at >= ?", (Date.today -1.week).beginning_of_day).count + + .label + Inscriptions + .desc + depuis une semaine + + .kpi + .number + =PCustomer.where(:test_user => false).where("created_at >= ?", (Date.today).beginning_of_year.beginning_of_day).count + + .label + Inscriptions + .desc + cette année + + + .kpi + .number + =PCustomer.where(:test_user => false).count + + .label + Utilisateurs + .desc + + .clear + +=#.qi_row +=# .qi_pannel.qi_plain.padding + + + +:scss + .qi_kpi{ + vertical-align:top; + padding:0 20px; + .kpi{ + float:left; + margin:5px; + color:white; + background:#6C5B7B; + padding:10px 20px; + + .label{ + display:block; + font-weight:bold; + text-align:left; + color:white; + font-size:20px; + padding:0; + text-align:left; + } + + .desc{ + font-size:15px; + text-align:left; + min-height:30px; + } + + .number{ + font-weight:20px; + + font-weight:bold; + font-size:30px; + } + + } + + } + \ No newline at end of file