mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
Merge pull request #11 from saurabh6790/membership_payments
[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)
|
self.route = 'apps/' + self.scrub(self.app_name)
|
||||||
|
|
||||||
def get_context(self, context):
|
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):
|
def get_list_context(context):
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class PortalEvent(WebsiteGenerator):
|
|||||||
|
|
||||||
def get_context(self, context):
|
def get_context(self, context):
|
||||||
context.parents = [dict(label='All Events',
|
context.parents = [dict(label='All Events',
|
||||||
route='/events')]
|
route='/events', title='All Events')]
|
||||||
|
|
||||||
|
|
||||||
def get_list_context(context):
|
def get_list_context(context):
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import foundation
|
|||||||
class PortalJob(WebsiteGenerator):
|
class PortalJob(WebsiteGenerator):
|
||||||
def get_context(self, context):
|
def get_context(self, context):
|
||||||
context.parents = [dict(label='View All Jobs',
|
context.parents = [dict(label='View All Jobs',
|
||||||
route='erpnext-jobs')]
|
route='erpnext-jobs', title='View All Jobs')]
|
||||||
context.is_member = foundation.is_member()
|
context.is_member = foundation.is_member()
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ class ServiceProvider(WebsiteGenerator):
|
|||||||
|
|
||||||
def get_context(self, context):
|
def get_context(self, context):
|
||||||
context.parents = [dict(label='All Service Providers in {0}'.format(self.country),
|
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'):
|
if not context.website.startswith('http'):
|
||||||
context.website = 'http://' + context.website
|
context.website = 'http://' + context.website
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
import frappe
|
import frappe
|
||||||
import foundation
|
import foundation
|
||||||
|
|
||||||
|
no_cache = 1
|
||||||
|
|
||||||
def get_context(context):
|
def get_context(context):
|
||||||
if frappe.session.user != 'Guest':
|
if frappe.session.user != 'Guest':
|
||||||
context.show_sidebar = True
|
context.show_sidebar = True
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ def get_context(context):
|
|||||||
|
|
||||||
if frappe.form_dict.country:
|
if frappe.form_dict.country:
|
||||||
context.parents = [dict(label='All Service Providers',
|
context.parents = [dict(label='All Service Providers',
|
||||||
route='service-providers')]
|
route='service-providers', title='All Service Providers')]
|
||||||
|
|
||||||
filters = dict()
|
filters = dict()
|
||||||
if frappe.form_dict.country:
|
if frappe.form_dict.country:
|
||||||
|
|||||||
Reference in New Issue
Block a user