Official Addons for the Friendica Communications Platform. (please note that this is a clone of the repository at github, issues are handled there)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
4.4 KiB

This the the source HTML for the render functions defined in advancedcontentfilter.js
This file is only for reference only and editing it won't change the addon display.
Here's the workflow to change the actual display:
1. Edit this file
2. Run it through
3. Replace the render and staticRenderFns members in advancedcontentfilter.js by the contents of the anonymous() functions
<div id="rules">
<p><a href="settings/addon">🔙 {{ messages.backtosettings }}</a></p>
{{ messages.title }}
<a href="advancedcontentfilter/help" class="btn btn-default btn-sm" :title="">
<i class="fa fa-question fa-2x" aria-hidden="true"></i>
<div>{{ messages.intro }}</div>
{{ messages.your_rules }}
<button class="btn btn-primary btn-sm" :title="messages.add_a_rule" @click="showModal = true">
<i class="fa fa-plus fa-2x" aria-hidden="true"></i>
<div v-if="rules.length === 0" v-cloak>
{{ messages.no_rules }}
<ul class="list-group" v-cloak>
<li class="list-group-item" v-for="rule in rules">
<p class="pull-right">
<button type="button" class="btn btn-xs btn-primary" v-on:click="toggleActive(rule)" :aria-label="messages.disable_this_rule" :title="messages.disable_this_rule" v-if="parseInt(">
<i class="fa fa-toggle-on" aria-hidden="true"></i> {{ messages.enabled }}
<button type="button" class="btn btn-xs btn-default" v-on:click="toggleActive(rule)" :aria-label="messages.enable_this_rule" :title="messages.enable_this_rule" v-else>
<i class="fa fa-toggle-off" aria-hidden="true"></i> {{ messages.disabled }}
<button type="button" class="btn btn-xs btn-primary" v-on:click="editRule(rule)" :aria-label="messages.edit_this_rule" :title="messages.edit_this_rule">
<i class="fa fa-pencil" aria-hidden="true"></i>
<button type="button" class="btn btn-xs btn-default" v-on:click="deleteRule(rule)" :aria-label="messages.delete_this_rule" :title="messages.delete_this_rule">
<i class="fa fa-trash-o" aria-hidden="true"></i>
<h3 class="list-group-item-heading">
{{ messages.rule }} #{{ }}: {{ }}
<pre class="list-group-item-text" v-if="rule.expression">{{ rule.expression }}</pre>
<div class="modal fade" ref="vuemodal" tabindex="-1" role="dialog" v-cloak>
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" :aria-label="messages.close" @click="showModal = false" v-if="currentTheme === 'frio'"><span aria-hidden="true">&times;</span></button>
<h3 v-if="">{{ messages.edit_the_rule }} "{{ }}"</h3>
<h3 v-if="!">{{ messages.add_a_rule }}</h3>
<div class="modal-body">
<div class="alert alert-danger" role="alert" v-if="errorMessage">{{ errorMessage }}</div>
<div class="form-group">
<input class="form-control" :placeholder="messages.rule_name" v-model="">
<div class="form-group">
<input class="form-control" :placeholder="messages.rule_expression" v-model="rule.expression">
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal" aria-label="Close" @click="resetForm()">{{ messages.cancel }}</button>
<button slot="button" class="btn btn-primary" type="button" v-if="" v-on:click="saveRule(rule)">{{ messages.save_this_rule }}</button>
<button slot="button" class="btn btn-primary" type="button" v-if="!" v-on:click="addRule()">{{ messages.add_a_rule }}</button>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<form class="form-inline" v-on:submit.prevent="showVariables()">
<legend>Show post variables</legend>
<div class="form-group" style="width: 50%">
<label for="itemUrl" class="sr-only">Post URL or item guid</label>
<input class="form-control" id="itemUrl" placeholder="Post URL or item guid" v-model="itemUrl" style="width: 100%">
<button type="submit" class="btn btn-primary">Show Variables</button>
<pre v-cloak>
{{ itemJson }}