Skip to content

Commit

Permalink
Favorites link moved to the feed list
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed Apr 15, 2021
1 parent e978d7b commit 2bdd1dd
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,6 @@ <h3>{function="_t('YOU_MUST_BE_LOGGED')"}</h3>
<button class="settings-item js-brightness-toggle">
<img src="images/brightness.svg?#brightness_medium">
</button>
<a href="./?action=favorites" data-link="favorites" class="settings-item">
<svg
width="15"
height="15"
class="favorite-inverted"
role="img"
>
<title>{function="_t('FAVORITES')"}</title>
<use xlink:href="#svg-favorite" />
</svg>
</a>
<button class="mobile-only settings-item feeds-list-toggle js-feeds-list-toggle js-toggle-target" data-target="#feeds-list" data-toggle-overflow="true"><span class="feeds-list-toggle__label">
<svg
width="15"
Expand Down Expand Up @@ -119,11 +108,26 @@ <h2 class="feed-add-title">{function="_t('ADD_FEED')"}</h2>
{$currentItemsCount=$unread['total']}
<ul id="feeds-list" class="feeds-list" data-is-opened="false">
<li class="folder">
<div class="folder__item{if="(!isset($currentFolder)) && (!isset($currentFeed))"} selected{/if}">
<div class="folder__item{if="(!isset($currentFolder)) && (!isset($currentFeed)) && (!isset($favorites))"} selected{/if}">
<a href="./" data-link="home" class="sidebar-item">{function="_t('LEEDVIBES_ALL_FEEDS')"}</a>
<button class="mark-as-read js-mark-as-read js-total-counter" title="{function="_t('LEEDVIBES_MARK_ALL_AS_READ')"}"><span data-count="number">{$unread['total']}</span> <span class="sr-only" data-count="text">{function="_t($unread['total'] > 1 ? 'LEEDVIBES_UNREADS' : 'LEEDVIBES_UNREAD')"}</span></button>
</div>
</li>
<li class="folder">
<div class="folder__item{if="isset($favorites)"} selected{/if}">
<a href="./?action=favorites" data-link="favorites" class="sidebar-item">
<svg
width="15"
height="15"
class="favorite-inverted"
role="img"
>
<use xlink:href="#svg-favorite" />
</svg>
{function="_t('FAVORITES')"}
</a>
</div>
</li>
<!-- [todo] - Remove order=unread on feeds' links, use the settings instead -->
{loop="folders"}
{$feeds=[]}
Expand Down

0 comments on commit 2bdd1dd

Please sign in to comment.