Make the notes page work, add missing dependencies, set the font of the textarea
This commit is contained in:
parent
9fb69bbf64
commit
29c38c55d9
4
setup.py
4
setup.py
@ -17,7 +17,9 @@ setup(
|
||||
'Flask-SQLAlchemy',
|
||||
'Pygments',
|
||||
'requests',
|
||||
'short_url'
|
||||
'short_url',
|
||||
'psycopg2_binary',
|
||||
'nord-pygments'
|
||||
],
|
||||
extras_require={
|
||||
'dev': [
|
||||
|
@ -27,7 +27,7 @@ body > .container {
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
code, kbd, pre, samp {
|
||||
code, kbd, pre, samp, textarea#source {
|
||||
font-family: 'PT Mono', 'Hack', SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
||||
}
|
||||
|
||||
|
@ -61,12 +61,12 @@ def notes():
|
||||
"""
|
||||
Show a list of recent notes
|
||||
"""
|
||||
recent_notes = StickyNote.query\
|
||||
notes = StickyNote.query\
|
||||
.filter(or_(StickyNote.expiry == None, StickyNote.expiry < datetime.utcnow()))\
|
||||
.filter(~StickyNote.private)\
|
||||
.order_by(StickyNote.created.desc())\
|
||||
.limit(10) # noqa
|
||||
return render_template('notes.html', recent=recent_notes)
|
||||
return render_template('notes.html', notes=notes)
|
||||
|
||||
|
||||
@views.route('/about', methods=['GET'])
|
||||
|
Loading…
Reference in New Issue
Block a user