diff options
author | Jimmy Huynh <jimmy.huynh@etu.unistra.fr> | 2021-01-26 18:14:05 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | b402fddef9c1939aa501447bd6064449c4d41d3e (patch) | |
tree | 9a3224239bd305424d1ff04ef990efef8b0afa2a /templates | |
parent | 27ca98136a98f273971712360435086b365b4957 (diff) |
(+) Adding sharing_user names to EVERY articles + pre-condition if sharedArticle: no title feed (e.g.: from wikiRSS...)
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.content.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/part.content.php b/templates/part.content.php index 9ce6ae10e..8ea8b168f 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -122,12 +122,18 @@ <span class="author" ng-show="item.author"> <?php p($l->t('by')) ?> {{ ::item.author }} </span> - <span class="source"><?php p($l->t('from')) ?> - <a ng-href="#/items/feeds/{{ ::item.feedId }}/"> + <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 from')) ?> + <a ng-href="#/items/feeds/{{ item.feedId }}/"> + {{ :: item.sharedBy}} + <img ng-if="Content.getFeed(item.feedId).faviconLink && !Content.isCompactView()" src="{{ ::Content.getFeed(item.feedId).faviconLink }}" alt="favicon"> + </a> + </span> </div> <div class="enclosure" ng-if="Content.getMediaType(item.enclosureMime) == 'audio'"> |