Urg.. JST doesn't support inline comments
Urg.. JST doesn't support inline comments
Merge branch 'public_notes' into memberships
Only attempt to load document's annotations if account is logged in.

This is much more efficient and will reduce load on servers. Thanks Ted!
Extend Document#canonical to include annotations_url endpoint

If document's status is PRE/POST moderate or an account that has
permissions is present, include an annotations_url endpoint on the
document's canonical representation.

Right now it's defaulting to an agnostic protocol (no http or https specified), but
may need to be forced to use https in future
Fix for missed renamed variable 'annot'->'note'
Annotations endpoint requires SSL.

Since annotations require a login and the session cookie is set as secure.  Non ssl attempts fail login check.
Don't remind users that they are already logged in, just tell them it worked fine
new version of viewer that uses annotations_url endpoint
new viewer with bugfix for showing note edit controls inappropriately
Only return the account in the reply if it's logged in
Merge branch 'memberships' into public_notes
new version with bugfix for removing all  notes on logout
Allow specifying Sanitation level as an option to html_attr

Now that Annotations can be created by the general public, it's
desirable that they are only allowed a restricted subset of html.

This extends the html_attr method of the Sanitized module to use the
Rails convention of passing options as the last values in a
meta-programming class method.  The level can now be specified like so:

  html_attr :sanitized_attr, :another_sanitized_attr, :level=>:basic

The default level remains :super_relaxed as it was before
Use an hash for accessing levels vs const_get

Avoids converting the symbol to an up-cased string and may be safer.
Account has two c's.. whoopsi daisy
Merge branch 'memberships' into public_notes
new viewer css with latest annotating code
Remove output from migration

On large migration, scrolled my terminal past it's scroll buffer
length
Merge branch 'public_notes' of https://github.com/documentcloud/documentcloud into public_notes