fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-11-22 09:28 am

[dw-free] Revamp /update

[commit: http://hg.dwscoalition.org/dw-free/rev/0f4240eb77ab]

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

Settle on the boxiest look; remove versions with no headers. (still needs a
bit of tweaking)

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/DW/Controller/Entry.pm
  • htdocs/js/jquery.postoptions.js
  • htdocs/stc/postform-minimal.css
  • views/entry.tt
--------------------------------------------------------------------------------
diff -r a6ff29076fd3 -r 0f4240eb77ab cgi-bin/DW/Controller/Entry.pm
--- a/cgi-bin/DW/Controller/Entry.pm	Tue Nov 22 17:09:40 2011 +0800
+++ b/cgi-bin/DW/Controller/Entry.pm	Tue Nov 22 17:29:56 2011 +0800
@@ -202,11 +202,6 @@
         $vars->{login_chal} = LJ::challenge_generate( 3600 ); # one hour to post if they're not logged in
     }
 
-    $vars->{vclass} = [qw(
-        midimal
-        minimal
-        maximal
-    )]->[$get->{v}||0];
     $vars->{show_unimplemented} = $get->{highlight} ? 1 : 0;
     $vars->{betacommunity} = LJ::load_user( "dw_beta" );
     return DW::Template->render_template( 'entry.tt', $vars );
diff -r a6ff29076fd3 -r 0f4240eb77ab htdocs/js/jquery.postoptions.js
--- a/htdocs/js/jquery.postoptions.js	Tue Nov 22 17:09:40 2011 +0800
+++ b/htdocs/js/jquery.postoptions.js	Tue Nov 22 17:29:56 2011 +0800
@@ -104,7 +104,6 @@
         $(".column").sortable( "disable" ).enableSelection();
     $(document.body).removeClass("screen-customize-mode");
 
-    $("#post_entry").toggleClass("midimal");
     $("#post-options").slideUp();
 }
 
@@ -112,8 +111,6 @@
     if ( $.fn.sortable )
         $(".column").sortable( "enable" ).disableSelection();
     $(document.body).addClass("screen-customize-mode");
-
-    $("#post_entry").toggleClass("midimal");
 }
 
 });
diff -r a6ff29076fd3 -r 0f4240eb77ab htdocs/stc/postform-minimal.css
--- a/htdocs/stc/postform-minimal.css	Tue Nov 22 17:09:40 2011 +0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-.minimal .component h3 {
-  display: none;
-}
-
-.minimal .component label, .minimal #post_as fieldset legend {
-  width: 40% !important;
-  padding-right: 5px;
-  text-align: right;
-}
-
-.minimal #primary .component, .minimal #secondary .component, .minimal #tertiary .component {
-  border: 0;
-}
-
-.minimal .column {
-  border-width: 1px;
-  border-style: solid;
-}
-
-
-.midimal .component h3 {
-  font-weight: bold;
-  font-size: 100%;
-  background-color: transparent;
-  text-decoration: underline;
-  padding-top: 0;
-  padding-bottom: 0;
-}
-
-.midimal .component label, .midimal #post_as fieldset legend {
-  width: 40% !important;
-  padding-right: 5px;
-  text-align: right;
-}
-
-.midimal #primary .component, .midimal #secondary .component, .midimal #tertiary .component {
-  border: 0;
-}
-
-.midimal .column {
-  border-width: 1px;
-  border-style: solid;
-}
-
diff -r a6ff29076fd3 -r 0f4240eb77ab views/entry.tt
--- a/views/entry.tt	Tue Nov 22 17:09:40 2011 +0800
+++ b/views/entry.tt	Tue Nov 22 17:29:56 2011 +0800
@@ -66,8 +66,6 @@
 [% sections.head = BLOCK %]
 <meta name="viewport" content="width=device-width" />
 
-[% dw.need_res( "stc/postform-minimal.css" ) %]
-
 [% IF show_unimplemented %]
 <style type="text/css">
 .unimplemented {
@@ -151,8 +149,7 @@
 [%- END -%]
 
 <form method="POST" id="post_entry" action="" class="
-        [%- formwidth == "narrow" ? "entry-partial-width" : "entry-full-width" -%]
-        [%- " $vclass" -%]">
+        [%- formwidth == "narrow" ? "entry-partial-width" : "entry-full-width" -%]">
     <input type="hidden" id="nojs" value="1" name="nojs" />
 
     [% IF login_chal %]
--------------------------------------------------------------------------------