make headline elements with feed title lead to originating site while RSS icon elements lead to the feed within tt-rss UI

This commit is contained in:
Andrew Dolgov 2024-02-02 06:53:55 +03:00
parent a56e935deb
commit a5b19e5ff5
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 3 additions and 3 deletions

View File

@ -470,7 +470,7 @@ const Headlines = {
const vgrhdr = `<div data-feed-id='${hl.feed_id}' class='feed-title'> const vgrhdr = `<div data-feed-id='${hl.feed_id}' class='feed-title'>
<div class="pull-right icon-feed" title="${App.escapeHtml(hl.feed_title)}" <div class="pull-right icon-feed" title="${App.escapeHtml(hl.feed_title)}"
onclick="Feeds.open({feed:${hl.feed_id}})">${Feeds.renderIcon(hl.feed_id, hl.has_icon)}</div> onclick="Feeds.open({feed:${hl.feed_id}})">${Feeds.renderIcon(hl.feed_id, hl.has_icon)}</div>
<a class="title" href="#" onclick="Feeds.open({feed:${hl.feed_id}})">${hl.feed_title}</a> <a class="title" target="_blank" rel="noopener noreferrer" href="${App.escapeHtml(hl.site_url)}">${hl.feed_title}</a>
<a class="catchup" title="${__('mark feed as read')}" onclick="Feeds.catchupFeedInGroup(${hl.feed_id})" href="#"> <a class="catchup" title="${__('mark feed as read')}" onclick="Feeds.catchupFeedInGroup(${hl.feed_id})" href="#">
<i class="icon-done material-icons">done_all</i> <i class="icon-done material-icons">done_all</i>
</a> </a>
@ -518,8 +518,8 @@ const Headlines = {
${hl.cdm_excerpt ? hl.cdm_excerpt : ""} ${hl.cdm_excerpt ? hl.cdm_excerpt : ""}
</span> </span>
<a href="#" class="feed vfeedMenuAttach" style="background-color: ${hl.feed_bg_color}" data-feed-id="${hl.feed_id}" <a class="feed vfeedMenuAttach" style="background-color: ${hl.feed_bg_color}" data-feed-id="${hl.feed_id}"
onclick="Feeds.open({feed:${hl.feed_id}})">${hl.feed_title}</a> target="_blank" rel="noopener noreferrer" href="${App.escapeHtml(hl.site_url)}">${hl.feed_title}</a>
<span class="updated" title="${hl.imported}">${hl.updated}</span> <span class="updated" title="${hl.imported}">${hl.updated}</span>