leave note if no memes yet

main
lza_menace 3 years ago
parent 64edbd649e
commit b138b22541

@ -20,7 +20,7 @@ bp = Blueprint('meme', 'meme')
def index(): def index():
memes = Meme.query.filter( memes = Meme.query.filter(
Meme.approved == True Meme.approved == True
).order_by(Meme.create_date.desc()) ).order_by(Meme.create_date.desc()).all()
return render_template('index.html', memes=memes) return render_template('index.html', memes=memes)

@ -24,6 +24,8 @@
{% endfor %} {% endfor %}
</div> </div>
{% endfor %} {% endfor %}
{% else %}
<p class="subtitle">No memes approved yet brah!</p>
{% endif %} {% endif %}
</div> </div>

Loading…
Cancel
Save