

def block_nav_toggles(self, context, nodes):
    obj = getattr(self.admin_view, 'org_obj', getattr(self.admin_view, 'obj', None))
    if obj:
        revisionlist_url = self.admin_view.model_admin_url('revisionlist', quote(obj.pk))
        nodes.append(mark_safe(('<a href="%s" class="navbar-toggle pull-right"><i class="fa fa-time"></i></a>' % revisionlist_url)))

dataset/ETHPy150Open sshwsfc/xadmin/xadmin/plugins/xversion.py ReversionPlugin.block_nav_toggles/original