Skip to content

Instantly share code, notes, and snippets.

@sgonyea
Created December 6, 2010 01:08
Show Gist options
  • Select an option

  • Save sgonyea/729682 to your computer and use it in GitHub Desktop.

Select an option

Save sgonyea/729682 to your computer and use it in GitHub Desktop.
%p#notice
=notice
.current-motions
=link_to "New Motion", new_motion_path, {:class => "quick-tool"}
%h1
Current Motions
%ul
[email protected]_with_index do |motion, i|
%li{ :class => cycle('even', 'odd') }
=link_to "More", motion_path(motion), :class => "plus"
=link_to %Q{"#{motion.title}"}, motion_path(motion)
%span.meta
by #{motion_creator_display_name(motion)}
%p
=truncate(motion.description)
-if @motions.empty?
%li
There are no motions available to review
= flash[:notice] unless flash[:notice].blank?
.current-motions
= link_to "New Motion", new_motion_path, {:class => "quick-tool"}
%h1 Current Motions
%ul
- @motions.each_with_index do |motion, i|
%li{ :class => cycle('even', 'odd') }
=link_to "More", motion_path(motion), :class => "plus"
=link_to "\"#{motion.title}\"", motion_path(motion)
%span.meta by Test Username
%p= truncate(motion.description)
- if @motions.empty?
%li There are no motions available to review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment