app/views/admin/achievements/index.html.haml
- model_class = Achievement
.page-header
%h1=t '.title', :default => model_class.model_name.human.pluralize.titleize
%table.table.table-striped
%thead
%tr
%th= model_class.human_attribute_name(:id)
%th= model_class.human_attribute_name(:score)
%th= model_class.human_attribute_name(:topic_id)
%th= model_class.human_attribute_name(:created_at)
%th=t '.actions', :default => t("helpers.actions")
%tbody
- @achievements.each do |achievement|
%tr
%td= link_to achievement.id, admin_achievement_path(achievement)
%td= achievement.score
%td= achievement.topic_id
%td=l achievement.created_at
%td
= link_to t('.edit', :default => t("helpers.links.edit")), edit_achievement_path(achievement), :class => 'btn btn-mini'
= link_to t('.destroy', :default => t("helpers.links.destroy")), achievement_path(achievement), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-mini btn-danger'
= link_to t('.new', :default => t("helpers.links.new")), new_achievement_path, :class => 'btn btn-primary'