2018-03-22 01:23:31 +00:00
|
|
|
% rebase('template/wrapper.tpl')
|
2018-03-22 10:22:28 +00:00
|
|
|
<a href="/logout/"><button>Logout</button></a>
|
|
|
|
|
2018-05-25 13:57:20 +00:00
|
|
|
% if enabled:
|
|
|
|
<div id="enablebutton" style="float: right; padding: 2em;">Disable</div>
|
|
|
|
% else:
|
|
|
|
<div id="enablebutton" style="float: right; padding: 2em;" color="red">Enable</div>
|
|
|
|
% end
|
2018-03-22 01:23:31 +00:00
|
|
|
|
|
|
|
<a class='button' style="padding: 1.5em;" href="/login/twitter">
|
|
|
|
<picture>
|
|
|
|
<source type='image/webp' sizes='20px' srcset="/static-cb/1517673283/twitter-20.webp 20w,/static-cb/1517673283/twitter-40.webp 40w,/static-cb/1517673283/twitter-80.webp 80w,"/>
|
|
|
|
<source type='image/png' sizes='20px' srcset="/static-cb/1517673283/twitter-20.png 20w,/static-cb/1517673283/twitter-40.png 40w,/static-cb/1517673283/twitter-80.png 80w,"/>
|
2018-05-25 12:44:45 +00:00
|
|
|
<img src="https://patriciaannbridewell.files.wordpress.com/2014/04/official-twitter-logo-tile.png" alt="" />
|
2018-03-22 01:23:31 +00:00
|
|
|
</picture>
|
|
|
|
Log in with Twitter
|
|
|
|
</a>
|
|
|
|
|
2018-06-23 22:12:39 +00:00
|
|
|
<section>
|
2018-03-22 01:23:31 +00:00
|
|
|
<h2>Log in with Mastodon</h2>
|
|
|
|
<form action="/login/mastodon" method='post'>
|
2018-03-23 01:28:00 +00:00
|
|
|
<label for="email">E-Mail of your Mastodon-Account</label>
|
|
|
|
<input type="text" placeholder="Enter Email" name="email" id="email" required>
|
|
|
|
|
|
|
|
<label for="pass">Mastodon Password</label>
|
|
|
|
<input type="password" placeholder="Enter Password" name="pass" id="pass" required>
|
|
|
|
|
2018-03-22 01:23:31 +00:00
|
|
|
<label>Mastodon instance:
|
|
|
|
<input type='text' name='instance_url' list='instances' placeholder='social.example.net'/>
|
|
|
|
</label>
|
|
|
|
<datalist id='instances'>
|
|
|
|
<option value=''>
|
|
|
|
<option value='anticapitalist.party'>
|
|
|
|
<option value='awoo.space'>
|
|
|
|
<option value='cybre.space'>
|
|
|
|
<option value='mastodon.social'>
|
|
|
|
<option value='glitch.social'>
|
|
|
|
<option value='botsin.space'>
|
|
|
|
<option value='witches.town'>
|
|
|
|
<option value='social.wxcafe.net'>
|
|
|
|
<option value='monsterpit.net'>
|
|
|
|
<option value='mastodon.xyz'>
|
|
|
|
<option value='a.weirder.earth'>
|
|
|
|
<option value='chitter.xyz'>
|
|
|
|
<option value='sins.center'>
|
|
|
|
<option value='dev.glitch.social'>
|
|
|
|
<option value='computerfairi.es'>
|
|
|
|
<option value='niu.moe'>
|
|
|
|
<option value='icosahedron.website'>
|
|
|
|
<option value='hostux.social'>
|
|
|
|
<option value='hyenas.space'>
|
|
|
|
<option value='instance.business'>
|
|
|
|
<option value='mastodon.sdf.org'>
|
|
|
|
<option value='pawoo.net'>
|
|
|
|
<option value='pouet.it'>
|
|
|
|
<option value='scalie.business'>
|
|
|
|
<option value='sleeping.town'>
|
|
|
|
<option value='social.koyu.space'>
|
|
|
|
<option value='sunshinegardens.org'>
|
|
|
|
<option value='vcity.network'>
|
|
|
|
<option value='octodon.social'>
|
|
|
|
<option value='soc.ialis.me'>
|
|
|
|
</datalist>
|
|
|
|
<input name='confirm' value='Log in' type='submit'/>
|
|
|
|
</form>
|
|
|
|
</section>
|
|
|
|
|
2018-08-08 08:24:20 +00:00
|
|
|
<%
|
|
|
|
# todo: hide this part, if there is already a telegram bot connected.
|
|
|
|
%>
|
2018-06-23 22:12:39 +00:00
|
|
|
<div>
|
2018-06-23 22:00:48 +00:00
|
|
|
<h2>Connect with Telegram</h2>
|
|
|
|
<p>
|
|
|
|
If you have a Telegram account, you can register a bot there. Just write to @botfather. You can find detailed
|
|
|
|
instructions <a href="https://botsfortelegram.com/project/the-bot-father/" target="_blank">on Bots for
|
|
|
|
Telegram</a>.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
The botfather will give you an API key - with the API key, Ticketfrei can use the Telegram bot. Enter it here:
|
|
|
|
</p>
|
|
|
|
<form action="/settings/telegram" method="post">
|
2018-06-25 19:14:22 +00:00
|
|
|
<input type="text" name="apikey" placeholder="Telegram bot API key" id="apikey">
|
2018-06-23 22:00:48 +00:00
|
|
|
<input name='confirm' value='Login with Telegram' type='submit'/>
|
2018-07-13 13:55:14 +00:00
|
|
|
</form>
|
2018-06-23 22:12:39 +00:00
|
|
|
</div>
|
2018-06-23 22:00:48 +00:00
|
|
|
|
2018-06-23 22:12:39 +00:00
|
|
|
<div>
|
2018-05-25 12:44:45 +00:00
|
|
|
<h2>Edit your city page</h2>
|
|
|
|
<p>
|
2018-05-25 14:15:44 +00:00
|
|
|
With your bot, we generated you a page, which you can use for promotion: <a href="/city/{{city}}"
|
|
|
|
target="_blank">Ticketfrei {{city}}</a> You can change what your users will read there, and adjust it to your
|
2018-05-25 12:44:45 +00:00
|
|
|
needs. <b>You should definitely adjust the Social Media profile links.</b> This is just the default text we
|
|
|
|
suggest:
|
|
|
|
</p>
|
2018-05-25 14:50:02 +00:00
|
|
|
<form action="/settings/markdown" method="post">
|
|
|
|
<textarea id="markdown" rows="20" cols="70" name="markdown" wrap="physical">{{markdown}}</textarea>
|
2018-05-25 12:44:45 +00:00
|
|
|
<input name='confirm' value='Save' type='submit'/>
|
|
|
|
</form>
|
|
|
|
</div>
|
2018-03-22 01:23:31 +00:00
|
|
|
|
2018-06-23 22:12:39 +00:00
|
|
|
<div>
|
2018-05-25 12:44:45 +00:00
|
|
|
<h2>Edit your trigger patterns</h2>
|
2018-03-22 01:23:31 +00:00
|
|
|
<p>
|
|
|
|
These words have to be contained in a report.
|
|
|
|
If none of these expressions is in the report, it will be ignored by the bot.
|
|
|
|
You can use the defaults, or enter some expressions specific to your city and language.
|
|
|
|
</p>
|
|
|
|
<form action="/settings/goodlist" method="post">
|
|
|
|
<!-- find a way to display current good list. js which reads from a cookie? template? -->
|
2018-05-25 13:57:20 +00:00
|
|
|
<textarea id="goodlist" rows="8" cols="70" name="goodlist" wrap="physical">{{triggerwords}}</textarea>
|
2018-03-22 01:23:31 +00:00
|
|
|
<input name='confirm' value='Submit' type='submit'/>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2018-06-23 22:12:39 +00:00
|
|
|
<div>
|
2018-09-15 17:01:58 +00:00
|
|
|
<h2>Edit the blocklist</h2>
|
2018-03-22 01:23:31 +00:00
|
|
|
<p>
|
|
|
|
These words are not allowed in reports.
|
|
|
|
If you encounter spam, you can add more here - the bot will ignore reports which use such words.
|
2018-09-15 17:01:58 +00:00
|
|
|
There are words which you can't exclude from the blocklist, e.g. certain racist, sexist, or antisemitic slurs.
|
2018-03-22 01:23:31 +00:00
|
|
|
</p>
|
2018-09-15 17:01:58 +00:00
|
|
|
<form action="/settings/blocklist" method="post">
|
|
|
|
<textarea id="blocklist" rows="8" cols="70" name="blocklist" wrap="physical">{{badwords}}</textarea>
|
2018-03-22 01:23:31 +00:00
|
|
|
<input name='confirm' value='Submit' type='submit'/>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|