• Sean Hammond's avatar
    Fix broken card titles for some annotations · ca26970b
    Sean Hammond authored
    This fixes two issues on the annotation cards for some annotations:
    
    1. If the annotated document has a non-http(s) URI (e.g. a local file://
       URI) then don't hyperlink the document's title to that URI
    
    2. If the annotated document has no .domain value or its domain is the
       same as its title then don't display anything, instead of displaying
       a pair of emtpy braces ().
    
    To fix this move the logic for formatting an annotation's document's title
    and domain into AngularJS filters where it can be tested, instead of in
    the template.
    ca26970b
annotation.html 7.3 KB