12 {name: "data", noDom: true, allowHtml: true},
13 {classes: "info", components: [
14 {noDom: true, content: "Posted "},
15 {name: "date", noDom: true},
16 {noDom: true, content: ". "},
17 {name: "permalink", kind: "blerg.Link", content: "[permalink]"},
18 {noDom: true, content: " "},
19 {name: "reply", kind: "blerg.Link", content: "[reply]", onclick: "postPopup"}
23 this.inherited(arguments);
25 this.timestampChanged();
28 dataChanged: function() {
29 this.$.data.setContent(blerg.Util.blergFormat(this.data));
31 timestampChanged: function() {
32 this.$.date.setContent(new Date(this.timestamp * 1000).toString());
34 authorChanged: function() {
37 recordChanged: function() {
40 updateLinks: function() {
41 this.$.permalink.setHref(baseURL + enyo.macroize("/#{$author}/{$record}", this));
43 postPopup: function() {
44 this.bubble('onPostVisibility', {
46 data: enyo.macroize("@{$author}/{$record}", this)
53 name: "blerg.TagRecord",
58 name: "blerg.BriefRecord",
61 {name: "authorlink", kind: "blerg.Link", classes: "author ref"},
62 {noDom: true, content: " "},
63 {name: "data", noDom: true}
65 dataChanged: function() {
66 var d = this.data.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
67 this.$.data.setContent(d);
69 timestampChanged: function() { },
70 updateLinks: function() {
71 this.$.authorlink.setHref(baseURL + '/#' + this.author);
72 this.$.authorlink.setContent('@' + this.author);