X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/ab4adc70d731a74110ea284e8747a4315a946c36..efee1116c83bf5d42320b7c389560eff75a78b39:/app/views/front/_user_summary.rhtml?ds=inline diff --git a/app/views/front/_user_summary.rhtml b/app/views/front/_user_summary.rhtml index 3b541c8..fd4ee6f 100644 --- a/app/views/front/_user_summary.rhtml +++ b/app/views/front/_user_summary.rhtml @@ -1,11 +1,20 @@ <% if @current_elections.length < 1 %>
You have not created any elections.
+<% elsif @current_elections.length > 6 %> +You have more than six elections which may not fit on the control panel. Clcik on the following link to go to your user profile, which lists all your elections. +<%= link_to "Summary", :controller => "account", :action => "summary", :id => session[:user].id %>
<% else %><%= link_to "Create a new election", :controller => 'election', :action => 'new' %>.
+