Skip to content

Commit

Permalink
kindle log shortcut in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
facundoolano committed Jul 16, 2024
1 parent 84a2174 commit 1556ffb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion feedi/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def autocomplete():
('Manage Feeds', flask.url_for('feed_list'), 'fas fa-edit'),
('Mastodon login', flask.url_for('mastodon_oauth'), 'fab fa-mastodon'),
('Kindle setup', flask.url_for('kindle_add'), 'fas fa-tablet-alt'),
('Kindle log', flask.url_for('sent_to_kindle'), 'fas fa-list')
('Kindle log', flask.url_for('sent_to_kindle'), 'fas fa-tablet-alt')
]
for so in static_options:
if term.lower() in so[0].lower():
Expand Down
12 changes: 12 additions & 0 deletions feedi/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@
{% endfor %}
<a class="dropdown-item {% if filters.favorited %}is-active{% endif %}" href="{{ url_for('favorites') }}">
<icon class="icon"><i class="far fa-star"></i></icon> favorites</a>
{% if current_user.kindle_email %}
<a class="dropdown-item {% if filters.sent_to_kindle %}is-active{% endif %}" href="{{ url_for('sent_to_kindle') }}">
<icon class="icon"><i class="fas fa-tablet-alt"></i></icon> kindle log</a>
<hr class="dropdown-divider"/>
{% endif %}
{% endif %}
{{ self.sidebar_right() }}
</div>
</div>
Expand Down Expand Up @@ -84,6 +88,14 @@ <h1 class="title is-4">feedi</h1>
</div>
</div>
</li>
<li>
<div class="level-left {% if filters.sent_to_kindle %}is-active{% endif %}">
<div class="level-item">
<a href="{{ url_for('sent_to_kindle') }}"><icon class="icon"><i class="fas fa-tablet-alt"></i></icon>
kindle log</a>
</div>
</div>
</li>
</ul>
</aside>
{% endblock %}
Expand Down

0 comments on commit 1556ffb

Please sign in to comment.