From 1d295eb954835f2bedd53a0a1ef35c77ff6aa953 Mon Sep 17 00:00:00 2001 From: Cervinko Cera Date: Wed, 13 Apr 2016 00:09:17 +0200 Subject: [PATCH] show 'read in browser' only for epubs --- cps/templates/detail.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cps/templates/detail.html b/cps/templates/detail.html index 98ba03f7..6a8aafd3 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -78,7 +78,10 @@ {% if g.user.kindle_mail %} Send to Kindle {% endif %} - Read in browser + {% for format in entry.data if format.format|lower == 'epub' %} + Read in browser + {%endfor%} +