def add_subject_breadcrumb_item(self, subject, active=False):
    if (self.cradmin_instance.get_devilryrole_for_requestuser() == 'periodadmin'):
        return self.add_headeritem_object(devilry_crmenu.BreadcrumbMenuItem(label=subject.short_name, url=reverse_cradmin_url(instanceid='devilry_admin_subject_for_periodadmin', appname='overview', roleid=subject.id, viewname=crapp.INDEXVIEW_NAME), active=active))
    else:
        return self.add_headeritem_object(devilry_crmenu.BreadcrumbMenuItem(label=subject.short_name, url=reverse_cradmin_url(instanceid='devilry_admin_subjectadmin', appname='overview', roleid=subject.id, viewname=crapp.INDEXVIEW_NAME), active=active))
def add_subject_breadcrumb_item(self, subject, active=False):
    if (self.cradmin_instance.get_devilryrole_for_requestuser() == 'periodadmin'):
        return self.add_headeritem_object(devilry_crmenu.BreadcrumbMenuItem(label=subject.short_name, url=reverse_cradmin_url(instanceid='devilry_admin_subject_for_periodadmin', appname='overview', roleid=subject.id, viewname=crapp.INDEXVIEW_NAME), active=active))
    else:
        return self.add_headeritem_object(devilry_crmenu.BreadcrumbMenuItem(label=subject.short_name, url=reverse_cradmin_url(instanceid='devilry_admin_subjectadmin', appname='overview', roleid=subject.id, viewname=crapp.INDEXVIEW_NAME), active=active))