%- model_class = Comment -%>
| <%= model_class.human_attribute_name(:id) %> | <%= model_class.human_attribute_name(:article_id) %> | <%= model_class.human_attribute_name(:title) %> | <%= model_class.human_attribute_name(:content) %> | <%= model_class.human_attribute_name(:rate) %> | <%= model_class.human_attribute_name(:created_by) %> | <%= model_class.human_attribute_name(:updated_by) %> | <%= model_class.human_attribute_name(:created_at) %> | <%=t '.actions', :default => t("helpers.actions") %> |
|---|---|---|---|---|---|---|---|---|
| <%= link_to comment.id, comment_path(comment) %> | <%= comment.article_id %> | <%= comment.title %> | <%= comment.content %> | <%= comment.rate %> | <%= comment.created_by %> | <%= comment.updated_by %> | <%=l comment.created_at %> | <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_comment_path(comment), :class => 'btn btn-default btn-xs' %> <%= link_to t('.destroy', :default => t("helpers.links.destroy")), comment_path(comment), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-xs btn-danger' %> |