afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-04-03 05:50 pm

[dw-free] <ul> showing without bullet points on faq.bml and faqbrowse.bml

[commit: http://hg.dwscoalition.org/dw-free/rev/7d27cfb873ab]

http://bugs.dwscoalition.org/show_bug.cgi?id=667

Formatting for <ul> and <ol>s in FAQs.

Patch by [staff profile] denise.

Files modified:
  • htdocs/stc/faq.css
  • htdocs/support/faq.bml
  • htdocs/support/faqbrowse.bml
--------------------------------------------------------------------------------
diff -r 4a3c71310878 -r 7d27cfb873ab htdocs/stc/faq.css
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/htdocs/stc/faq.css	Fri Apr 03 17:49:49 2009 +0000
@@ -0,0 +1,9 @@
+#faq ol li {
+    margin-left: 3em;
+    list-style: decimal;
+}
+
+#faq ul li {
+    margin-left: 3em;
+    list-style: disc;
+}
\ No newline at end of file
diff -r 4a3c71310878 -r 7d27cfb873ab htdocs/support/faq.bml
--- a/htdocs/support/faq.bml	Fri Apr 03 17:40:07 2009 +0000
+++ b/htdocs/support/faq.bml	Fri Apr 03 17:49:49 2009 +0000
@@ -8,6 +8,7 @@ body<=
     use vars qw(%GET);
 
     LJ::set_active_crumb('faq');
+    LJ::need_res( 'stc/faq.css' );
 
     my $curlang = BML::get_language();
     my $deflang = BML::get_language_default();
@@ -23,6 +24,7 @@ body<=
     my %faqcat; my %faqq;
     my $ret = "";
 
+    $ret .= "<div id='faq'>";
     $ret .= "<?h1 $ML{'.faq.title'} h1?>";
     $ret .= "<?p $ML{'.faq.title.text'} p?>";
 
@@ -104,6 +106,7 @@ body<=
     $ret .= "<?hr?>";
     $ret .= BML::ml('.faq.back.link', {backlink=>'href="./"'});
 
+    $ret .= "</div>";
     return $ret;
 }
 
diff -r 4a3c71310878 -r 7d27cfb873ab htdocs/support/faqbrowse.bml
--- a/htdocs/support/faqbrowse.bml	Fri Apr 03 17:40:07 2009 +0000
+++ b/htdocs/support/faqbrowse.bml	Fri Apr 03 17:49:49 2009 +0000
@@ -25,6 +25,8 @@ body<=
 {
     use strict;
     use vars qw(%GET);
+
+    LJ::need_res( 'stc/faq.css' );
 
     # get faqid and redirect to faq.bml if none
     my $faqidarg = $GET{'faqid'} + 0;
@@ -57,6 +59,8 @@ body<=
     my $remote = LJ::get_remote();
     my $user;
     my $user_url;
+
+    $$body .= "<div id='faq'>";
 
     # Get remote username and journal URL, or example user's username and journal URL
     if ($remote) {
@@ -268,6 +272,8 @@ body<=
      # we're dynamic, set title as crumb title
      LJ::set_dynamic_crumb($_[1]->{'title'}, 'faq');
 
+     $$body .= "</div>";
+
      return $_[1]->{'body'};
 }
 _code?>
--------------------------------------------------------------------------------