Sha256: 66e8bff39caaba5c04de2e5ef444264bfdcddb15575cc74e72b57ac944d30d86

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

<ui-view>
  <page-header>
    <div class="pull-right">
      <a class="btn btn-lg btn-success" ui-sref=".new">
        Create new
      </a>
    </div>
    <h1>All {{ indexCtrl.resource_class.plural }}</h1>
  </page-header>

  <div class="row">
    <div class="col-xs-12">
      <resource-table resource-class="indexCtrl.resource_class"
        resources="indexCtrl.resources">
      </resource-table>
    </div>
  </div>
</ui-view>

<script type="text/ng-template" id="table-date">
  {{ resource[attribute.key] | date }}
</script>

<script type="text/ng-template" id="table-datetime">
  {{ resource[attribute.key] | date:'medium' }}
</script>

<script type="text/ng-template" id="table-email">
  <a href="mailto:{{ resource[attribute.key] }}">
    {{ resource[attribute.key] }}
  </a>
</script>

<script type="text/ng-template" id="table-integer">
  {{ resource[attribute.key] }}
</script>

<script type="text/ng-template" id="table-string">
  {{ resource[attribute.key] | truncate }}
</script>

<script type="text/ng-template" id="table-text">
  {{ resource[attribute.key] | truncate }}
</script>

<script type="text/ng-template" id="table-url">
  <a href="{{ resource[attribute.key] }}" target="_blank">
    {{ resource[attribute.key] | truncate }}
  </a>
</script>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyper_admin-0.4.0 app/views/admin/resources/index.html.erb
hyper_admin-0.3.0 app/views/admin/resources/index.html.erb