%- model_class = Repository -%>
<%= model_class.human_attribute_name(:name) %> | <%= model_class.human_attribute_name(:path) %> | <%= model_class.human_attribute_name(:user_id) %> | <%= model_class.human_attribute_name(:public) %> | <%= model_class.human_attribute_name(:created_at) %> | <%=t '.actions', :default => t("helpers.actions") %> |
---|---|---|---|---|---|
<% if can? :read, repository %> <%= link_to repository.name, repository_path(repository) %> <% else %> <%= repository.name %> <% end %> | <%= repository.path %> | <%= repository.user.try :username %> | <%= repository.public %> | <%=l repository.created_at %> | <% if can? :update, repository %> <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_repository_path(repository), :class => 'btn btn-mini' %> <% end %> <% if can? :destroy, repository %> <%= link_to t('.destroy', :default => t("helpers.links.destroy")), repository_path(repository), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-mini btn-danger' %> <% end %> |