Skip to content

A plugin for edX Analytics Dashboard to represent predicted at-risk students

Notifications You must be signed in to change notification settings

owen198/kslab-edx-ars-dashboard

Repository files navigation

kslab-edx-arsUI

A plugin for edX Analytics Dashboard to represent predicted at-risk students

engagement_risk.html

at-risk學生燈號網頁架構程式碼放在 /courses/templates/courses/engagement_risk.html

engagement.py

要在index網頁上加上at-risk學生的tag需在檔案 /courses/views/engagement.py中

在fumction EngagementTemplateView(CourseTemplateWithNavView)中加上新tag的資料, ex:{'name': 'risk', 'label': _('Risk'), 'view':'courses:engagement:risk'},

以及須自行撰寫新的function來將資料傳遞到前端書出, ex:class EngagementRiskStudent(EngagementTemplateView)

urls.py

要將在engagement.py設定的簡易路徑轉換成實際的url需在檔案 /courses/urls.py

將url的路徑轉換寫入到ENGAGEMENT_URLS = patterns()的list中, ex:url(r'^risk/$', engagement.EngagementRiskStudent.as_view(), name='risk')

API

base.py

設定API連結的網址與token在檔案 /settings/base.py

設定之參數名稱需全部大寫, ex:DATA_API_URL_SNAIL = 'http://140.115.54.175:2225/api/v2'

init.py

連接API將資料接收透過檔案 courses/presenters/init.py

需加入一個function連接API與接收資料, ex:class BasePresenter_snail(object)

engagement.py

要輸出到前端資料須在engagement.py中,將BasePresenter_snail import進來

About

A plugin for edX Analytics Dashboard to represent predicted at-risk students

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published