Skip to content

Commit

Permalink
Merge pull request #160 from aismail/f/#159-create-layout-for-dashboa…
Browse files Browse the repository at this point in the history
…rd-page

F/#159 create layout for dashboard page
  • Loading branch information
Andrei-Adnan Ismail committed May 17, 2013
2 parents ae04615 + 6abc6b6 commit 8f35ded
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 11 deletions.
1 change: 1 addition & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Oxygen' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="conf/general.js"></script>
<script type="text/javascript" src="conf/general.user.js"></script>
Expand Down
13 changes: 11 additions & 2 deletions app/templates/assignment_controller.hjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
<div class="mozaic-widget" data-widget="breadcrumbs" data-params="{{breadcrumbs_params}}"></div>
<div class="mozaic-widget" data-widget="assignment_details" data-params="{{assignments_params}}"></div>
<div class="container">
<div class="mozaic-widget" data-widget="header"></div>
<div class="mozaic-widget" data-widget="breadcrumbs" data-params="{{breadcrumbs_params}}"></div>
<div class="row"><br>
<div class="span8"><br>
<div class="mozaic-widget" data-widget="assignment_details" data-params="{{assignments_params}}"></div>
<div><br>
<div class="span4"><br>
</div><br>
</div>
</div>
5 changes: 4 additions & 1 deletion app/templates/assignments_list_widget.hjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{{url}}
<tr>
<th>Assignment</th>
<th>Deadline</th>
</tr>
{{#each assignments}}
<tr>
<td><a href="{{../url}}{{id}}">{{name}}</a></td>
Expand Down
12 changes: 9 additions & 3 deletions app/templates/dashboard_controller.hjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<h1>Dashboard</h1>
<div class="mozaic-widget" data-widget="breadcrumbs" data-params="{{breadcrumbs_params}}"></div>
<table class="mozaic-widget" data-widget="list" data-params="{{list_params}}"></table>
<div class="container">
<div class="mozaic-widget" data-widget="header"></div>
<div class="mozaic-widget" data-widget="breadcrumbs" data-params="{{breadcrumbs_params}}"></div>
<div class="row"><br>
<div class="span12"><br>
<table class="mozaic-widget" data-widget="list" data-params="{{list_params}}"></table>
</div><br>
</div>
</div>
2 changes: 0 additions & 2 deletions app/templates/page.hjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
<div class="mozaic-widget" data-widget="header">
</div>
<div id="controller-container">
</div>
20 changes: 17 additions & 3 deletions app/templates/subject_controller.hjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
<div class="mozaic-widget" data-widget="breadcrumbs" data-params="{{breadcrumbs_params}}"></div>
<div class="mozaic-widget" data-widget="subject_details" data-params="{{subjects_params}}"></div>
<table class="mozaic-widget" data-widget="assignments" data-params="{{assignments_params}}"></table>
<div class = "container">
<div class="mozaic-widget" data-widget="header"></div>
<div class="mozaic-widget" data-widget="breadcrumbs" data-params="{{breadcrumbs_params}}"></div>
<div class="row"><br>
<div class="span8"><br>
<div class="mozaic-widget" data-widget="subject_details" data-params="{{subjects_params}}"></div>
</div><br>
<div class="span4"><br>
<table class="mozaic-widget" data-widget="assignments" data-params="{{assignments_params}}">
<tr>
<td>Assignment</td>
<td>Deadline</td>
</tr>
</table>
</div><br>
</div>
</div>

0 comments on commit 8f35ded

Please sign in to comment.