add notice id

darcs-hash:20080520153629-84dde-bcbde039e19b50b75528e30881eb877c276068ee.gz
This commit is contained in:
Evan Prodromou 2008-05-20 11:36:29 -04:00
parent f614bb5bf2
commit f08b9d1bc5
2 changed files with 4 additions and 3 deletions

View File

@ -31,8 +31,8 @@
- doc action - doc action
+ default to public stream + default to public stream
- default avatar - default avatar
- default HTML type + default HTML type
- set Content-Type + set Content-Type
+ show current values in profile settings + show current values in profile settings
+ save profile URL in profilesettings + save profile URL in profilesettings
+ save profile URL on registration + save profile URL on registration

View File

@ -31,7 +31,8 @@ class StreamAction extends Action {
function show_notice($notice) { function show_notice($notice) {
$profile = $notice->getProfile(); $profile = $notice->getProfile();
# XXX: RDFa # XXX: RDFa
common_element_start('div', array('class' => 'notice')); common_element_start('div', array('class' => 'notice',
'id' => 'notice-' . $notice->id));
$avatar = $profile->getAvatar(AVATAR_STREAM_SIZE); $avatar = $profile->getAvatar(AVATAR_STREAM_SIZE);
common_element_start('a', array('href' => $profile->profileurl)); common_element_start('a', array('href' => $profile->profileurl));
common_element('img', array('src' => ($avatar) ? $avatar->url : DEFAULT_STREAM_AVATAR, common_element('img', array('src' => ($avatar) ? $avatar->url : DEFAULT_STREAM_AVATAR,