Add RDFa data to our library pages.
authorDiane Trout <diane@caltech.edu>
Thu, 17 Feb 2011 08:35:44 +0000 (00:35 -0800)
committerDiane Trout <diane@caltech.edu>
Thu, 17 Feb 2011 08:35:44 +0000 (00:35 -0800)
commitb9ad52955e457b80636fac66e4360cf564a1d054
tree3696fa927d8c3cee591aae4501f3e323fb156698
parente4f868fbfaa505c9d0ce5cf138db76142fea961a
Add RDFa data to our library pages.
While doing that I discovered that the library_index page was spitting up
seriously bad HTML, with two DOCTYPE & html tags.
It looks like it was a combination of my simplifications with the
leftovers of brandon's "app" templates I ended up putting in two
base.html templates.

I stripped out the app templates and tried to simplify the template
inheritance.

As a side effect the library detail page, now has a header and is using
a css based font.

There was also a minor issue where I discovered the paginator was showing
"X libraries libraries" because the views was adding "libraries" to
the changelist result count. (And the change list also adds in the name).

I needed to replace the default admin pagination template, as
RDFa uses xhtml, and xhtml doesn't support the &nbsp; entity.
(The solution is to use a unicode character for nbsp -- such as
&#160; -- unicode for non-breaking space.
12 files changed:
htsworkflow/frontend/samples/models.py
htsworkflow/frontend/samples/views.py
htsworkflow/frontend/templates/admin/pagination.html [new file with mode: 0644]
htsworkflow/frontend/templates/app_base.html [deleted file]
htsworkflow/frontend/templates/base.html
htsworkflow/frontend/templates/flowcell_libraries_app.html [deleted file]
htsworkflow/frontend/templates/inventory/inventory_app.html [deleted file]
htsworkflow/frontend/templates/registration/login.html
htsworkflow/frontend/templates/registration/profile.html
htsworkflow/frontend/templates/samples/lanes_for.html
htsworkflow/frontend/templates/samples/library_detail.html
htsworkflow/frontend/templates/samples/library_index.html