diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-07 00:23:38 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 23:17:31 +0200 |
commit | 04cf2672c3a06dbaa7792403237e3ec9bbaf5455 (patch) | |
tree | 910b406b0371bfceb6cdcb729166f90acb49a6a9 /templates | |
parent | 088ebcc63a892f2245c863c647516c0dd8041de7 (diff) |
🎨 Adapt front-end to match new implementation
- remove share-specific code since new solution uses dummy feeds
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.php | 1 | ||||
-rw-r--r-- | templates/part.content.php | 4 | ||||
-rw-r--r-- | templates/part.navigation.sharedfeed.php | 20 |
3 files changed, 2 insertions, 23 deletions
diff --git a/templates/index.php b/templates/index.php index bc4a06586..9ad38a0d5 100644 --- a/templates/index.php +++ b/templates/index.php @@ -56,7 +56,6 @@ foreach (Plugin::getScripts() as $appName => $fileName) { <?php print_unescaped($this->inc('part.navigation.addfolder')) ?> <?php print_unescaped($this->inc('part.navigation.unreadfeed')) ?> <?php print_unescaped($this->inc('part.navigation.starredfeed')) ?> - <?php print_unescaped($this->inc('part.navigation.sharedfeed')) ?> <?php print_unescaped($this->inc( 'part.navigation.feed', ['folderId' => 'null'] )) ?> diff --git a/templates/part.content.php b/templates/part.content.php index 3dcc5254e..26fbf2d8d 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -194,13 +194,13 @@ <span class="author" ng-show="item.author"> <?php p($l->t('by')) ?> {{ ::item.author }} </span> - <span ng-if="item.sharedBy === ''" class="source"><?php p($l->t('from')) ?> + <span ng-if="!item.sharedBy" class="source"><?php p($l->t('from')) ?> <a ng-href="#/items/feeds/{{ item.feedId }}/"> {{ ::Content.getFeed(item.feedId).title }} <img ng-if="Content.getFeed(item.feedId).faviconLink && !Content.isCompactView()" src="{{ ::Content.getFeed(item.feedId).faviconLink }}" alt="favicon"> </a> </span> - <span ng-if="item.sharedBy !== ''" class="source"><?php p($l->t('shared by')) ?> + <span ng-if="item.sharedBy" class="source"><?php p($l->t('shared by')) ?> <a>{{ ::item.sharedBy }}</a> </span> </div> diff --git a/templates/part.navigation.sharedfeed.php b/templates/part.navigation.sharedfeed.php deleted file mode 100644 index 316d83db5..000000000 --- a/templates/part.navigation.sharedfeed.php +++ /dev/null @@ -1,20 +0,0 @@ -<li ng-class="{ - active: Navigation.isSharedActive(), - unread: Navigation.isSharedUnread() - }" - class="with-counter starred-feed"> - - <a class="icon-shared" ng-href="#/items/shared/"> - <?php p($l->t('Shared with me')) ?> - </a> - - <div class="app-navigation-entry-utils"> - <ul> - <li class="app-navigation-entry-utils-counter" - ng-show="Navigation.isSharedUnread()" - title="{{ Navigation.getSharedCount() }}"> - {{ Navigation.getSharedCount() | unreadCountFormatter }} - </li> - </ul> - </div> -</li>
\ No newline at end of file |