def student_view()

in onedrive/onedrive.py [0:0]


    def student_view(self, context=None):
        """
        The primary view of the OneDriveXBlock, shown to students
        when viewing courses.
        """
        html = self.resource_string("static/html/onedrive.html")
        frag = Fragment(html.format(self=self))
        frag.add_css(self.resource_string("static/css/onedrive.css"))
        frag.add_javascript(self.resource_string("static/js/src/onedrive.js"))
        frag.initialize_js('OneDriveXBlock')
        return frag