| 1 |
<!DOCTYPE html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 |
<meta name="description" content="the music geek’s media organizer"> |
| 7 |
<meta name="keywords" |
| 8 |
content="beets, media, music, library, metadata, player, tagger, grep, transcoder, organizer"> |
| 9 |
<title>beets</title> |
| 10 |
<link rel="stylesheet" |
| 11 |
href="{{ url_for('static', filename='beets.css') }}" |
| 12 |
type="text/css"> |
| 13 |
<script src="{{ url_for('static', filename='jquery.js') }}"></script> |
| 14 |
<script src="{{ url_for('static', filename='underscore.js') }}"></script> |
| 15 |
<script src="{{ url_for('static', filename='backbone.js') }}"></script> |
| 16 |
<script src="{{ url_for('static', filename='beets.js') }}"></script> |
| 17 |
</head> |
| 18 |
<body> |
| 19 |
<div id="header"> |
| 20 |
<h1>beets</h1> |
| 21 |
<div id="player"> |
| 22 |
<audio></audio> |
| 23 |
<button class="disabled">▶</button> |
| 24 |
<button class="play">▶</button> |
| 25 |
<button class="pause" style="letter-spacing: 1px;">❙❙</button> |
| 26 |
<span class="times"> |
| 27 |
<span class="currentTime"></span> |
| 28 |
</span> |
| 29 |
</div> |
| 30 |
</div> |
| 31 |
<div id="entities"> |
| 32 |
<form id="queryForm"> |
| 33 |
<input type="search" id="query" placeholder="Query"> |
| 34 |
</form> |
| 35 |
<ul id="results"> |
| 36 |
</ul> |
| 37 |
</div> |
| 38 |
<div id="main-detail"></div> |
| 39 |
<div id="extra-detail"></div> |
| 40 |
<!-- Templates. --> |
| 41 |
<script type="text/template" id="item-entry-template"> |
| 42 |
<% if (artist) { %><%- artist %><% } %> |
| 43 |
<% if (artist && album) { %> – <% } %> |
| 44 |
<% if (album) { %><%- album %><% } %> |
| 45 |
<% if ((artist || album) && title) { %> – <% } %> |
| 46 |
<%- title %> |
| 47 |
<span class="playing">▶</span> |
| 48 |
</script> |
| 49 |
<script type="text/template" id="item-main-detail-template"> |
| 50 |
<span class="artist"><%- artist %></span> |
| 51 |
<span class="album"> |
| 52 |
<span class="albumtitle"><%- album %></span> |
| 53 |
<span class="year">(<%- year %>)</span> |
| 54 |
</span> |
| 55 |
<span class="title"><%- title %></span> |
| 56 |
|
| 57 |
<button class="play">▶</button> |
| 58 |
|
| 59 |
|
| 60 |
</script> |
| 61 |
<script type="text/template" id="item-extra-detail-template"> |
| 62 |
<dl> |
| 63 |
<dt>Track</dt> |
| 64 |
<dd><%- track %>/<%- tracktotal %></dd> |
| 65 |
<% if (disc) { %> |
| 66 |
<dt>Disc</dt> |
| 67 |
<dd><%- disc %>/<%- disctotal %></dd> |
| 68 |
<% } %> |
| 69 |
<dt>Length</dt> |
| 70 |
<dd><%- timeFormat(length) %></dd> |
| 71 |
<dt>Format</dt> |
| 72 |
<dd><%- format %></dd> |
| 73 |
<dt>Bitrate</dt> |
| 74 |
<dd><%- Math.round(bitrate/1000) %> kbps</dd> |
| 75 |
<% if (mb_trackid) { %> |
| 76 |
<dt>MusicBrainz entry</dt> |
| 77 |
<dd> |
| 78 |
<a target="_blank" href="http://musicbrainz.org/recording/<%- mb_trackid %>">view</a> |
| 79 |
</dd> |
| 80 |
<% } %> |
| 81 |
<dt>File</dt> |
| 82 |
<dd> |
| 83 |
<a target="_blank" class="download" href="item/<%- id %>/file">download</a> |
| 84 |
</dd> |
| 85 |
<% if (lyrics) { %> |
| 86 |
<dt>Lyrics</dt> |
| 87 |
<dd class="lyrics"><%- lyrics %></dd> |
| 88 |
<% } %> |
| 89 |
<% if (comments) { %> |
| 90 |
<dt>Comments</dt> |
| 91 |
<dd><%- comments %></dd> |
| 92 |
<% } %> |
| 93 |
</dl> |
| 94 |
</script> |
| 95 |
</body> |
| 96 |
</html> |