mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
[fix] breadcrumb links and no cache to membership detail page
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
@@ -1,6 +1,8 @@
|
||||
import frappe
|
||||
import foundation
|
||||
|
||||
no_cache = 1
|
||||
|
||||
def get_context(context):
|
||||
if frappe.session.user != 'Guest':
|
||||
context.show_sidebar = True
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user