diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-07-04 13:36:51 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-07-04 13:36:51 +0200 |
commit | c95f92fa4c42ef86cd994ca0361cb3c1909e6f2d (patch) | |
tree | 305cb0eff419485b4fe4bd646f3a953c108b9841 /views | |
parent | 61305fa6d9faa8bd547faeb6bc3d938251ea9e6c (diff) | |
download | example-collection-json-db-c95f92fa4c42ef86cd994ca0361cb3c1909e6f2d.tar.gz example-collection-json-db-c95f92fa4c42ef86cd994ca0361cb3c1909e6f2d.tar.bz2 example-collection-json-db-c95f92fa4c42ef86cd994ca0361cb3c1909e6f2d.tar.xz example-collection-json-db-c95f92fa4c42ef86cd994ca0361cb3c1909e6f2d.zip |
o Sending 405 on bad method, 406 on bad Accept values.
Diffstat (limited to 'views')
-rw-r--r-- | views/department.jade | 2 | ||||
-rw-r--r-- | views/employeesInDepartment.jade (renamed from views/employees_in_department.jade) | 4 | ||||
-rw-r--r-- | views/index.jade | 6 |
3 files changed, 9 insertions, 3 deletions
diff --git a/views/department.jade b/views/department.jade index 32952a9..a29ef3a 100644 --- a/views/department.jade +++ b/views/department.jade @@ -10,6 +10,6 @@ block content | >> a(href=urlgenerator.department(dept_no)) Department ##{dept_no} - p: a(href=urlgenerator.employees_in_department(dept_no)) Employees in this department + p: a(href=urlgenerator.employeesInDepartment(dept_no)) Employees in this department p TODO: add links to manager and department name. diff --git a/views/employees_in_department.jade b/views/employeesInDepartment.jade index 277c750..f889c0c 100644 --- a/views/employees_in_department.jade +++ b/views/employeesInDepartment.jade @@ -11,12 +11,12 @@ block content | >> a(href=urlgenerator.department(dept_no)) Department ##{dept_no} | >> - a(href=urlgenerator.employees_in_department(dept_no)) Employees in Department ##{dept_no} + a(href=urlgenerator.employeesInDepartment(dept_no)) Employees in Department ##{dept_no} table each employee in employees tr td: a(href=urlgenerator.employee(employee.emp_no)) #{employee.first_name} #{employee.last_name} - - var f = function(offset) { return urlgenerator.employees_in_department(dept_no, offset) } + - var f = function(offset) { return urlgenerator.employeesInDepartment(dept_no, offset) } mixin pager(pager, f, query) diff --git a/views/index.jade b/views/index.jade index 7ff1bb1..363355c 100644 --- a/views/index.jade +++ b/views/index.jade @@ -25,6 +25,12 @@ block content code text/html | you will be served code application/vnd.collection+json + | if you include + code */* + | in your + code Accept + | header. If you request only unsupported types, you'll get a + a(href='http://httpstatus.es/406') 406 | . h4 Exploring with curl |