Merge branch 'ostatus-crop' of git@gitorious.org:~brion/statusnet/brion-fixes into 0.9.x

This commit is contained in:
Brion Vibber 2010-03-19 10:27:03 -07:00
commit 3d1c99c258
6 changed files with 22 additions and 17 deletions

View File

@ -402,6 +402,7 @@ var SN = { // StatusNet
var attachment_more = notice.find('.attachment.more');
if (attachment_more.length > 0) {
attachment_more.click(function() {
$(this).addClass(SN.C.S.Processing);
$.get($(this).attr('href')+'/ajax', null, function(data) {
notice.find('.entry-title .entry-content').html($(data).find('#attachment_view .entry-content').html());
});

View File

@ -500,7 +500,6 @@ class Ostatus_profile extends Memcached_DataObject
$shortSummary = substr($shortSummary,
0,
Notice::maxContent() - (mb_strlen($url) + 2));
$shortSummary .= '…';
$content = $shortSummary . ' ' . $url;
// We mark up the attachment link specially for the HTML output
@ -508,12 +507,10 @@ class Ostatus_profile extends Memcached_DataObject
$attachUrl = common_local_url('attachment',
array('attachment' => $attachment->id));
$rendered = common_render_text($shortSummary) .
' ' .
'<a href="' .
htmlspecialchars($attachUrl) .
'" class="attachment more">' .
// TRANS: expansion link for too-long remote messages
htmlspecialchars(_m('more')) .
'<a href="' . htmlspecialchars($attachUrl) .'"'.
' class="attachment more"' .
' title="'. htmlspecialchars(_m('Show more')) . '">' .
'&#8230;' .
'</a>';
}
}

View File

@ -1284,16 +1284,19 @@ height:16px;
position:relative;
padding-left:16px;
}
.notice .attachment.more {
text-indent:-9999px;
width:16px;
height:16px;
display:inline-block;
overflow:hidden;
vertical-align:middle;
}
#attachments .attachment,
.notice .attachment.more {
padding-left:0;
}
.notice .attachment.more:before {
content:'( ';
}
.notice .attachment.more:after {
content:' )';
}
.notice .attachment img {
position:absolute;
top:18px;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -213,7 +213,7 @@ background-color:transparent;
}
#wrap form.processing input.submit,
.entity_actions a.processing,
#content a.processing,
.dialogbox.processing .submit_dialogbox {
background:#FFFFFF url(../../base/images/icons/icon_processing.gif) no-repeat 47% 47%;
}
@ -410,8 +410,10 @@ background-position: 0 -1714px;
.notice .attachment {
background-position:0 -394px;
}
#attachments .attachment,
.notice .attachment.more {
background-position:0 -2770px;
}
#attachments .attachment {
background:none;
}
.notice-options .notice_reply {

View File

@ -214,7 +214,7 @@ background-color:transparent;
}
#wrap form.processing input.submit,
.entity_actions a.processing,
#content a.processing,
.dialogbox.processing .submit_dialogbox {
background:#FFFFFF url(../../base/images/icons/icon_processing.gif) no-repeat 47% 47%;
}
@ -409,8 +409,10 @@ background-position: 0 -1714px;
.notice .attachment {
background-position:0 -394px;
}
#attachments .attachment,
.notice .attachment.more {
background-position:0 -2770px;
}
#attachments .attachment {
background:none;
}
.notice-options .notice_reply {