diff --git a/osinaweb/.DS_Store b/osinaweb/.DS_Store index e6b1582c..bfc92706 100644 Binary files a/osinaweb/.DS_Store and b/osinaweb/.DS_Store differ diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index 801b849e..feeaf72e 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ diff --git a/osinaweb/osichat/__pycache__/consumers.cpython-310.pyc b/osinaweb/osichat/__pycache__/consumers.cpython-310.pyc index f4fce16b..97af924d 100644 Binary files a/osinaweb/osichat/__pycache__/consumers.cpython-310.pyc and b/osinaweb/osichat/__pycache__/consumers.cpython-310.pyc differ diff --git a/osinaweb/osichat/consumers.py b/osinaweb/osichat/consumers.py index e6bf4e12..c43c6e8a 100644 --- a/osinaweb/osichat/consumers.py +++ b/osinaweb/osichat/consumers.py @@ -78,7 +78,11 @@ class Osichat(WebsocketConsumer): event = { 'type': 'get_chats_handler', } - self.get_chats_handler(event) + + if data.get('whereAmI') == 'Chats': + self.get_chats_handler(event) + else: + self.get_visitors_handler(event) if event_type == 'get_chats': event = { diff --git a/osinaweb/osinacore/.DS_Store b/osinaweb/osinacore/.DS_Store index 7ee74078..3878a539 100644 Binary files a/osinaweb/osinacore/.DS_Store and b/osinaweb/osinacore/.DS_Store differ diff --git a/osinaweb/osinacore/templates/.DS_Store b/osinaweb/osinacore/templates/.DS_Store index 0c2f6aa2..a8d9e49d 100644 Binary files a/osinaweb/osinacore/templates/.DS_Store and b/osinaweb/osinacore/templates/.DS_Store differ diff --git a/osinaweb/osinacore/templates/chat_templates/partials/new-visitor.html b/osinaweb/osinacore/templates/chat_templates/partials/new-visitor.html index 11b1c228..d295a5b2 100644 --- a/osinaweb/osinacore/templates/chat_templates/partials/new-visitor.html +++ b/osinaweb/osinacore/templates/chat_templates/partials/new-visitor.html @@ -15,9 +15,15 @@
{{visitor.ip_address}}
-{{visitor.visitorlog_set.all.last.url}}
++ {% if not visitor.visitorlog_set.all.last.title %} + {{ visitor.visitorlog_set.all.last.url|slice:":26" }}{% if visitor.visitorlog_set.all.last.url|length > 26 %}…{% endif %} + {% else %} + {{ visitor.visitorlog_set.all.last.title|slice:":26" }}{% if visitor.visitorlog_set.all.last.title|length > 26 %}…{% endif %} + {% endif %} +
{{visitor.total_duration}}
diff --git a/osinaweb/osinacore/templates/email_templates/account_activation_email.html b/osinaweb/osinacore/templates/email_templates/account_activation_email.html index d05a5752..e69de29b 100644 --- a/osinaweb/osinacore/templates/email_templates/account_activation_email.html +++ b/osinaweb/osinacore/templates/email_templates/account_activation_email.html @@ -1,54 +0,0 @@ - - - - - -Hello {{ user.first_name }},
-Thank you for signing up! To help us confirm your identity, please click the button below to activate your account and verify your email address:
- -If you didn't request this, you can safely ignore this email.
-Regards,
The Ositcom Team