aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Cholewiński <harry666t@gmail.com>2015-04-30 10:10:47 +0200
committerKamil Cholewiński <harry666t@gmail.com>2015-04-30 10:10:47 +0200
commit3daa1af52921a5cbcde0a6c93d97f9c4f662c310 (patch)
treed478fe28e69f565d593bb795d76681d938b38f6f
parentcc4a88e40fc157d14901b7c455a8811b33d4cd8d (diff)
downloadmpw-3daa1af52921a5cbcde0a6c93d97f9c4f662c310.zip
mpw-3daa1af52921a5cbcde0a6c93d97f9c4f662c310.tar.gz
mpw-3daa1af52921a5cbcde0a6c93d97f9c4f662c310.tar.bz2
Add buttons to play currently browsed directory
-rw-r--r--templates/browse.html18
1 files changed, 17 insertions, 1 deletions
diff --git a/templates/browse.html b/templates/browse.html
index c1d5c3d..919609c 100644
--- a/templates/browse.html
+++ b/templates/browse.html
@@ -16,8 +16,24 @@
<td>Name</td>
</thead>
<tbody>
+ {% if path %}
+ <tr class="odd">
+ <td>
+ <div class="controls">
+ {{ button("/library/add/" + path,
+ symbols.other.add) }}
+ {{ button("/library/replace-play/" + path,
+ symbols.controls.play) }}
+ </div>
+ </td>
+ <td>{{ symbols.other.folder }}</td>
+ <td>
+ {{ path }}
+ </td>
+ </tr>
+ {% endif %}
{% for item in listing %}
- <tr class="{{ loop.cycle('odd', 'even') }}">
+ <tr class="{{ loop.cycle('even', 'odd') }}">
<td>
<div class="controls">
{{ button("/library/add/" + item.path,