Skip to content

Add artist, album to item entry template in the web plugin #5753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 16 additions & 18 deletions beetsplug/web/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="the music geek’s media organizer">
<meta name="keywords"
content="beets, media, music, library, metadata, player, tagger, grep, transcoder, organizer">
<title>beets</title>

<link rel="stylesheet"
href="{{ url_for('static', filename='beets.css') }}" type="text/css">

href="{{ url_for('static', filename='beets.css') }}"
type="text/css">
<script src="{{ url_for('static', filename='jquery.js') }}"></script>
<script src="{{ url_for('static', filename='underscore.js') }}">
</script>
<script src="{{ url_for('static', filename='underscore.js') }}"></script>
<script src="{{ url_for('static', filename='backbone.js') }}"></script>
<script src="{{ url_for('static', filename='beets.js') }}"></script>
</head>
Expand All @@ -17,34 +20,29 @@
<h1>beets</h1>
<div id="player">
<audio></audio>

<button class="disabled">&#9654;</button>
<button class="play">&#9654;</button>
<button class="pause" style="letter-spacing: 1px;">&#10073;&#10073;</button>

<span class="times">
<span class="currentTime">
</span>
<span class="currentTime"></span>
</span>
</div>
</div>

<div id="entities">
<form id="queryForm">
<input type="search" id="query" placeholder="Query">
</form>
<ul id="results">
</ul>
</div>

<div id="main-detail">
</div>

<div id="extra-detail">
</div>

<div id="main-detail"></div>
<div id="extra-detail"></div>
<!-- Templates. -->
<script type="text/template" id="item-entry-template">
<% if (artist) { %><%= artist %><% } %>
<% if (artist && album) { %> &ndash; <% } %>
<% if (album) { %><%= album %><% } %>
<% if ((artist || album) && title) { %> &ndash; <% } %>
<%= title %>
<span class="playing">&#9654;</span>
</script>
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ New features:
:bug:`5832`
* :doc:`plugins/playlist`: Support files with the `.m3u8` extension.
:bug:`5829`
* :doc:`plugins/web`: Display artist and album as part of the search results.
* :doc:`plugins/mbcollection`: When getting the user collections, only consider
collections of releases, and ignore collections of other entity types.
* :doc:`plugins/mpdstats`: Add new configuration option,
``played_ratio_threshold``, to allow configuring the percentage the song must
be played for it to be counted as played instead of skipped.
* :doc:`plugins/web`: Display artist and album as part of the search results.

Bug fixes:

Expand Down