kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2009-10-23 12:40 pm

[dw-free] Repeat people/comms/feeds between each section on Manage Circle page

[commit: http://hg.dwscoalition.org/dw-free/rev/8c60dc737e7e]

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

Print standout boxes with section links at the head of every section.

Patch by [staff profile] denise.

Files modified:
  • htdocs/manage/circle/edit.bml
  • htdocs/manage/circle/edit.bml.text
--------------------------------------------------------------------------------
diff -r baea7ab6dbd5 -r 8c60dc737e7e htdocs/manage/circle/edit.bml
--- a/htdocs/manage/circle/edit.bml	Fri Oct 23 00:04:21 2009 -0500
+++ b/htdocs/manage/circle/edit.bml	Fri Oct 23 07:40:19 2009 -0500
@@ -49,6 +49,10 @@ body<=
         $ret .= LJ::form_auth();
         $ret .= "<p>" . BML::ml( '.circle.intro', { aopts1 => "href='#editpeople'", aopts2 => "href='#editcomms'", aopts3 => "href='#editfeeds'" }) . "</p>\n\n";
         $ret .= "<?h2 $ML{'.circle.header'} h2?>\n";
+
+        # little standout box to repeat before each section:
+
+        my $standoutbox .= "<?standout " . BML::ml( '.circle.standout', { aopts1 => "href='#editpeople'", aopts2 => "href='#editcomms'", aopts3 => "href='#editfeeds'" }) . "standout?><br />\n\n";
 
         # does the circle exist
         if ( @trusted_userids || keys %$watch_list || @trusted_by_userids || @watched_by_userids || @member_of_userids ) {
@@ -200,8 +204,11 @@ body<=
 
             # print tables
             $ret .= "<div class='editfriendsframe'>\n";
+            $ret .= $standoutbox;
             $ret .= $generate_table->( 'people', \@person_userids ) . "<br>";
+            $ret .= $standoutbox;
             $ret .= $generate_table->( 'comms', \@comm_userids ) . "<br>";
+            $ret .= $standoutbox;
             $ret .= $generate_table->( 'feeds', \@feed_userids ) . "<br>";
             $ret .= "</div>";
 
diff -r baea7ab6dbd5 -r 8c60dc737e7e htdocs/manage/circle/edit.bml.text
--- a/htdocs/manage/circle/edit.bml.text	Fri Oct 23 00:04:21 2009 -0500
+++ b/htdocs/manage/circle/edit.bml.text	Fri Oct 23 07:40:19 2009 -0500
@@ -57,6 +57,8 @@
 .circle.nocircle=(You do not have any accounts in your circle.)
 
 .circle.none=(None)
+
+.circle.standout=Jump to: <a [[aopts1]]>People</a> | <a [[aopts2]]>Communities</a> | <a [[aopts3]]>Feeds</a> 
 
 .circle.status=Circle status
 
--------------------------------------------------------------------------------