def get_context_data(self, **kwargs): context = super(MemberDetailsView, self).get_context_data(**kwargs) member = self.get_data() context['member'] = member table = project_tables.MembersTable(self.request) context["url"] = self.get_redirect_url() context["actions"] = table.render_row_actions(member) return context
def get_context_data(self, **kwargs): context = super(MemberDetailsView, self).get_context_data(**kwargs) member = self.get_data() context['member'] = member member_nav = member.pool.name_or_id breadcrumb = [ (member_nav, reverse('horizon:project:loadbalancers:pooldetails', args=(member.pool.id, ))), (_("Members"), reverse('horizon:project:loadbalancers:members')), ] context["custom_breadcrumb"] = breadcrumb table = project_tables.MembersTable(self.request) context["url"] = self.get_redirect_url() context["actions"] = table.render_row_actions(member) return context