#use wml::std::tags #use wml::debian::languages #use wml::debian::common_tags #use wml::debian::openrecode

%body

Date Time Line Summary Nominations Withdrawals Debate Platforms Proposer Proposal A Proposer Proposal B Proposer Proposal C Proposer Proposal D Proposer Proposal E Proposer Proposal F Proposer Proposal G Proposer Proposal H Proposer Seconds Proposal A Seconds Proposal B Seconds Proposal C Seconds Proposal D Seconds Proposal E Seconds Proposal F Seconds Proposal G Seconds Proposal H Seconds Opposition Text Proposal A Proposal B Proposal C Proposal D Proposal E Proposal F Proposal G Proposal H Choices Amendment Proposer Amendment Seconds Amendment Text Amendment Proposer A Amendment Seconds A Amendment Text A Amendment Proposer B Amendment Seconds B Amendment Text B Amendment Proposer C Amendment Seconds C Amendment Text C Amendments Proceedings Majority Requirement Data and Statistics Quorum Minimum Discussion Ballot Forum Outcome Waiting for Sponsors In Discussion Voting Open Decided Withdrawn Other Home Vote Page How To Submit a Proposal Amend a Proposal Follow a Proposal Read a Result Vote %body use Encode; sub get_issues_list { my ( $path, $number, $current_dir ) = @_; $str=""; $proposal=""; $discussion=""; $voting=""; $finished=""; $unknown=""; opendir(DIR, "$current_dir"); @years = grep { /^\d+$/ && -d "$current_dir/$_" } readdir(DIR); closedir (DIR); $count = 0; foreach $year (reverse sort @years) { opendir(DIR, "$current_dir/$year"); @files = grep { /^vote.*.wml$/ && -f "$current_dir/$year/$_" } readdir(DIR); @files = reverse sort @files; closedir DIR; foreach (@files) { $count++; my $fh = openrecode("$(VOTE)/$year/$_", "$current_dir/$year/$_"); if ( /(vote.*).wml/ ) { $base = $1; } $title = ''; $status = ''; # Parsing files to find: # - title # - status foreach $line (<$fh>) { if ($line =~ /^#.*/ || $line =~ /^\s*$/ ) { next; # Ignore empty line, commented or like "#use ..." } elsif ($line =~ /^(.*)<\/define-tag>/) { $title = $1; } elsif ($line =~ /^(.*)<\/define-tag>/) { $status = $1; } else { next; } if ( $title && $status ) { $str1 = "
  • $title
  • \n"; last; } elsif ( $title ) { $str1 = "
  • $title
  • \n"; } } if ( $status eq "P" ) { $proposal .= $str1; } elsif ( $status eq "D" ) { $discussion .= $str1; } elsif ( $status eq "V" ) { $voting .= $str1; } elsif ( $status eq "F" ) { $finished .= $str1; } elsif ( $status eq "W" ) { $withdrawn .= $str1; } else { $unknown .= $str1; } close $fh; if ($count eq $number) { last; } } } close DIR; if ( $proposal ne "" ) { $str .= '
  • '; $str .= '
      '; $str .= "$proposal"; $str .= '
  • '; } if ( $discussion ne "" ) { $str .= '
  • '; $str .= '
      '; $str .= "$discussion"; $str .= '
  • '; } if ( $voting ne "" ) { $str .= '
  • '; $str .= '
      '; $str .= "$voting"; $str .= '
  • '; } if ( $finished ne "" ) { $str .= '
  • '; $str .= '
      '; $str .= "$finished"; $str .= '
  • '; } if ( $withdrawn ne "" ) { $str .= '
  • '; $str .= '
      '; $str .= "$withdrawn"; $str .= '
  • '; } if ( $unknown ne "" ) { $str .= '
  • '; $str .= '
      '; $str .= "$unknown"; $str .= '
  • '; } return $str; }
    {#check_trans#} {#mainbody#}
    {#mainbody#: