Skip to content

Commit

Permalink
Merge pull request #150 from aismail/f/#149-add-links-to-assignments-…
Browse files Browse the repository at this point in the history
…by-id-list

F/#149 add links to assignments by id list
  • Loading branch information
Andrei-Adnan Ismail committed May 17, 2013
2 parents 41c6b7b + 46f362c commit 459db80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/modules/assignments_list_widget.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ define ['cs!widget'], (Widget) ->
as this data channel is actually a Backbone Collection.
###
params=
url: Utils.render_url(Utils.current_url() + "#assignments/")
assignments: assignments_params.collection.toJSON()

@renderLayout(params,false)
Expand Down
3 changes: 2 additions & 1 deletion app/templates/assignments_list_widget.hjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{url}}
{{#each assignments}}
<tr>
<td>{{name}}</td>
<td><a href="{{../url}}{{id}}">{{name}}</a></td>
<td>{{deadline}}</td>
</tr>
{{/each}}

0 comments on commit 459db80

Please sign in to comment.