From 205015b1782ca17b2f5c56cceae698fb29865f8b Mon Sep 17 00:00:00 2001 From: Saurabh Date: Fri, 31 Mar 2017 15:23:55 +0530 Subject: [PATCH] [fix] breadcrumb links and no cache to membership detail page --- foundation/erpnext_foundation/doctype/frappe_app/frappe_app.py | 2 +- .../erpnext_foundation/doctype/portal_event/portal_event.py | 2 +- foundation/erpnext_foundation/doctype/portal_job/portal_job.py | 2 +- .../doctype/service_provider/service_provider.py | 3 ++- foundation/www/members/details.py | 2 ++ foundation/www/service_providers.py | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/foundation/erpnext_foundation/doctype/frappe_app/frappe_app.py b/foundation/erpnext_foundation/doctype/frappe_app/frappe_app.py index 9ee9e927..cf72af17 100644 --- a/foundation/erpnext_foundation/doctype/frappe_app/frappe_app.py +++ b/foundation/erpnext_foundation/doctype/frappe_app/frappe_app.py @@ -12,7 +12,7 @@ class FrappeApp(WebsiteGenerator): self.route = 'apps/' + self.scrub(self.app_name) def get_context(self, context): - context.parents = [dict(label='All Apps', route='apps')] + context.parents = [dict(label='All Apps', route='apps', title='All Apps')] def get_list_context(context): diff --git a/foundation/erpnext_foundation/doctype/portal_event/portal_event.py b/foundation/erpnext_foundation/doctype/portal_event/portal_event.py index bd2553ba..beaa4c96 100644 --- a/foundation/erpnext_foundation/doctype/portal_event/portal_event.py +++ b/foundation/erpnext_foundation/doctype/portal_event/portal_event.py @@ -17,7 +17,7 @@ class PortalEvent(WebsiteGenerator): def get_context(self, context): context.parents = [dict(label='All Events', - route='/events')] + route='/events', title='All Events')] def get_list_context(context): diff --git a/foundation/erpnext_foundation/doctype/portal_job/portal_job.py b/foundation/erpnext_foundation/doctype/portal_job/portal_job.py index 8f98fef6..8491faf7 100644 --- a/foundation/erpnext_foundation/doctype/portal_job/portal_job.py +++ b/foundation/erpnext_foundation/doctype/portal_job/portal_job.py @@ -10,7 +10,7 @@ import foundation class PortalJob(WebsiteGenerator): def get_context(self, context): context.parents = [dict(label='View All Jobs', - route='erpnext-jobs')] + route='erpnext-jobs', title='View All Jobs')] context.is_member = foundation.is_member() def validate(self): diff --git a/foundation/erpnext_foundation/doctype/service_provider/service_provider.py b/foundation/erpnext_foundation/doctype/service_provider/service_provider.py index 30371ec2..282c15d4 100644 --- a/foundation/erpnext_foundation/doctype/service_provider/service_provider.py +++ b/foundation/erpnext_foundation/doctype/service_provider/service_provider.py @@ -16,6 +16,7 @@ class ServiceProvider(WebsiteGenerator): def get_context(self, context): context.parents = [dict(label='All Service Providers in {0}'.format(self.country), - route='service-providers?country={0}'.format(self.country))] + route='service-providers?country={0}'.format(self.country), + title='All Service Providers in {0}'.format(self.country))] if not context.website.startswith('http'): context.website = 'http://' + context.website \ No newline at end of file diff --git a/foundation/www/members/details.py b/foundation/www/members/details.py index 2e078a51..b4cb862f 100644 --- a/foundation/www/members/details.py +++ b/foundation/www/members/details.py @@ -1,6 +1,8 @@ import frappe import foundation +no_cache = 1 + def get_context(context): if frappe.session.user != 'Guest': context.show_sidebar = True diff --git a/foundation/www/service_providers.py b/foundation/www/service_providers.py index d0e8aacb..3cc3b315 100644 --- a/foundation/www/service_providers.py +++ b/foundation/www/service_providers.py @@ -8,7 +8,7 @@ def get_context(context): if frappe.form_dict.country: context.parents = [dict(label='All Service Providers', - route='service-providers')] + route='service-providers', title='All Service Providers')] filters = dict() if frappe.form_dict.country: