Skip to content

Termplate Issues #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 80 commits into from
Jul 20, 2016
Merged
Show file tree
Hide file tree
Changes from 76 commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
b73fb9d
Updated Schemas
sandershihacker Jul 6, 2016
0effec1
Load Screen
sandershihacker Jul 6, 2016
78426b8
Loading Screen
sandershihacker Jul 6, 2016
65d8874
merge with origin master
sandershihacker Jul 6, 2016
48a3fcd
Merged from master
sandershihacker Jul 7, 2016
658bd9f
publish subscribe and dynamic explore page
sandershihacker Jul 7, 2016
984fd5d
publish subscribe done
sandershihacker Jul 7, 2016
9f84d87
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 7, 2016
5e1fd85
deleted swap file
sandershihacker Jul 7, 2016
bfaf8ce
publish subscribe
sandershihacker Jul 7, 2016
5123b2f
template fixes
sandershihacker Jul 8, 2016
df18c7b
added start for reactive publication
DerekTBrown Jul 8, 2016
4361c51
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 8, 2016
60a74de
Merge branch 'pubsub' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 8, 2016
cb82ff7
template issue
sandershihacker Jul 8, 2016
2c872bb
.
sandershihacker Jul 8, 2016
b8f7501
.
sandershihacker Jul 8, 2016
cdb18dc
course_records publish
sandershihacker Jul 8, 2016
633716c
course_records reactively publish
sandershihacker Jul 8, 2016
216cb6c
.
sandershihacker Jul 11, 2016
dd01958
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 11, 2016
f21dcc5
revert meteor update
sandershihacker Jul 11, 2016
aa4a575
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 11, 2016
aeaeb2c
publish subscribe and lineheight for searchpage icons
sandershihacker Jul 11, 2016
f85a0d0
publish subscribe
sandershihacker Jul 11, 2016
0d21e7f
fixed indentation and removed test file
sandershihacker Jul 12, 2016
49386cd
indentation
sandershihacker Jul 12, 2016
4530d0e
indentation
sandershihacker Jul 12, 2016
dd760f5
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 12, 2016
5efd498
Accounts page and fixed random erro
sandershihacker Jul 12, 2016
b74eadf
toolbar for mobile devices
sandershihacker Jul 12, 2016
29dd9b7
toolbar
sandershihacker Jul 13, 2016
ab34eb2
account.html fixes
sandershihacker Jul 13, 2016
0895551
pull from origin
sandershihacker Jul 13, 2016
36c2a6b
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 13, 2016
45c4797
Toolbar made responsive
sandershihacker Jul 13, 2016
fd7ded1
Responsive toolbar fixes
sandershihacker Jul 13, 2016
020f88c
created userlist component
sandershihacker Jul 13, 2016
a48bb31
course_records course_id validation
sandershihacker Jul 13, 2016
9c527b2
Database Schema Validation and Sidenav fix
sandershihacker Jul 13, 2016
c7d0984
indentation
sandershihacker Jul 13, 2016
a3d5297
markdown
sandershihacker Jul 14, 2016
3eae7dd
pull from origin
sandershihacker Jul 14, 2016
5def4c2
zMerge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 14, 2016
3cef02a
import changes
sandershihacker Jul 14, 2016
98bc33d
validation addition
sandershihacker Jul 14, 2016
b3388d0
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 14, 2016
126e90a
Forms Module Deprecated Warning. Issue #110
sandershihacker Jul 14, 2016
61c17ee
indentation
sandershihacker Jul 14, 2016
07f0d1d
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 15, 2016
35fef39
Use routerLink
sandershihacker Jul 15, 2016
574d273
api changes (#126)
cemersoz Jul 15, 2016
3df5ed1
method implementations (#127)
cemersoz Jul 15, 2016
b8968a9
course pages now uses Child Routing
sandershihacker Jul 15, 2016
90e358b
deleted LabData class
sandershihacker Jul 15, 2016
24aa3a0
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 15, 2016
07b5b72
merge with requires-infra
sandershihacker Jul 15, 2016
61f1d62
school name
sandershihacker Jul 15, 2016
3724a0a
search function
sandershihacker Jul 18, 2016
9fdb686
Merge with origin and Explore Functionality
sandershihacker Jul 19, 2016
488b678
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 19, 2016
e36be8b
icon size and #136
sandershihacker Jul 19, 2016
d19e76f
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 19, 2016
ba9d265
dashboard pull data from database
sandershihacker Jul 19, 2016
4f594f3
fix inappropriate file naming for gradelist and lablist
sandershihacker Jul 20, 2016
814f435
more templating issues
sandershihacker Jul 20, 2016
4cce66f
merge conflicts
sandershihacker Jul 20, 2016
dd7adaa
.
sandershihacker Jul 20, 2016
820b7c3
.
sandershihacker Jul 20, 2016
27221e8
markdown default
sandershihacker Jul 20, 2016
a0de9d7
lablist and gradelist
sandershihacker Jul 20, 2016
7c3abf2
template changes
sandershihacker Jul 20, 2016
28aa60a
explore page changes
sandershihacker Jul 20, 2016
3942e78
merge
sandershihacker Jul 20, 2016
00b3a74
Merge branch 'master' of https://github.com/learnlinux/tuxlab-app
sandershihacker Jul 20, 2016
4435e5a
delete instructor page
sandershihacker Jul 20, 2016
cc7ece0
user schema
sandershihacker Jul 20, 2016
badfdcd
indentation
sandershihacker Jul 20, 2016
54d22db
indentation
sandershihacker Jul 20, 2016
88f7a09
merge
sandershihacker Jul 20, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 32 additions & 31 deletions client/imports/ui/components/explore/explore.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
<div class="tuxlab-exploreview">
<!--Tab Groups-->
<md-tab-group class="md-whiteframe-5dp" *ngFor="let course of courses">
<!--First Tab-->
<md-tab>
<template md-tab-label>Description</template>
<template md-tab-content>
<md-content class="md-padding">
<h2>{{ course.course_name }}</h2>
<p>Course number: {{ course.course_number }}</p>
<p>
{{ course.course_description.content }}
</p>
<p>Instructor: {{ course.instructor_name }}</p>
</md-content>
</template>
</md-tab>
<!--Second Tab-->
<md-tab>
<template md-tab-label>Syllabus</template>
<template md-tab-content>
<md-content class="md-padding">
<h2>Syllabus</h2>
<p>
{{ course.course_description.syllabus }}
</p>
</md-content>
</template>
</md-tab>
</md-tab-group>

</div>
<!--Tab Groups-->
<md-tab-group class="md-whiteframe-5dp" *ngFor="let course of courses">
<!--First Tab-->
<md-tab>
<template md-tab-label>Description</template>
<template md-tab-content>
<md-content class="md-padding">
<h2>{{ course.course_number }} | {{ course.course_name }}</h2>
<p>{{ course.instructor_name }}</p>
<p>
{{ course.course_description.content }}
</p>
<div class="course-link">
<a md-button [routerLink]="['/course']">Course Page</a>
</div>
</md-content>
</template>
</md-tab>
<!--Second Tab-->
<md-tab>
<template md-tab-label>Syllabus</template>
<template md-tab-content>
<md-content class="md-padding">
<h2>Syllabus</h2>
<p>
{{ course.course_description.syllabus }}
</p>
</md-content>
</template>
</md-tab>
</md-tab-group>
</div>
2 changes: 2 additions & 0 deletions client/imports/ui/components/explore/explore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import { APP_BASE_HREF, FORM_DIRECTIVES } from '@angular/common';
import { HTTP_PROVIDERS } from '@angular/http';
import { InjectUser } from 'angular2-meteor-accounts-ui';
import { ROUTER_DIRECTIVES } from '@angular/router';

// Angular Material Imports
import { MATERIAL_PROVIDERS, MATERIAL_DIRECTIVES } from 'ng2-material';
Expand All @@ -32,6 +33,7 @@
MATERIAL_DIRECTIVES,
MD_ICON_DIRECTIVES,
MD_TABS_DIRECTIVES,
ROUTER_DIRECTIVES,
MD_INPUT_DIRECTIVES,
MdToolbar
],
Expand Down
4 changes: 4 additions & 0 deletions client/imports/ui/components/explore/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ <h2 id="search-string">Search Results for '{{ searchQuery }}'</h2>
<th class="md-text-cell">Course Number</th>
<th class="md-text-cell">Course Name</th>
<th>Instructor</th>
<th></th>
</tr>
</thead>
<tbody>
<tr *ngFor="let course of searchResults">
<td class="md-text-cell">{{ course.course_number }}</td>
<td class="md-text-cell">{{ course.course_name }}</td>
<td>{{ course.instructor_ids }}</td>
<td>
<a md-button [routerLink]="['/course']">Course Page</a>
</td>
</tr>
</tbody>
</md-data-table>
Expand Down
2 changes: 2 additions & 0 deletions client/imports/ui/components/explore/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import { APP_BASE_HREF, FORM_DIRECTIVES } from '@angular/common';
import { HTTP_PROVIDERS } from '@angular/http';
import { InjectUser } from 'angular2-meteor-accounts-ui';
import { ROUTER_DIRECTIVES } from '@angular/router';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation


// Angular Material Imports
import { MATERIAL_PROVIDERS, MATERIAL_DIRECTIVES } from 'ng2-material';
Expand All @@ -31,6 +32,7 @@
directives: [ MATERIAL_DIRECTIVES,
MD_ICON_DIRECTIVES,
MD_TABS_DIRECTIVES,
ROUTER_DIRECTIVES,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation

MD_INPUT_DIRECTIVES,
MdToolbar ],
viewProviders: [ MdIconRegistry ],
Expand Down
84 changes: 0 additions & 84 deletions client/imports/ui/components/gradelist/gradelist.ts

This file was deleted.

2 changes: 1 addition & 1 deletion client/imports/ui/components/markdown/markdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@

<!--Markdown-->
<div class="markdown-content">
<div id="task-markdown" [innerHTML]="convertedData">Task loading...</div>
<div id="task-markdown" [innerHTML]="convert(mdData)"></div>
</div>
</div>
26 changes: 17 additions & 9 deletions client/imports/ui/components/markdown/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import { MATERIAL_PROVIDERS, MATERIAL_DIRECTIVES } from 'ng2-material';
import { MeteorComponent } from 'angular2-meteor';
import { OVERLAY_PROVIDERS } from '@angular2-material/core/overlay/overlay';
import { MD_INPUT_DIRECTIVES } from '@angular2-material/input';

// Toolbar
import { MD_TOOLBAR_DIRECTIVES } from '@angular2-material/toolbar';
Expand All @@ -32,31 +33,38 @@
@Component({
selector: 'tuxlab-markdown',
templateUrl: '/client/imports/ui/components/markdown/markdown.html',
directives: [MATERIAL_DIRECTIVES,
MD_TOOLBAR_DIRECTIVES,
MD_ICON_DIRECTIVES],
directives: [
MATERIAL_DIRECTIVES,
MD_TOOLBAR_DIRECTIVES,
MD_ICON_DIRECTIVES,
MD_INPUT_DIRECTIVES
],

viewProviders: [ MdIconRegistry ],
providers: [ OVERLAY_PROVIDERS ],
encapsulation: ViewEncapsulation.None
})

// Export MarkdownView Class
export class MarkdownView {
data = (new TaskView).labMarkdown;
convertedData: String;
export class MarkdownView extends MeteorComponent{
@Input() mdData = "";
labName = "Lab Name Here";
labProgress = "3/10";

constructor(mdIconRegistry: MdIconRegistry) {
super();
// Create Icon Font
mdIconRegistry.registerFontClassAlias('tux', 'tuxicon');
mdIconRegistry.setDefaultFontSetClass('tuxicon');

// Parse markdown string
}
convert(markdown: string) {
let md = marked.setOptions({});
if(typeof this.data !== "undefined") {
this.convertedData = md.parse(this.data);
if(typeof markdown !== "undefined") {
return md.parse(markdown);
}
else {
return "";
}
}
}
10 changes: 5 additions & 5 deletions client/imports/ui/pages/course/course.routes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RouterConfig } from '@angular/router';
import CourseView from './course.ts';
import { CourseGradeList } from './course_gradelist.ts';
import { CourseLabList } from './course_lablist.ts';
import { GradeList } from './gradelist.ts';
import { LabList } from './lablist.ts';
import { CourseDashboard } from './course_dashboard.ts';
import { LabView } from './labview.ts';

Expand All @@ -11,8 +11,8 @@ export const courseRoutes: RouterConfig = [
component: CourseView,
children: [
{ path: '', component: CourseDashboard },
{ path: 'grades', component: CourseGradeList },
{ path: 'labs', component: CourseLabList },
{ path: 'grades', component: GradeList },
{ path: 'labs', component: LabList },
{ path: 'labs/lab', component: LabView }
// { path: '/:courseid', as: 'CourseView', component: CourseView },
// { path: '/:courseid/users', as: 'UserList', component: UserList },
Expand All @@ -21,4 +21,4 @@ export const courseRoutes: RouterConfig = [
// { path: '/:courseid/lab/:labid', as: 'LabView', component: LabView },
]
}
];
];
8 changes: 1 addition & 7 deletions client/imports/ui/pages/course/course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
// Icon
import { MD_ICON_DIRECTIVES, MdIconRegistry } from '@angular2-material/icon';

// LabList and Grades import
import { LabList } from "../../components/lablist/lablist.ts";
import { GradeList } from "../../components/gradelist/gradelist.ts";

// Courses and Course Record Imports
import { courses } from "../../../../../collections/courses.ts";
import { course_records } from "../../../../../collections/course_records.ts";
Expand All @@ -35,9 +31,7 @@
directives: [
MATERIAL_DIRECTIVES,
MD_ICON_DIRECTIVES,
ROUTER_DIRECTIVES,
LabList,
GradeList
ROUTER_DIRECTIVES
],
viewProviders: [MdIconRegistry],
providers: [OVERLAY_PROVIDERS],
Expand Down
10 changes: 0 additions & 10 deletions client/imports/ui/pages/course/course_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,6 @@
</tbody>
</md-data-table>
</md-card-content>
<md-card-actions layout="row" layout-align="end center">
<md-dialog #alert>
<md-dialog-title>Nice Try</md-dialog-title>
Go home and think about what you did.
<md-dialog-actions ok="Fine"></md-dialog-actions>
</md-dialog>
<button md-button class="right" (click)="alert.show()">
Complain
</button>
</md-card-actions>
</md-card>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions client/imports/ui/pages/course/course_dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
import { MD_ICON_DIRECTIVES, MdIconRegistry } from '@angular2-material/icon';

// LabList and Grades import
import { LabList } from "../../components/lablist/lablist.ts";
import { GradeList } from "../../components/gradelist/gradelist.ts";

import { GradeList } from './gradelist.ts';
import { LabList } from './lablist.ts';
// Courses and Course Record Imports
import { courses } from "../../../../../collections/courses.ts";
import { course_records } from "../../../../../collections/course_records.ts";
Expand Down Expand Up @@ -65,4 +65,4 @@
}
}, true);
}
}
}
Loading