In this Rails app view loop, how can I include CSS button styling? -
i want "complete" below have fake button styling, border , colored interior.
what best way this? tried suffix class: 'btn btn-mini' doesn't work (for obvious reasons, it's not button).
- @tasks.each |task| %tr %td= task.content - if @dayhash[task.day_id] == "today" - if task.start != nil && task.stop.nil? %td underway - elsif task.start !=nil , task.stop !=nil %td complete
- elsif task.start !=nil , task.stop !=nil %td .btn.btn-mini complete
Comments
Post a Comment