perazhog (perazhog) wrote in changelog,
perazhog
perazhog
changelog

[livejournal] r23559: LJSUP-14473: Admin pages' style and code...

Committer: egeraskin
LJSUP-14473: Admin pages' style and code refactoring
U   trunk/cgi-bin/LJ/Widget/AddSiteMessages.pm
U   trunk/cgi-bin/LJ/Widget/ManageSiteMessages.pm
Modified: trunk/cgi-bin/LJ/Widget/AddSiteMessages.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/AddSiteMessages.pm	2013-01-17 13:53:09 UTC (rev 23558)
+++ trunk/cgi-bin/LJ/Widget/AddSiteMessages.pm	2013-01-17 13:54:08 UTC (rev 23559)
@@ -67,7 +67,7 @@
 
     $ret .= $class->start_form;
 
-    $ret .= "<div class='b-sitemessages'><table><tr><td>Start Date:</td><td>";
+    $ret .= "<div class='b-adminpage b-adminpage-max b-adminpage-padding'><table class='b-admin-table'><tr><td>Start Date:</td><td>";
     $ret .= $class->html_select
         ( name => 'month_start',
           selected => $start_month,

Modified: trunk/cgi-bin/LJ/Widget/ManageSiteMessages.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/ManageSiteMessages.pm	2013-01-17 13:53:09 UTC (rev 23558)
+++ trunk/cgi-bin/LJ/Widget/ManageSiteMessages.pm	2013-01-17 13:54:08 UTC (rev 23559)
@@ -25,7 +25,8 @@
         $year  = $time[5]+1900;
         $month = $time[4]+1;
     }
-
+    
+    $ret .= "<div class='b-adminpage b-adminpage-padding'>";
     $ret .= "<?p (<a href='$LJ::SITEROOT/admin/sitemessages/add.bml'>Add a site message</a>) p?>";
     $ret .= "<?p Select a month to view all messages that started during that month. p?>";
 
@@ -43,8 +44,9 @@
 
     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 .= "</div>";
 
-    $ret .= "<div class='b-sitemessages'><table border='1' cellpadding='3'>";
+    $ret .= "<div class='b-adminpage b-adminpage-max b-adminpage-padding'><table>";
     $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' );

Tags: egeraskin, livejournal, perazhog, pm
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