aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/department.jade2
-rw-r--r--views/employeesInDepartment.jade (renamed from views/employees_in_department.jade)4
-rw-r--r--views/index.jade6
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