Sha256: 58bbeed474a4616e37336ca992ba40d6ab9836f81c711a8dd72b2c0d621ebf8d

Contents?: true

Size: 981 Bytes

Versions: 1

Compression:

Stored size: 981 Bytes

Contents

<h2>{{t 'community_categories.index.title'}}</h2>

{{#if anyItems}}
<table class="table table-striped" style="margin-top:15px;">
  <tbody>
  {{#each model as |category|}}
    <tr>
      <td>
        {{#link-to 'community.category.feedbacks' communitySlug category.slug 1}}{{category.name}}{{/link-to}}
      </td>
      <td>
        {{#link-to 'community.edit_category' communitySlug category.slug}}
          <span class="glyphicon glyphicon-pencil"></span> {{t 'general.edit'}}
        {{/link-to}}
         | 
        <a {{action 'destroy' category.slug}} class="remove_category_link">
          <span class="glyphicon glyphicon-remove"></span> {{t 'general.remove'}}
        </a>
      </td>
    </tr>
  {{/each}}
  </tbody>
</table>
{{else}}
  {{t 'community_categories.index.empty_collection'}}
{{/if}}

{{partial 'shared/pagination'}}

{{#link-to 'community.new_category'}}
  <span class="glyphicon glyphicon-plus"></span> {{t 'community_categories.new.title'}}
{{/link-to}}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voluntary_feedback-0.1.0 app/assets/javascripts/voluntary_feedback/templates/community/categories.js.handlebars