Skip to content

Commit

Permalink
Merge pull request #8 from JarvusInnovations/develop
Browse files Browse the repository at this point in the history
Release: slate-spark 2.0.2
  • Loading branch information
themightychris authored Nov 10, 2016
2 parents 6091f18 + f3cd8ea commit f869ddb
Show file tree
Hide file tree
Showing 17 changed files with 113 additions and 116 deletions.
1 change: 0 additions & 1 deletion html-templates/app/SparkClassroomStudent/.emergence/mark

This file was deleted.

1 change: 0 additions & 1 deletion html-templates/app/SparkClassroomTeacher/.emergence/mark

This file was deleted.

17 changes: 11 additions & 6 deletions html-templates/app/spark-ext.tpl
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
{extends app/ext.tpl}

{block css-loader}
<style>
#ext-viewport {
padding-top: 2.75em;
}
</style>
{if !$.get.iframe}
<style>
#ext-viewport {
padding-top: 2.75em;
}
</style>
{/if}

{include includes/site.css.tpl}
{/block}

{block body}
{include includes/site.user-tools.tpl}
{if !$.get.iframe}
{include includes/site.user-tools.tpl}
{/if}
{/block}
53 changes: 0 additions & 53 deletions php-classes/Slate/Connectors/Illuminate/Connector.php

This file was deleted.

1 change: 0 additions & 1 deletion php-classes/Spark/Classroom/.emergence/mark

This file was deleted.

13 changes: 13 additions & 0 deletions php-config/Git.config.d/slate-connector-illuminate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

Git::$repositories['slate-connector-illuminate'] = [
'remote' => '[email protected]:SlateFoundation/slate-connector-illuminate.git',
'originBranch' => 'master',
'workingBranch' => 'master',
'trees' => [
'html-templates/connectors/illuminate/connector.tpl',
'php-classes/Slate/Connectors/Illuminate/Connector.php',
'php-config/Slate/Connectors/Illuminate/Connector.config.php',
'site-root/connectors/illuminate.php'
]
];
22 changes: 22 additions & 0 deletions php-config/Git.config.d/slate-spark.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

Git::$repositories['slate-spark'] = [
'remote' => '[email protected]:JarvusInnovations/slate-spark.git',
'originBranch' => 'master',
'workingBranch' => 'master',
'trees' => [
'site-root/sass',
'site-root/img',
'site-root/spark',
'php-classes/Spark/Classroom',
'php-config/Git.config.d',
'php-config/Slate/DashboardRequestHandler.config.d',
'php-config/Slate/UI/Navigation.config.php',
'php-config/Slate/UI/Omnibar.config.php',
'php-config/Slate/UI/Adapters/Courses.config.d/matchbook.php',
'html-templates/app/spark-ext.tpl',
'html-templates/app/SparkClassroomTeacher',
'html-templates/app/SparkClassroomStudent',
'html-templates/sections/courseSection.tpl'
]
];
14 changes: 14 additions & 0 deletions php-config/Git.config.d/spark-classroom.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

Git::$repositories['spark-classroom'] = [
'remote' => '[email protected]:JarvusInnovations/spark-classroom.git',
'originBranch' => 'releases/v2',
'workingBranch' => 'releases/v2',
'trees' => [
'sencha-workspace/packages/spark-classroom',
'sencha-workspace/SparkClassroomStudent',
'sencha-workspace/SparkClassroomTeacher',
'sencha-workspace/SparkDashboardStudent',
'sencha-workspace/SparkDashboardTeacher'
]
];
11 changes: 11 additions & 0 deletions php-config/Git.config.d/spark-narratives.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

Git::$repositories['spark-narratives'] = [
'remote' => '[email protected]:JarvusInnovations/spark-narratives.git',
'originBranch' => 'builds/v1',
'workingBranch' => 'builds/v1',
'trees' => [
'php-config/Slate/Progress/Narratives/Report.config.d/spark.php',
'sencha-workspace/packages/spark-narratives'
]
];
10 changes: 10 additions & 0 deletions php-config/Git.config.d/spark-theme.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

Git::$repositories['spark-theme'] = [
'remote' => '[email protected]:JarvusInnovations/spark-theme.git',
'originBranch' => 'develop',
'workingBranch' => 'develop',
'trees' => [
'sencha-workspace/packages/spark-theme' => '.'
]
];
26 changes: 26 additions & 0 deletions php-config/Slate/DashboardRequestHandler.config.d/100_courses.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace Slate;

if (!empty($_SESSION['User'])) {
$sparkCourseLinks = [];

foreach ($_SESSION['User']->CurrentCourseSections AS $Section) {
$sparkCourseLinks[] = [
'_id' => $Section->Code,
'_label' => $Section->getTitle(),
'_shortLabel' => $Section->Code,
'_icon' => UI\Adapters\Courses::getIcon($Section),
'_href' => $GLOBALS['Session']->hasAccountLevel('Teacher') ?
"/spark/classroom/teacher#$Section->Code:gps" :
"/spark/classroom/student#$Section->Code::"
];
}

DashboardRequestHandler::$sources[] = [
'My Courses' => [
'_icon' => 'courses',
'_children' => $sparkCourseLinks
]
];
}
44 changes: 0 additions & 44 deletions php-config/Slate/DashboardRequestHandler.config.php

This file was deleted.

3 changes: 0 additions & 3 deletions site-root/connectors/illuminate.php

This file was deleted.

1 change: 0 additions & 1 deletion site-root/spark/.emergence/mark

This file was deleted.

4 changes: 2 additions & 2 deletions site-root/spark/exports/sparkpoint-progress/courses.csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}

$where[] = implode(' OR ', array_map(function($timeField) use ($time) {
return sprintf('assess_finish_time >= to_timestamp(%u)', $time);
return sprintf('%s >= to_timestamp(%u)', $timeField, $time);
}, $timeFields));
}

Expand All @@ -58,7 +58,7 @@
}

$where[] = implode(' OR ', array_map(function($timeField) use ($time) {
return sprintf('assess_finish_time <= to_timestamp(%u)', $time);
return sprintf('%s <= to_timestamp(%u)', $timeField, $time);
}, $timeFields));
}

Expand Down
4 changes: 2 additions & 2 deletions site-root/spark/exports/sparkpoint-progress/sections.csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}

$where[] = implode(' OR ', array_map(function($timeField) use ($time) {
return sprintf('assess_finish_time >= to_timestamp(%u)', $time);
return sprintf('%s >= to_timestamp(%u)', $timeField, $time);
}, $timeFields));
}

Expand All @@ -57,7 +57,7 @@
}

$where[] = implode(' OR ', array_map(function($timeField) use ($time) {
return sprintf('assess_finish_time <= to_timestamp(%u)', $time);
return sprintf('%s <= to_timestamp(%u)', $timeField, $time);
}, $timeFields));
}

Expand Down
4 changes: 2 additions & 2 deletions site-root/spark/exports/sparkpoint-progress/students.csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}

$where[] = implode(' OR ', array_map(function($timeField) use ($time) {
return sprintf('assess_finish_time >= to_timestamp(%u)', $time);
return sprintf('%s >= to_timestamp(%u)', $timeField, $time);
}, $timeFields));
}

Expand All @@ -57,7 +57,7 @@
}

$where[] = implode(' OR ', array_map(function($timeField) use ($time) {
return sprintf('assess_finish_time <= to_timestamp(%u)', $time);
return sprintf('%s <= to_timestamp(%u)', $timeField, $time);
}, $timeFields));
}

Expand Down

0 comments on commit f869ddb

Please sign in to comment.