Skip to content

Instantly share code, notes, and snippets.

@chadoh
Created February 2, 2012 17:10
Show Gist options
  • Select an option

  • Save chadoh/1724618 to your computer and use it in GitHub Desktop.

Select an option

Save chadoh/1724618 to your computer and use it in GitHub Desktop.
%div
.who-and-when
.avatar
= modification.avatar
suggested by
= modification.created_by
= modification.created_at
.description
= modification.friendly_description
- if modification.has_useful_history?
.was
%b was:
= modification.previous
.status
- if modification.who_has_approved
%p= modification.who_has_approved
%p= modification.who_are_we_waiting_for
.actions
= simple_form_for modification, remote: true do |f|
= f.commit "Reject", name: 'reject', confirm: 'Are you sure?'
-#- if can? :reject, modification.model
-#= modification.reject_button
-#- if can? :approve, modification.model
-#= modification.approve_button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment