changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[ljcom] r6983: LJSUP-3069: Find you Friends page - HTML...

Committer: ssafronova
LJSUP-3069: Find you Friends page - HTML/CSS coding updated

U   trunk/cgi-bin/LJ/Widget/FindFriendsResultsAdd.pm
U   trunk/cgi-bin/LJ/Widget/FindFriendsResultsInvite.pm
U   trunk/htdocs/stc/widgets/friendsfinder.css
Modified: trunk/cgi-bin/LJ/Widget/FindFriendsResultsAdd.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/FindFriendsResultsAdd.pm	2009-01-19 07:43:17 UTC (rev 6982)
+++ trunk/cgi-bin/LJ/Widget/FindFriendsResultsAdd.pm	2009-01-19 10:24:19 UTC (rev 6983)
@@ -155,10 +155,12 @@
 
     my $username = LJ::load_userids(map { $_->[2] } @{$self->{job_result}->{have_userid}});
 
+    $ret .= '<p class="friendsfound">';
     $ret .= $self->ml('widget.findfriendsresultsadd.found', { found => @{$self->{job_result}->{have_userid}}
                                                                        + @{$self->{job_result}->{no_userid}}, 
                                                               email => $self->{job_result}->{'email'} });
 
+    $ret .= '</p>';
     $ret .= '<div class="mailfinder addfriends">';
     $ret .= $self->start_form( id => $self->input_prefix . "_add_friends" );
     $ret .= '<h4>' . $self->ml('widget.findfriendsresultsadd.header') . '</h4>';
@@ -176,7 +178,9 @@
         "
     );
     $ret .= '</th><th><label for="' . $self->input_prefix . '_all1">' . $self->ml('widget.findfriendsresultsadd.select_all') . '</label></th></tr>';
