"+
""+
""+
"
"+
"a few seconds ago"+
" "+
"
"+
"from "+
""+source+""+ // may have a link
"";
if (data['conversation_url']) {
ni = ni+"
in context";
}
if (repeat) {
ru = repeat['user'];
ni = ni + "
Repeated by " +
"" +
""+ ru['screen_name'] + "";
}
ni = ni+"
";
ni = ni + "";
if (RealtimeUpdate._userid != 0) {
var input = $("form#form_notice fieldset input#token");
var session_key = input.val();
ni = ni+RealtimeUpdate.makeFavoriteForm(data['id'], session_key);
ni = ni+RealtimeUpdate.makeReplyLink(data['id'], data['user']['screen_name']);
if (RealtimeUpdate._userid == responsible['id']) {
ni = ni+RealtimeUpdate.makeDeleteLink(data['id']);
} else if (RealtimeUpdate._userid != user['id']) {
ni = ni+RealtimeUpdate.makeRepeatForm(data['id'], session_key);
}
}
ni = ni+"
";
ni = ni+"";
return ni;
},
/**
* Creates a favorite button.
*
* @param {number} id: notice ID to work with
* @param {String} session_key: session token for form CSRF protection
* @return {String} HTML fragment
*
* @fixme this replicates core StatusNet code, making maintenance harder
* @fixme sloppy HTML building (raw concat without escaping)
* @fixme no i18n support
*
* @access private
*/
makeFavoriteForm: function(id, session_key)
{
var ff;
ff = "