Skip to content

Commit 73e9bbd

Browse files
committed
Status GUI Update for books page
1 parent a8c2016 commit 73e9bbd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

data/interfaces/default/books.html

+10-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,17 @@
6868
<td id="date">${result['BookDate']}</td>
6969
<td id="language" hidden="true">${result['booklang']}</td>
7070
%if result['Status'] == 'Open':
71-
<td id="status"><a class="button" href="openBook?bookLink=${result['booklink']}" target="_new">${result['Status']}</a></td>
71+
<td id="status"><a class="button green" href="openBook?bookLink=${result['booklink']}" target="_self">${result['Status']}</a></td>
7272
%else:
73-
<td id="status">${result['Status']}</td>
73+
%if result['Status'] == 'Wanted':
74+
<td id="status"><a class="button red" href="searchForBook?bookLink=${result['booklink']}" target="_self"><span class="a">${result['Status']}</span><span class="b">Search</span></a></td>
75+
%else:
76+
%if result['Status'] == 'Snatched':
77+
<td id="status"><a class="button">${result['Status']}</a></td>
78+
%else:
79+
<td id="status"><a class="button grey">${result['Status']}</a></td>
80+
%endif
81+
%endif
7482
%endif
7583
</tr>
7684
%endfor

0 commit comments

Comments
 (0)