:data => data,
:interval_labels => labels,
:title => "Voters Over Time",
- :size => "700x400",
+ :size => "270x230",
:x_axis_label => scale,
:y_axis_label => "Number of Votes")
send_data(*graph.output)
@results = @election.results
@candidates = {}
@election.candidates.each {|c| @candidates[c.id] = c}
+ @sidebar_content = render_to_string :partial => 'results_sidebar'
end
def my_quickvotes
--- /dev/null
+<%= image_tag( graph_url( :action => 'votes_per_interval', :id => @election ))%>
+
<div style="clear:both;"></div>
</div>
-<div class="main-content">
-
<p><label for="quickvote_candidate_names">Choices</p>
<!-- the list of candidates -->
<% end %>
-</div>
<span class="subheader">Results</span>
</div>
-<div class="main-content">
-
<% if @election.shortdesc %>
<p><strong>Vote Description:</strong></p>
<blockquote><em><%=h @election.shortdesc %></em>
<% end %>
</table>
-<%=image_tag( graph_url( :action => 'votes_per_interval', :id => @election ))%>
<br />
+<!--
<%= image_tag( graph_url( :action => 'choices_positions', :id => @election ) ) %><br />
+-->
-</div>
<div style="clear:both;"></div>
</div>
-<div class="main-content">
-
<p>Please direct voters to:</p>
<blockquote><strong>
participate in this election.</p>
<p><%= link_to "Jump to QuickVote", quickvote_url( :ident => @quickvote.name ) %></p>
-</div>
<span class="subheader">Vote Recorded Successfully</span>
</div>
-<div class="main-content">
-
<p>Your vote has been recorded with the following ranked
preferences:</p>
<li><%= link_to "View Current Results", quickaction_url( :ident => @voter.election.name, :action => 'results' ) %></li>
</ul>
-</div>
overflow: hidden;
}
+#page-title {
+ margin: -20px -20px 1em -20px;
+}
+
.plain-header {
- margin: 1em -1.2em 1em -1.2em;
+ margin: 1em -20px 1em -20px;
}
.header {
#main-box {
float: right;
- width: 611px;
- padding: 0;
+ width: 571px;
+ padding: 20px;
background: #f9f9f9;
border: 1px solid #b3b3b3;
}
-.main-content {
- margin: 1.2em;
- line-height: 1.5em;
- text-color: #454545;
-}
-
-.main-content p, .main-content blockquote, .main-content ul {
+#main-box p, #main-box blockquote, #main-box ul {
margin-bottom: 1em;
}