diff --git a/webnotes/core/doctype/profile/profile.py b/webnotes/core/doctype/profile/profile.py index 3fac8626fc..5b9479ba8c 100644 --- a/webnotes/core/doctype/profile/profile.py +++ b/webnotes/core/doctype/profile/profile.py @@ -385,12 +385,8 @@ def facebook_login(data): "new_password": webnotes.generate_hash(data["email"]), "fb_username": data["username"], "fb_userid": data["id"], - "fb_location": data.get("location", {}).get("name"), - "fb_hometown": data.get("hometown", {}).get("name"), - "fb_age_range": data.get("age_range") and "{min}-{max}".format(**data.get("age_range")), + "location": data.get("location", {}).get("name"), "birth_date": data.get("birthday"), - "fb_bio": data.get("bio"), - "fb_education": data.get("education") and data.get("education")[-1].get("type"), "user_type": "Website User" }) profile.ignore_permissions = True diff --git a/webnotes/hooks.txt b/webnotes/hooks.txt index 1a57c2e015..e6bfc4d834 100644 --- a/webnotes/hooks.txt +++ b/webnotes/hooks.txt @@ -20,10 +20,6 @@ web_include_css = style_settings.css website_clear_cache = webnotes.templates.generators.website_group.clear_cache -website_group_handler:Forum = webnotes.templates.website_group.forum -website_group_handler:Events = webnotes.templates.website_group.events -website_group_handler:Tasks = webnotes.templates.website_group.tasks - get_desktop_icons = webnotes.manage.get_desktop_icons notification_config = webnotes.core.notifications.get_notification_config @@ -42,3 +38,8 @@ has_permission:Event = webnotes.core.doctype.event.event.has_permission permission_query_conditions:ToDo = webnotes.core.doctype.todo.todo.get_permission_query_conditions has_permission:ToDo = webnotes.core.doctype.todo.todo.has_permission + +# bean + +bean_event:User Vote:after_insert = webnotes.templates.generators.website_group.clear_cache_on_bean_event +bean_event:Website Sitemap Permission:on_update = webnotes.templates.generators.website_group.clear_cache_on_bean_event \ No newline at end of file diff --git a/webnotes/templates/emails/standard.html b/webnotes/templates/emails/standard.html index f3126e4d45..3a3381b454 100644 --- a/webnotes/templates/emails/standard.html +++ b/webnotes/templates/emails/standard.html @@ -38,7 +38,7 @@ body { .btn-primary{ text-decoration:none; - color: #FFF; + color: #FFF !important; background-color: #348eda; border:solid #348eda; border-width:10px 20px; @@ -53,7 +53,7 @@ body { .btn-secondary { text-decoration:none; - color: #FFF; + color: #FFF !important; background-color: #aaa; border:solid #aaa; border-width:10px 20px; diff --git a/webnotes/templates/generators/website_group.html b/webnotes/templates/generators/website_group.html index 0a88766ace..682b0eaeda 100644 --- a/webnotes/templates/generators/website_group.html +++ b/webnotes/templates/generators/website_group.html @@ -12,9 +12,10 @@ {% block content %}