KyivKrishnaAcademy/ved_akadem_students

View on GitHub
client/index.jade

Summary

Maintainability
Test Coverage
doctype html
html

  head
    title Hello, React

  body

    h1.alert.alert-info.this-works webpack dev server (with HMR)
    #app

    script(src="vendor-bundle.js")
    script(src="react-bundle.js")
    script(src="schedule-list-bundle.js")
    script.
      var schedule = {
        id: 194,
        subject: "",
        course: {
          id: 3,
          title: "Бхагавад Гита",
          canView: true,
          path: "/courses/3"
        },
        lector: {
          id: 461,
          path: "/people/461",
          canView: true,
          complexName: "Нітьянанда Рай дас"
        },
        academicGroups: [
          {
            id: 13,
            title: "БШ15-2",
            canView: true,
            path: "/academic_groups/13"
          }
        ],
        classroom: "Гурукула",
        time: "Сб 20.02.16 09:00 - 13:00",
        canEdit: true,
        canDelete: true,
        editPath: "/class_schedules/194/edit",
        deletePath: "/class_schedules/194"
      };

      ReactOnRails.render("ScheduleEntry", {schedule: schedule}, 'app');