better formatting in profile

darcs-hash:20080521134849-84dde-7201729e692bccfc9649fb30a1d21a47a5eb4259.gz
This commit is contained in:
Evan Prodromou 2008-05-21 09:48:49 -04:00
parent 139c7a7979
commit b86a51ec8a
2 changed files with 3 additions and 4 deletions

View File

@ -92,8 +92,6 @@ class ShowstreamAction extends StreamAction {
function show_profile($profile) {
common_element_start('div', 'profile');
common_element('h2', 'nickname', $profile->nickname);
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
if ($avatar) {
common_element('img', array('src' => $avatar->url,
@ -108,11 +106,11 @@ class ShowstreamAction extends StreamAction {
'class' => 'fullname'),
$profile->fullname);
} else {
common_element('span', 'fullname', $profile->fullname);
common_element('div', 'fullname', $profile->fullname);
}
}
if ($profile->location) {
common_element('span', 'location', $profile->location);
common_element('div', 'location', $profile->location);
}
if ($profile->bio) {
common_element('div', 'bio', $profile->bio);

View File

@ -129,3 +129,4 @@
- form token in login to prevent XSS
- release 1.0
- Atom Publishing Protocol
- "Universal" public feed