mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(search) Add an indicator when a link has a feed in the similar/linked domains views
This commit is contained in:
parent
f71e79d10f
commit
8c8f2ad5ee
@ -38,6 +38,7 @@ public class DomainsProtobufCodec {
|
|||||||
sd.getIndexed(),
|
sd.getIndexed(),
|
||||||
sd.getActive(),
|
sd.getActive(),
|
||||||
sd.getScreenshot(),
|
sd.getScreenshot(),
|
||||||
|
sd.getFeed(),
|
||||||
SimilarDomain.LinkType.valueOf(sd.getLinkType().name())
|
SimilarDomain.LinkType.valueOf(sd.getLinkType().name())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ public record SimilarDomain(EdgeUrl url,
|
|||||||
boolean indexed,
|
boolean indexed,
|
||||||
boolean active,
|
boolean active,
|
||||||
boolean screenshot,
|
boolean screenshot,
|
||||||
|
boolean feed,
|
||||||
LinkType linkType) {
|
LinkType linkType) {
|
||||||
|
|
||||||
public String getRankSymbols() {
|
public String getRankSymbols() {
|
||||||
|
@ -206,7 +206,6 @@ public class SearchSiteInfoService {
|
|||||||
String url = "https://" + domainName + "/";
|
String url = "https://" + domainName + "/";
|
||||||
|
|
||||||
boolean hasScreenshot = screenshotService.hasScreenshot(domainId);
|
boolean hasScreenshot = screenshotService.hasScreenshot(domainId);
|
||||||
|
|
||||||
boolean isSubscribed = searchSiteSubscriptions.isSubscribed(context, domain);
|
boolean isSubscribed = searchSiteSubscriptions.isSubscribed(context, domain);
|
||||||
|
|
||||||
if (domainId < 0) {
|
if (domainId < 0) {
|
||||||
|
@ -44,6 +44,12 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="px-3 py-6 sm:py-3 whitespace-nowrap">
|
<td class="px-3 py-6 sm:py-3 whitespace-nowrap">
|
||||||
|
@if (item.feed())
|
||||||
|
<i class="fas fa-rss text-orange-500 mr-1" title="Feed available"></i>
|
||||||
|
@else
|
||||||
|
<i class="fas fa-link mr-1"></i>
|
||||||
|
@endif
|
||||||
|
|
||||||
<a href="/site/${item.url().getDomain().toString()}?view=similar"
|
<a href="/site/${item.url().getDomain().toString()}?view=similar"
|
||||||
rel="external noopener nofollow"
|
rel="external noopener nofollow"
|
||||||
class="text-liteblue dark:text-blue-200 dark:text-blue-200">
|
class="text-liteblue dark:text-blue-200 dark:text-blue-200">
|
||||||
|
Loading…
Reference in New Issue
Block a user