diff options
| author | 2017-06-02 22:53:13 +0200 | |
|---|---|---|
| committer | 2017-06-02 22:53:13 +0200 | |
| commit | 5f942cc1c9801eef440cd1e85e36b03c05aaa8c5 (patch) | |
| tree | ee019ee6f7738f84cdc83b64c074d82d93e9f8ce /app/views/index/reader.phtml | |
| parent | d100b2deb1c8ddc7fb8422abe420e2d135c6a8e2 (diff) | |
Add support for a new shortcut in reader view
Now you can open the original page in the reader view with the same shortcut you'll use in the normal view.
I've changed how we identify the link to make it more flexible.
The previous way was too restrictive since the selector used a really strict path to get the url.
There was another way to achieve the same thing without changing the selector.
It was quite ugly since some meaningless class would be added on the markup to match the selector query.
See #1400
Diffstat (limited to 'app/views/index/reader.phtml')
| -rw-r--r-- | app/views/index/reader.phtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml index a19ee322e..f2af75af0 100644 --- a/app/views/index/reader.phtml +++ b/app/views/index/reader.phtml @@ -19,7 +19,7 @@ if (!empty($this->entries)) { $feed = FreshRSS_CategoryDAO::findFeed($this->categories, $item->feed()); //We most likely already have the feed object in cache if (empty($feed)) $feed = $item->feed(true); ?> - <a href="<?php echo $item->link(); ?>"> + <a target="_blank" rel="noreferrer" class="go_website" href="<?php echo $item->link(); ?>"> <img class="favicon" src="<?php echo $feed->favicon(); ?>" alt="✇" /> <span><?php echo $feed->name(); ?></span> </a> <h1 class="title"><?php echo $item->title(); ?></h1> |
