Index: decisions.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/decisions/decisions.module,v
retrieving revision 1.73
diff -u -r1.73 decisions.module
--- decisions.module	3 Oct 2006 07:41:14 -0000	1.73
+++ decisions.module	4 Oct 2006 21:44:51 -0000
@@ -458,6 +458,20 @@
   return $output;
 }
 
+function theme_decisions_bar($title, $percentage, $votes, $block) {
+  if ($block) {
+    $output  = '<div class="text">'. $title .'</div>';
+    $output .= '<div class="bar"><div style="width: '. $percentage .'%;" class="foreground"></div></div>';
+    $output .= '<div class="percent">'. $percentage .'%</div>';
+  }
+  else {
+    $output  = '<div class="text">'. $title .'</div>';
+    $output .= '<div class="bar"><div style="width: '. $percentage .'%;" class="foreground"></div></div>';
+    $output .= '<div class="percent">'. $percentage .'% ('. $votes .')</div>';
+  }
+  return $output;
+}
+
 /**
  * View the voting form.
  *
Index: modes/poll.include
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/decisions/modes/poll.include,v
retrieving revision 1.12
diff -u -r1.12 poll.include
--- modes/poll.include	19 Sep 2006 19:35:44 -0000	1.12
+++ modes/poll.include	4 Oct 2006 21:59:26 -0000
@@ -99,11 +99,7 @@
 				$votes[$i] = 0;
 			}
 			$percentage = round(100 * $votes[$i] / $totalVotes, 0);
-			$output .= '<div class="text">' . $opt . '</div><div class="bar">'
-				. '<div style="width: '
-				. $percentage . '%" class="foreground"></div></div><div class="percent">'
-				. $percentage . '% (' . $votes[$i] . ' '
-				. ($votes[$i] == 1? t('vote') : t('votes')) . ')</div>';
+			$output .= theme('poll_bar',  check_plain($opt), $percentage, format_plural($votes[$i], '1 vote', '%count votes'), $block);
 		}
 		$output .= '</div>';
 	}
