diff -r 81243f1c7cff -r ddbe31de8ad1 src/widgets/Annotation.js --- a/src/widgets/Annotation.js Wed Sep 04 15:47:20 2013 +0200 +++ b/src/widgets/Annotation.js Wed Sep 04 15:51:16 2013 +0200 @@ -15,6 +15,7 @@ on_site: " sur ", tags_: "Mots-clés\u00a0:", description_: "Description\u00a0:", + creator_: "Créé par\u00a0:", excerpt_from: "Extrait de\u00a0:", untitled: "Segment sans titre" }, @@ -23,6 +24,7 @@ on_site: " on ", tags_: "Keywords:", description_: "Description:", + creator_: "Created by\u00a0:", excerpt_from: "Excerpt from:", untitled: "Untitled segment" } @@ -38,7 +40,9 @@ + '( - )' + '

{{l10n.excerpt_from}} ' + '( - )

' - + '
{{l10n.description_}}
' + + '
{{l10n.creator_}}
' + + '{{#show_creator}}

' + + '
{{l10n.description_}}
{{/show_creator}}' + '

' + '
' + '
{{l10n.tags_}}
' @@ -48,6 +52,7 @@ annotation_type : "chap", start_minimized: false, show_arrow : true, + show_creator: true, arrow_position: .5, site_name : "Lignes de Temps", search_on_tag_click: true, @@ -116,6 +121,9 @@ _this.$.find(".Ldt-Annotation-Tags-Block").addClass("Ldt-Annotation-EmptyBlock"); } highlightTitleAndDescription(); + if (_this.show_creator) { + _this.$.find(".Ldt-Annotation-Creator").text(_annotation.creator); + } if (_this.show_annotation_type) { _this.$.find(".Ldt-Annotation-Type").text(_annotation.getAnnotationType().title) }