show "Raw RDF"-Button in post-context-dropdown if its the mobile view (otherwise you dont have access to it)
@@ -33,6 +33,13 @@ function genComponentConf() {
</svg>
</div>
<!-- Buttons for post -->
+ <button class="won-button--outlined thin red show-in-responsive"
+ ng-click="self.toggleRdfDisplay()">
+ <svg class="won-button-icon" style="--local-primary:var(--won-primary-color);">
+ <use xlink:href="#ico36_rdf_logo" href="#ico36_rdf_logo"></use>
+ </svg>
+ <span>{{self.shouldShowRdf? "Hide raw RDF data" : "Show raw RDF data"}}</span>
+ </button>
<button class="won-button--filled red"
ng-if="self.isOwnPost && self.isInactive"
ng-click="self.reOpenPost()">
@@ -60,6 +67,7 @@ function genComponentConf() {
isOwnPost: post && post.get("ownNeed"),
isActive: postState === won.WON.ActiveCompacted,
isInactive: postState === won.WON.InactiveCompacted,
+ shouldShowRdf: state.get("showRdf"),
post,
postUri,
};
