results.html 1.38 KB
Newer Older
Sacha's avatar
Sacha committed
1
2
3
<header ng-controller='SearchController'>
  <div>
    <form ng-submit='submit()'>
Sacha's avatar
Sacha committed
4
      <a class='pointer' ng-click='clear()'>&larr;</a>
Sacha's avatar
Sacha committed
5
      <input autocomplete='off' type='text' placeholder='keyword' ng-class='{ "top_loading" : $root.is_loading }' ng-model='$root.keyword' ng-model-options='{ debounce: 500 }' />
Sacha's avatar
Sacha committed
6
7
8
    </form>
    <span id='right-header'>
      {% raw %}
Sacha's avatar
Sacha committed
9
10
11
      <span class='desktop'>Ranked in descending order of controversy</span>
      <span ng-show='trend_available' class='desktop'>&nbsp; &middot; &nbsp;</span>
      <span ng-show='trend_available'><a ng-href="#trends/{{ $root.keyword }}">trend available &rarr;</a></span>
Sacha's avatar
Sacha committed
12
13
14
      {% endraw %}
    </span>
  </div>
Sacha's avatar
Sacha committed
15
</header>
Sacha's avatar
Sacha committed
16
<header id='sub' class='mobile'>
Sacha's avatar
Sacha committed
17
  Articles are ranked numerically in order of descending controversy.
18
</header>
Sacha's avatar
Sacha committed
19
20

{% raw %}
21
<main style='padding: 5em 1em'>
Sacha's avatar
Sacha committed
22
<ul id='articles' ng-show='json' ng-style='$root.results_style'>
Sacha's avatar
Sacha committed
23
  <li ng-repeat='article in json'>
Sacha's avatar
Sacha committed
24
25
  <div class='article' ng-class='{ "most-controversial" : $first, "least-controversial" : $last }'>
    <a href='#results/{{ $index }}' class='title' ng-bind-html='($index+1) + ". " + article.title'></a>
Sacha's avatar
Sacha committed
26
    <img class='ns' ng-show='article.xlarge' ng-src='{{ article.xlarge }}' />
Sacha's avatar
Sacha committed
27
28
29
30
    <p ng-bind-html='article.lead'></p>
    <p class='url'><a href='#results/{{ $index }}'>{{ article.sentiment_entropy}}</a></p>
  </div>
  </li>
Sacha's avatar
Sacha committed
31
</ul>
Sacha's avatar
Sacha committed
32

Sacha's avatar
Sacha committed
33
34
</main>
{% endraw %}