Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 56 lines (47 sloc) 1.928 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
<div id="recently_added_albums" class="module" data-module="recently_added_albums" data-album_offset="{{ album_offset }}">

  <div class="module_settings"><span>Settings</span></div>
  <div class="module_remove"><span>Remove</span></div>

  <h2>Recently Added Albums</h2>

  {% if recently_added_albums %}
    {% if compact_view %}
    <div class="compact">
    {% endif %}
      <ul class="albums listfix">
        {% for album in recently_added_albums %}
          {% if view_info %}
            <li id="info_album" data-albumid="{{ album.albumid }}" title="Information for {{ album.title }} ({{ album.year }})">
          {% else %}
            <li id="play_album" data-albumid="{{ album.albumid }}" title="Play {{ album.title }} ({{ album.year }})">
          {% endif %}

            {% if album.thumbnail %}
              <div class="thumbnail">
                <img src="{{ album.thumbnail|xbmc_image }}" alt="">
              </div>
            {% endif %}

            <div class="inner">
              {% if compact_view %}
              <p><b>{{ album.artist }} - {{ album.title }}</b> <span class="extra">{{ album.year }} | {{ album.rating|float|round(1, 'common') }}</span></p>
              {% else %}
              <h3 class="first">{{ album.title }}</h3>
              <p class="second">{{ album.artist }}</p>
              <p class="third">Year: {{ album.year }}</p>
              {% endif %}
            </div>
          </li>
        {% endfor %}
      </ul>

    {% if compact_view %}
    </div>
    {% endif %}

    <div class="clearfix">
      {% if album_offset + recently_added_albums|length < 25 %}
        <a class="view_older" title="Older">&raquo;</a>
      {% endif %}
      {% if album_offset > 0 %}
        <a class="view_newer" title="Newer">&laquo;</a>
      {% endif %}
    </div>

  {% else %}
    <p class="problem">There was a problem connecting to the XBMC server.</p>
  {% endif %}

</div>
Something went wrong with that request. Please try again.