-    $ret .= '</table><div class="results-ruler">';
+    $ret .= '</table><div class="results-ruler"';
+    $ret .= ' style="height: auto"' if @{$self->{job_result}->{have_userid}} + @{$self->{job_result}->{no_userid}} < 10;
+    $ret .= '>';
     $ret .= '<table class="userslist-table header" cellspacing="0" cellpadding="0">';
     my $rc = 0;
     $ret .= join('', # public main rows
@@ -202,10 +206,11 @@
     $ret .= '</div>'; # id: table_container
     $ret .= '<p>' . $self->ml('widget.findfriendsresultsadd.about_results') . '</p>';
     $ret .= $self->html_submit( button => $self->ml('widget.findfriendsresultsadd.add_friends') , { class => 'add_btn'} );
+    $ret .= '<p>';
     $ret .= $self->ml('widget.findfriendsresultsadd.continue', 
                       { aopts_invite => "href='" . $self->{invite_url} . "' onclick='return goNext()'",
                         aopts_start => "href='" . $self->{again_url} . "' onclick='return goNext()'"});
-    $ret .= '</div>';
+    $ret .= '</p></div>';
 
     my $remote = $self->get_effective_remote;
     $ret .= "<h4 class='mymessage'>" . $self->ml('widget.findfriendsresultsadd.message_header') . "</h4>";
@@ -214,9 +219,9 @@
     $ret .= '<label for="' . $self->input_prefix . '_suppress_email">' . $self->ml('widget.findfriendsresultsadd.suppress_email') . '</label>';
     $ret .= '</div>';
     $ret .= "<div class='usermessage'>";
-    $ret .= '<b>' . $self->ml('widget.findfriendsresultsadd.subject_header') . "</b> ";
+    $ret .= '<h4 class="messagesubj">' . $self->ml('widget.findfriendsresultsadd.subject_header') . "</h4> ";
     $ret .= $self->ml('widget.findfriendsresultsadd.subject', { username => $self->get_effective_remote->user} );
-    $ret .= "<span class='messagetxt'>" . $self->ml('widget.findfriendsresultsadd.message_body_header') . "</span>";
+    $ret .= "<h4 class='messagetxt'>" . $self->ml('widget.findfriendsresultsadd.message_body_header') . "</h4>";
     $ret .= '<div>';
     $ret .= $self->ml('widget.findfriendsresultsadd.message_body',
                        { username => $remote->user,

Modified: trunk/cgi-bin/LJ/Widget/FindFriendsResultsInvite.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/FindFriendsResultsInvite.pm	2009-01-19 07:43:17 UTC (rev 6982)
+++ trunk/cgi-bin/LJ/Widget/FindFriendsResultsInvite.pm	2009-01-19 10:24:19 UTC (rev 6983)
@@ -150,7 +150,9 @@
     $ret .= $self->html_text( name => "filter", type => "search", size => 20, class => "filter", id => "filter", 
                               onkeyup => "search_table.onsearch(this.value)", onsearch => "search_table.onsearch(this.value)");
     $ret .= '</th></tr></table>';
-    $ret .= '<div class="results-ruler"><table class="userslist-table header" cellspacing="0" cellpadding="0"><tbody id="search_here">';
+    $ret .= '<div class="results-ruler"';
+    $ret .= ' style="height: auto"' if @{$self->{job_result}->{for_invite}} < 10;
+    $ret .= '><table class="userslist-table header" cellspacing="0" cellpadding="0"><tbody id="search_here">';
     my $rc = 0;
     $ret .= join('', # all main rows
             map { "<tr style=\"background-color:" . ( ($rc++ & 1) ? '#efefef' : '#ffffff') . "\" class=\"tr$rc\"><td class=\"check\">"
@@ -161,7 +163,7 @@
                   . '<label for="' . $self->input_prefix . '_email' . $rc . '">' . LJ::ehtml($_->[1]) . '</label></td></tr>' } 
             @{$self->{job_result}->{for_invite}} );
     $ret .= '</tbody></table></div>';
-    $ret .= $self->ml('widget.findfriendsresultsinvite.about_results');
+    $ret .= '<p>' . $self->ml('widget.findfriendsresultsinvite.about_results') . '</p>';
     $ret .= '</div>';
    
     my $remote = $self->get_effective_remote;
@@ -185,9 +187,9 @@
     $ret .= '<label for="' . $self->input_prefix . '_suppress_email">' . $self->ml('widget.findfriendsresultsinvite.suppress_email') . '</label>';
     $ret .= '</div>';
     $ret .= "<div class='usermessage'>";
-    $ret .= '<b>' . $self->ml('widget.findfriendsresultsinvite.subject_header') . "</b> ";
+    $ret .= '<h4 class="messagesubj">' . $self->ml('widget.findfriendsresultsinvite.subject_header') . "</h4> ";
     $ret .= $self->ml('widget.findfriendsresultsinvite.subject', { username => $self->get_effective_remote->user} );
-    $ret .= "<span class='messagetxt'>" . $self->ml('widget.findfriendsresultsinvite.message_body_header') . "</span>";
+    $ret .= "<h4 class='messagetxt'>" . $self->ml('widget.findfriendsresultsinvite.message_body_header') . "</h4>";
     $ret .= '<div>';
     $ret .= $message_start;
     $ret .= '<br/>' . $self->html_textarea( name => "message_body", cols => 100, rows => 5, class => "message_body",

Modified: trunk/htdocs/stc/widgets/friendsfinder.css
===================================================================
--- trunk/htdocs/stc/widgets/friendsfinder.css	2009-01-19 07:43:17 UTC (rev 6982)
+++ trunk/htdocs/stc/widgets/friendsfinder.css	2009-01-19 10:24:19 UTC (rev 6983)
@@ -18,6 +18,10 @@
     padding-bottom: 20px;
 }
 
+.addfriends P, P.friendsfound, .invite P {
+    margin: 0px;
+}
+
 .exists {
     margin-bottom: 0;
     padding: 3px 0px 6px 0;
@@ -138,8 +142,12 @@
     width: 15em;
 }
 
+.messagesubj {
+    display: inline;
+    font-weight: bold;
+}
+
 .messagetxt {
-   display: block;
    margin: 1em 0 5px 0;
    font-weight: bold;
 }

Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments