cms/app-client/app/templates/results.hbs
author nowmad@23.1.168.192.in-addr.arpa
Fri, 22 Jan 2016 10:35:52 +0100
changeset 95 f7ab931581af
parent 91 acfeddc7821d
child 127 5cd8c3065c38
permissions -rw-r--r--
improve interface
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
56
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
     1
<div class="result-header">
52
87b6a104de8e add tags to results template and remove the unused controller (the partial template uses the application controller)
nowmad@nowmads-macbook-pro.local
parents: 41
diff changeset
     2
  <p>
82
d489885d116d add fontawesome and improve results and tags interface
nowmad@nowmads-macbook-pro.local
parents: 78
diff changeset
     3
    Filtres:
56
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
     4
    {{#if location}}
82
d489885d116d add fontawesome and improve results and tags interface
nowmad@nowmads-macbook-pro.local
parents: 78
diff changeset
     5
      <span class="filters location">{{location}}<span class="fa fa-times" {{action 'deleteTag' 'location'}}></span></span>
56
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
     6
    {{/if}}
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
     7
    {{#if langue}}
82
d489885d116d add fontawesome and improve results and tags interface
nowmad@nowmads-macbook-pro.local
parents: 78
diff changeset
     8
      <span class="filters langue">{{langue}}<span class="fa fa-times" {{action 'deleteTag' 'langue'}}></span></span>
56
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
     9
    {{/if}}
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
    10
    {{#if discours}}
82
d489885d116d add fontawesome and improve results and tags interface
nowmad@nowmads-macbook-pro.local
parents: 78
diff changeset
    11
      <span class="filters discours">{{discours}}<span class="fa fa-times" {{action 'deleteTag' 'discours'}}></span></span>
56
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
    12
    {{/if}}
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
    13
    {{#if date}}
82
d489885d116d add fontawesome and improve results and tags interface
nowmad@nowmads-macbook-pro.local
parents: 78
diff changeset
    14
      {{#each date as |item| }}
d489885d116d add fontawesome and improve results and tags interface
nowmad@nowmads-macbook-pro.local
parents: 78
diff changeset
    15
        <span class="filters date">{{item}}<span class="fa fa-times" {{action 'deleteTag' 'date' item }}></span></span>
d489885d116d add fontawesome and improve results and tags interface
nowmad@nowmads-macbook-pro.local
parents: 78
diff changeset
    16
      {{/each}}
56
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
    17
    {{/if}}
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
    18
    {{#if thematique}}
82
d489885d116d add fontawesome and improve results and tags interface
nowmad@nowmads-macbook-pro.local
parents: 78
diff changeset
    19
      <span class="filters thematique">{{thematique}}<span class="fa fa-times" {{action 'deleteTag' 'thematique'}}></span></span>
56
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
    20
    {{/if}}
52
87b6a104de8e add tags to results template and remove the unused controller (the partial template uses the application controller)
nowmad@nowmads-macbook-pro.local
parents: 41
diff changeset
    21
  </p>
56
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
    22
</div>
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
    23
<div class='result-list'>
91
acfeddc7821d rename "sound" to "document"
nowmad@nowmads-macbook-pro.local
parents: 87
diff changeset
    24
  {{#each filteredDocuments as |item| }}
95
f7ab931581af improve interface
nowmad@23.1.168.192.in-addr.arpa
parents: 91
diff changeset
    25
    <div id="{{item.id}}" {{action "showMore" item}} class='result-item'>
87
24fef043ea0b add control to go next/previous sound
nowmad@nowmads-macbook-pro.local
parents: 84
diff changeset
    26
      <span class="playing-indicator fa fa-play-circle fa-lg fa-fw pull-right" {{action 'play' item}}></span>
95
f7ab931581af improve interface
nowmad@23.1.168.192.in-addr.arpa
parents: 91
diff changeset
    27
      <strong>{{ item.title }}</strong>
66
b7e750ed3ef5 show more information in result list and add action to play or to show more details about the item
nowmad@23.1.168.192.in-addr.arpa
parents: 56
diff changeset
    28
      <div class="description">
95
f7ab931581af improve interface
nowmad@23.1.168.192.in-addr.arpa
parents: 91
diff changeset
    29
        {{item.language}}
66
b7e750ed3ef5 show more information in result list and add action to play or to show more details about the item
nowmad@23.1.168.192.in-addr.arpa
parents: 56
diff changeset
    30
      </div>
95
f7ab931581af improve interface
nowmad@23.1.168.192.in-addr.arpa
parents: 91
diff changeset
    31
      <div class="hidden-elt">
f7ab931581af improve interface
nowmad@23.1.168.192.in-addr.arpa
parents: 91
diff changeset
    32
        <button class="pull-right" {{action 'toggleModal' item}}>Details</button>
f7ab931581af improve interface
nowmad@23.1.168.192.in-addr.arpa
parents: 91
diff changeset
    33
      </div>
56
c4a022ba3fc3 improves fixtures and result list
nowmad@nowmads-macbook-pro.local
parents: 52
diff changeset
    34
    </div>
41
b6815b3d46bd pass arguments to results components
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    35
  {{/each}}
16
70e9a764d6d7 add all tabs corresponding to each visualization, update name and structure and create a simple squeleton
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
    36
</div>