Название вашего журнала (quwiero) wrote in changelog,
Название вашего журнала
quwiero
changelog

[livejournal] r22586: LJSUP-13228: Some html-improvements for ...

Committer: sboronchiev
LJSUP-13228: Some html-improvements for http://www.livejournal.com/admin/sitemessages/manage.bml
U   trunk/cgi-bin/LJ/Widget/AddSiteMessages.pm
U   trunk/cgi-bin/LJ/Widget/ManageSiteMessages.pm
U   trunk/htdocs/admin/sitemessages/add.bml
U   trunk/htdocs/admin/sitemessages/manage.bml
Modified: trunk/cgi-bin/LJ/Widget/AddSiteMessages.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/AddSiteMessages.pm	2012-08-07 12:50:22 UTC (rev 22585)
+++ trunk/cgi-bin/LJ/Widget/AddSiteMessages.pm	2012-08-07 13:45:23 UTC (rev 22586)
@@ -67,7 +67,7 @@
 
     $ret .= $class->start_form;
 
-    $ret .= "<table><tr><td>Start Date:</td><td>";
+    $ret .= "<div class='b-sitemessages'><table><tr><td>Start Date:</td><td>";
     $ret .= $class->html_select
         ( name => 'month_start',
           selected => $start_month,
@@ -167,7 +167,7 @@
 
     $ret .= "<tr><td colspan='2' align='left'>";
     $ret .= $class->html_submit('Submit') . "</td></tr>";
-    $ret .= "</table>";
+    $ret .= "</table></div>";
     $ret .= $class->end_form;
 
     return $ret;

Modified: trunk/cgi-bin/LJ/Widget/ManageSiteMessages.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/ManageSiteMessages.pm	2012-08-07 12:50:22 UTC (rev 22585)
+++ trunk/cgi-bin/LJ/Widget/ManageSiteMessages.pm	2012-08-07 13:45:23 UTC (rev 22586)
@@ -44,7 +44,7 @@
     my @this_months_messages = LJ::SiteMessages->get_all_messages_for_month($year, $month);
     return $ret . "<?p No messages started during the selected month. p?>" unless @this_months_messages;
 
-    $ret .= "<table border='1' cellpadding='3'>";
+    $ret .= "<div class='b-sitemessages'><table border='1' cellpadding='3'>";
     $ret .= "<tr><th>Message</th><th>Countries</th><th>Account type</th><th>Start Date</th><th>End Date</th><th colspan='2'>Active Status</th><th>Edit</th></tr>";
     foreach my $row (@this_months_messages) {
         my $start_date = DateTime->from_epoch( epoch => $row->{time_start}, time_zone => 'America/Los_Angeles' );
@@ -60,7 +60,7 @@
         $ret .= "<td>(<a href='$LJ::SITEROOT/admin/sitemessages/add.bml?mid=$row->{mid}'>edit</a>)</td>";
         $ret .= "</tr>";
     }
-    $ret .= "</table>";
+    $ret .= "</table></div>";
 
     $ret .= $class->end_form;
 

Modified: trunk/htdocs/admin/sitemessages/add.bml
===================================================================
--- trunk/htdocs/admin/sitemessages/add.bml	2012-08-07 12:50:22 UTC (rev 22585)
+++ trunk/htdocs/admin/sitemessages/add.bml	2012-08-07 13:45:23 UTC (rev 22586)
@@ -8,6 +8,8 @@
     use LJ::SiteMessages;
     use LJ::Widget::SiteMessages;
     use LJ::Widget::AddSiteMessages;
+	
+	LJ::need_res('stc/admin/sitemessages.css');
 
     my $remote = LJ::get_remote();
 
@@ -23,7 +25,7 @@
     LJ::Widget->handle_post(\%POST, qw(AddSiteMessages));
     
     # site messages preview
-    $ret .= "<div style='float: right; width: 400px;'>";
+    $ret .= "<div style='float: right; position: relative; z-index: 2; width: 400px;'>";
     $ret .= LJ::Widget::SiteMessages->render( all => 1 ) . "</div>";
     
     # add message form

Modified: trunk/htdocs/admin/sitemessages/manage.bml
===================================================================
--- trunk/htdocs/admin/sitemessages/manage.bml	2012-08-07 12:50:22 UTC (rev 22585)
+++ trunk/htdocs/admin/sitemessages/manage.bml	2012-08-07 13:45:23 UTC (rev 22586)
@@ -5,6 +5,8 @@
     use strict;
     use vars qw(%GET %POST $title $headextra @errors @warnings);
     use Class::Autouse qw( LJ::SiteMessages );
+	
+	LJ::need_res('stc/admin/sitemessages.css');
 
     my $remote = LJ::get_remote();
 
@@ -20,7 +22,7 @@
     LJ::Widget->handle_post(\%POST, qw(ManageSiteMessages));
 
     # spotlight preview
-    $ret .= "<div style='float: right; width: 400px;'>";
+    $ret .= "<div style='float: right; position: relative; z-index: 2; width: 400px;'>";
     $ret .= LJ::Widget::SiteMessages->render( all => 1 ) . "</div>";
 
     # activate/inactive site messages form

Tags: bml, livejournal, pm, quwiero, sboronchiev
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