summaryrefslogtreecommitdiff
path: root/js/Headlines.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-26 12:34:50 +0300
committerAndrew Dolgov <[email protected]>2021-02-26 12:34:50 +0300
commit9689f884ab6960f5f3dde341e3e678550c792692 (patch)
tree6fcd77834f101641e73e1d00ddd98cf73f26df15 /js/Headlines.js
parent05f690c86bd206036fa281de4090592ed31673dc (diff)
add Prefs::DEBUG_HEADLINE_IDS
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-xjs/Headlines.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/js/Headlines.js b/js/Headlines.js
index 6dbe24918..fd9bc6661 100755
--- a/js/Headlines.js
+++ b/js/Headlines.js
@@ -440,10 +440,12 @@ const Headlines = {
if (headlines.vfeed_group_enabled && hl.feed_title && this.vgroup_last_feed != hl.feed_id) {
const vgrhdr = `<div data-feed-id='${hl.feed_id}' class='feed-title'>
- <div style='float : right'>${Feeds.renderIcon(hl.feed_id, hl.has_icon)}</div>
- <a class="title" href="#" onclick="Feeds.open({feed:${hl.feed_id}})">${hl.feed_title}
- <a class="catchup" title="${__('mark feed as read')}" onclick="Feeds.catchupFeedInGroup(${hl.feed_id})" href="#"><i class="icon-done material-icons">done_all</i></a>
- </div>`
+ <div class="pull-right">${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="catchup" title="${__('mark feed as read')}" onclick="Feeds.catchupFeedInGroup(${hl.feed_id})" href="#">
+ <i class="icon-done material-icons">done_all</i>
+ </a>
+ </div>`
const tmp = document.createElement("div");
tmp.innerHTML = vgrhdr;
@@ -476,6 +478,7 @@ const Headlines = {
</div>
<span onclick="return Headlines.click(event, ${hl.id});" data-article-id="${hl.id}" class="titleWrap hlMenuAttach">
+ ${App.getInitParam("debug_headline_ids") ? `<span class="text-muted small">A: ${hl.id} F: ${hl.feed_id}</span>` : ""}
<a class="title" title="${App.escapeHtml(hl.title)}" target="_blank" rel="noopener noreferrer" href="${App.escapeHtml(hl.link)}">
${hl.title}</a>
<span class="author">${hl.author}</span>
@@ -542,6 +545,7 @@ const Headlines = {
<i class="pub-pic pub-${hl.id} material-icons" onclick="Headlines.togglePub(${hl.id})">rss_feed</i>
</div>
<div onclick="return Headlines.click(event, ${hl.id})" class="title">
+ ${App.getInitParam("debug_headline_ids") ? `<span class="text-muted small">A: ${hl.id} F: ${hl.feed_id}</span>` : ""}
<span data-article-id="${hl.id}" class="hl-content hlMenuAttach">
<a class="title" href="${App.escapeHtml(hl.link)}">${hl.title} <span class="preview">${hl.content_preview}</span></a>
<span class="author">${hl.author}</span>