Skip to content

Instantly share code, notes, and snippets.

@timsegraves
Created October 3, 2012 19:55
Show Gist options
  • Save timsegraves/3829440 to your computer and use it in GitHub Desktop.
Save timsegraves/3829440 to your computer and use it in GitHub Desktop.
table
- if provisions.count > 0
%table.table.table-striped.table-bordered.tablesorter
%thead
%tr
%th ID
%th Username
%th Email
%th Package
%th Created Date
%th Actions
%tbody
- provisions.each do |u|
%tr
%td
%a{:href => admin_user_path(u)}= u.id
%td= u.username
%td= u.email
%td= u.user_package.try(:package_name)
%td= u.created_at.strftime('%m/%d/%Y @ %H:%M')
%td
%a.btn.btn-success{:href => "#{APP_CONFIG['base_uri']}backend.php/user/viewProvisionInfo?id=#{u.id}", :target => '_blank'}
%i.icon-check.icon-white
Provision
%a{:href => '#provision_modal', :class => 'provision_modal', :data => {:toggle => 'modal', :user_id => u.id}} Provision
- else
.alert.alert-success.provisions
%h3 No Provisions Here
%p Congratulations, level complete!
#provision_modal.modal.hide.fade
#modal_placeholder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment