Sha256: b6526540175c5989775e25d2983726cee990a420a2f0d47816896c552bbd8cb9

Contents?: true

Size: 1.67 KB

Versions: 1

Compression:

Stored size: 1.67 KB

Contents

<page-header>
  <div class="pull-right">
    <a class="btn btn-lg btn-default" ui-sref="^.edit({ id: showCtrl.resource.id })">
      Edit
    </a>
    <a class="btn btn-lg btn-danger" ui-sref="^.show({ id: showCtrl.resource.id })" delete-link>
      Destroy
    </a>
  </div>

  <h1>{{ showCtrl.resource_class.singular_human }} #{{ showCtrl.resource.id }}</h1>
</page-header>

<div class="row">
  <div class="col-xs-12">
    <div class="well">
      <dl class="dl-horizontal">
        <dt ng-repeat-start="attribute in showCtrl.resource_class.show_attributes">
          {{ attribute.human }}
        </dt>
        <dd ng-repeat-end>
          <ng-include src="showCtrl.template(attribute)"></ng-include>
        </dd>
      </dl>
    </div>
  </div>
</div>

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

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

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

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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