diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-06-29 23:21:43 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-06-29 23:21:43 +0200 |
commit | 2a78df9bd4059344b2133830eebe28fccaff8c81 (patch) | |
tree | ec843d1b3201ce654111f3695643e6e614ae3a22 /views | |
download | example-collection-json-db-2a78df9bd4059344b2133830eebe28fccaff8c81.tar.gz example-collection-json-db-2a78df9bd4059344b2133830eebe28fccaff8c81.tar.bz2 example-collection-json-db-2a78df9bd4059344b2133830eebe28fccaff8c81.tar.xz example-collection-json-db-2a78df9bd4059344b2133830eebe28fccaff8c81.zip |
o Initial import of a application/vnd.collection+json demo application.
Diffstat (limited to 'views')
-rw-r--r-- | views/department.jade | 11 | ||||
-rw-r--r-- | views/departments.jade | 8 | ||||
-rw-r--r-- | views/employee.jade | 21 | ||||
-rw-r--r-- | views/index.jade | 5 | ||||
-rw-r--r-- | views/layout.jade | 7 |
5 files changed, 52 insertions, 0 deletions
diff --git a/views/department.jade b/views/department.jade new file mode 100644 index 0000000..7005ea6 --- /dev/null +++ b/views/department.jade @@ -0,0 +1,11 @@ +extends layout + +block content + h1= title + + h2 Showing #{employees.length} employees + + each employee in employees + table + tr + td: a(href='/employee/#{employee.emp_no}') #{employee.first_name} #{employee.last_name} diff --git a/views/departments.jade b/views/departments.jade new file mode 100644 index 0000000..711e0ec --- /dev/null +++ b/views/departments.jade @@ -0,0 +1,8 @@ +extends layout + +block content + h1= title + each department in departments + table + tr + td: a(href='/department/#{department.dept_no}') #{department.dept_name} diff --git a/views/employee.jade b/views/employee.jade new file mode 100644 index 0000000..6cd2c10 --- /dev/null +++ b/views/employee.jade @@ -0,0 +1,21 @@ +extends layout + +block content + h1= title + + table + tr + td First Name + td #{employee.first_name} + tr + td Last Name + td #{employee.last_name} + tr + td Birth Date + td #{employee.birth_date} + tr + td Gender + td #{employee.gender} + tr + td Hire Date + td #{employee.hire_date} diff --git a/views/index.jade b/views/index.jade new file mode 100644 index 0000000..ef7b09f --- /dev/null +++ b/views/index.jade @@ -0,0 +1,5 @@ +extends layout + +block content + h1= title + p Welcome to #{title}
\ No newline at end of file diff --git a/views/layout.jade b/views/layout.jade new file mode 100644 index 0000000..1b7b305 --- /dev/null +++ b/views/layout.jade @@ -0,0 +1,7 @@ +doctype 5 +html + head + title= title + link(rel='stylesheet', href='/stylesheets/style.css') + body + block content
\ No newline at end of file |