Sha256: 3adea649e3e4cdf077165a87c3ef45f6a5b9b60c4cc8c50575e64ff1eea9d9dc

Contents?: true

Size: 997 Bytes

Versions: 1

Compression:

Stored size: 997 Bytes

Contents

<h1><%= @controller %></h1>
<table class="table table-striped">
  <thead>
    <tr>
      <th>Title</th>
      <th>Actions</th>
      <th>Created at</th>
    </tr>
  </thead>
  <tbody>
    <tr ng-repeat="<%= @resource_name%> in <%= @plural_model_name%>">
      <td>
        <a href="/<%= @plural_model_name%>/{{<%= @resource_name%>.id}}">
          {{<%= @resource_name%>.title}}
        </a>
      </td>
      <td>
        {{<%= @resource_name%>.created_at}}
      </td>
      <td>
        <a href="/<%= @plural_model_name%>/{{<%= @resource_name%>.id}}/edit"
          class="btn btn-primary"><i class="icon-edit"></i>
          Edit
        </a>
        <button ng-click="destroy()" class="btn btn-danger">
          <i class="icon-trash"></i> Delete
        </button>
      </td>
      <td>
        {{<%= @resource_name%>.created_at}}

      </td>
    </tr>
  </tbody>
</table>

<p>
  <a href='/<%= @plural_model_name%>/new' class="btn btn-primary">
    <i class="icon-plus"></i>New
  </a>
</p>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
angularjs_scaffold-0.0.16 lib/generators/angularjs/scaffold/templates/index.html