Commit 88533628 authored by Axel Dürkop's avatar Axel Dürkop
Browse files

Add RSS feature

parent 58b1fce8
......@@ -217,6 +217,7 @@ svg.motivation-logo {
.hypothesis-group {
clear: both;
float: right;
display: block;
font-size: 12px;
text-align: right;
......@@ -326,3 +327,13 @@ svg.motivation-logo {
font-size: 70px;
}
}
/* RSS */
.rss-icon {
width: 20px;
display: inline-block;
margin: 12px 10px 0 8px;
padding: 5px 0 0 5px;
float: left;
}
\ No newline at end of file
......@@ -14,19 +14,23 @@
</a>
<HypothesisGroup :hypothesis_group="hypothesis_group" :url="item.url" />
<RSS :url="item.url" />
<div style="clear: both;"></div>
</div>
</template>
<script>
import HypothesisClient from "hypothesis-api-client";
import HypothesisGroup from "@/components/HypothesisGroup";
import RSS from "@/components/RSS";
import { mapGetters } from "vuex";
export default {
name: "Annotations",
props: ["item", "url"],
components: {
HypothesisGroup
HypothesisGroup,
RSS
},
data() {
return {
......
......@@ -28,7 +28,7 @@
</li>
<li>
<a
href="http://localhost:8080/en/list?groupID=2362604&list_collections=1"
href="https://zocurelia.com/de/list?groupID=2362604&list_collections=1"
target="_blank"
>{{ $t('help.groups.readers.zocurelia') }}</a>
</li>
......
<template>
<div>
<a :title="$t('rss.tooltip')" target="_blank" :href="feed">
<img class="rss-icon" src="@/assets/img/rss.png" alt="RSS icon" />
</a>
</div>
</template>
<script>
export default {
name: "RSS",
props: ["url"],
computed: {
feed() {
return "https://hypothes.is/stream.rss?uri=" + this.url;
}
}
};
</script>
......@@ -132,5 +132,8 @@
"buttonLinkText": "Mehr erfahren",
"message": "Diese Website verwendet Cookies, um Dir den vollen Funktionsumfang zu bieten."
},
"historyback": "Zurück"
"historyback": "Zurück",
"rss": {
"tooltip": "Rechtsklick, um den RSS-Feed für Annotationen zu kopieren"
}
}
......@@ -133,5 +133,8 @@
"buttonLinkText": "More info",
"message": "This website uses cookies to ensure you get the best experience on our website."
},
"historyback": "Back"
"historyback": "Back",
"rss": {
"tooltip": "Right-click to copy the link to the RSS feed of related annotations"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment