Making WordPress.org

Changeset 1222


Ignore:
Timestamp:
02/04/2015 11:46:59 PM (12 years ago)
Author:
iandunn
Message:

WordCamp Payments Dashboard: Reorganize the contents of the tabs.

Overview contained all statuses, which will quickly become cluttered with paid requests, and therefore be useless for seeing the most relevant requests quickly. Overdue is now the default tab, since it's the most urgent. Paid requests have been moved to their own tab, so that they're accessible, but out of the way.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/class-list-table.php

    r1000 r1222  
    4545         */
    4646        public function set_view( $view ) {
    47                 $this->view = 'overview';
    48                 if ( in_array( $view, array( 'overview', 'pending', 'overdue' ) ) )
     47                $this->view = 'overdue';
     48                if ( in_array( $view, array( 'pending', 'overdue', 'paid' ) ) )
    4949                        $this->view = $view;
    5050        }
    … …  
    8787                } elseif ( 'pending' == $this->view ) {
    8888                        $where .= " AND `status` = 'unpaid' ";
     89                } elseif ( 'paid' == $this->view ) {
     90                        $where .= " AND `status` = 'paid' ";
    8991                }
    9092
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/wordcamp-payments-network.php

    r999 r1222  
    200200                                <form id="posts-filter" action="" method="get">
    201201                                        <input type="hidden" name="page" value="wcp-dashboard" />
    202                                         <input type="hidden" name="wcp-section" value="overview" />
     202                                        <input type="hidden" name="wcp-section" value="overdue" />
    203203                                        <?php self::$list_table->display(); ?>
    204204                                </form>
    … …  
    225225                        return strtolower( $_REQUEST['wcp-section'] );
    226226
    227                 return 'overview';
     227                return 'overdue';
    228228        }
    229229
    … …  
    234234                $current_section = self::get_current_tab();
    235235                $sections = array(
    236                         'overview' => 'Overview',
    237236                        'overdue' => 'Overdue',
    238237                        'pending' => 'Pending',
     238                        'paid'    => 'Paid',
    239239                );
    240240
Note: See TracChangeset for help on using the changeset viewer.