mgmt.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>OCB Management Panel</title>
  5. <link rel="icon" type="image/x-icon" href="/static/img/favicon.ico">
  6. <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
  7. </head>
  8. <script src="/static/mgmtpanel.js"></script>
  9. <div class="navbar">
  10. <div class="tab">
  11. <button class="tablinks" data-tab="queue" onclick="openTab(event, 'queue')">Queue</button>
  12. <button class="tablinks" data-tab="accounts" onclick="openTab(event, 'accounts')">Manage Accounts</button>
  13. <button class="tablinks" data-tab="managerewards" onclick="openTab(event, 'managerewards')">Rewards</button>
  14. <button class="tablinks" data-tab="categories" onclick="openTab(event, 'categories')">Categories</button>
  15. <button class="tablinks" data-tab="announcements" onclick="openTab(event, 'announcements')">Announcements</button>
  16. <button class="tablinks" data-tab="settings" onclick="openTab(event, 'settings')">Settings</button>
  17. {% if kofi_integration %}
  18. <button class="tablinks" data-tab="kofi-settings" onclick="openTab(event, 'kofi-settings')">Kofi Settings</button>
  19. {% endif %}
  20. </div>
  21. <img src="/static/img/ownchatbotwide.png">
  22. </div>
  23. <div id='queue' class="tabcontent">
  24. <body>
  25. {% if votes %}
  26. <table>
  27. <thead>
  28. <tr>
  29. <th style="width: 20%;">Active Votes</th>
  30. <th style="width: 40%;">Description</th>
  31. <th style="width: 20%;">Price</th>
  32. <th style="width: 20%;">Current Tally</th>
  33. <th></th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. {% for vote in votes %}
  38. <tr>
  39. <td> {{ prefix }}{{ vote[0] }} </td>
  40. <td> {{ vote[2] }} </td>
  41. {% set points_label = 'point' if rewards[vote[0]]["price"] == 1 else 'points' %}
  42. <td> {{ rewards[vote[0]]["price"] }} {{ points_label }}</td>
  43. {% set votes_label = 'vote' if vote[1] == 1 else 'votes' %}
  44. <td> {{ vote[1] }} {{ votes_label }}</td>
  45. <td></td>
  46. </tr>
  47. {% endfor %}
  48. </tbody>
  49. </table>
  50. {% else %}
  51. <h3> You currently have no active votes. </h3>
  52. {% endif %}
  53. <br>
  54. <hr>
  55. {% if goals %}
  56. <table>
  57. <thead>
  58. <tr>
  59. <th style="width: 20%;">Active Goals</th>
  60. <th style="width: 40%;">Description</th>
  61. <th style="width: 25%;">Progress</th>
  62. <th></th>
  63. </tr>
  64. </thead>
  65. <tbody>
  66. {% for goal in goals %}
  67. <tr>
  68. <td> {{ prefix }}{{ goal[0] }} </td>
  69. <td> {{ goal[3] }} </td>
  70. {% set progress = goal[1] / goal[2] * 100 %}
  71. <td>
  72. <div class="bar-light-grey bar-tiny bar-round" style="position: relative;">
  73. <div class="bar-round bar-blue" style="text-align: center; width:{{ progress }}%;">{{ '%0.0f'| format(progress| float) }}%
  74. </div>
  75. {% set milestones = rewards[goal[0]]["milestones"] %}
  76. {% for milestone_key, milestone in milestones.items() %}
  77. {% if milestones[milestone_key][0] and milestones[milestone_key][1] %}
  78. {% if milestones[milestone_key][1] < goal[2] %}
  79. {% set milestone_progress = milestones[milestone_key][1] / goal[2] * 100 %}
  80. <div class="milestone-marker" style="position: absolute; left: {{ milestone_progress }}%; transform: translateX(-50%);">
  81. <img src="/static/img/milestone.png" style="width: 16px; height: 16px;" title="{{ milestones[milestone_key][1] }} points. {{ milestones[milestone_key][0] }}">
  82. </div>
  83. {% endif %}
  84. {% endif %}
  85. {% endfor %}
  86. </div>
  87. </td>
  88. {% if goal[1] == goal[2] %}
  89. <td> {{ goal[1] }} / {{ goal[2] }} <img src=/static/img/tada.png style="width: 24px; height: 24px;"></td>
  90. {% else %}
  91. <td> {{ goal[1] }} / {{ goal[2] }} </td>
  92. {% endif %}
  93. </tr>
  94. {% endfor %}
  95. <tr style="border-bottom: none;">
  96. <td>
  97. </td>
  98. <td>
  99. </td>
  100. <td style="font-size: small;">
  101. (Mouse over flags for milestone details)
  102. </td>
  103. </tr>
  104. </tbody>
  105. </table>
  106. {% else %}
  107. <h3> You currently have no active goals. </h3>
  108. {% endif %}
  109. <hr>
  110. <h3>Redeems Queue</h3>
  111. {% if queue %}
  112. <a href="/mgmt/clearfulfilled"><button class="button button2" onclick="openTab(event, 'queue')">Clear Fullfilled Rewards</button></a>&nbsp;&nbsp;<a href="/mgmt/clearqueue"><button class="button button2" onclick="openTab(event, 'queue')">Clear All Rewards</button></a>
  113. <table>
  114. <thead>
  115. <tr>
  116. <th>Time</th>
  117. <th>Reward</th>
  118. <th>Description</th>
  119. <th>User</th>
  120. <th></th>
  121. </tr>
  122. </thead>
  123. <tbody>
  124. {% for row in queue %}
  125. <tr>
  126. <td>{{ row[1].replace(tzinfo=utc_timezone).astimezone().strftime("%H:%M") }}</td>
  127. {% if row[4] %}
  128. <td><s>{{ row[2] }}</s></td>
  129. {% else %}
  130. <td>{{ row[2] }}</td>
  131. {% endif %}
  132. <td>{{ rewards[row[2]]["info"] }}</td>
  133. <td>{{ row[6] }}</td>
  134. {% if row[4] %}
  135. {% if row[5] %}
  136. <td>Refunded</td>
  137. {% else %}
  138. <td><a href="/mgmt/refund?reward={{ row[2] }}&username={{ row[6] }}&rewarder_id={{ row[3] }}&reward_id={{ row[0] }} "><button class="button button2" onclick="openTab(event, 'queue')">Refund</button></a></td>
  139. {% endif %}
  140. {% else %}
  141. <td><a href="/mgmt/fulfill?reward_id={{ row[0] }}&username={{ row[6] }}"><button class="button button2" onclick="openTab(event, 'queue')">Fulfill</button></a></td>
  142. {% endif %}
  143. </tr>
  144. {% endfor %}
  145. </tbody>
  146. </table>
  147. {% else %}
  148. <p>There are currently no rewards waiting in the queue.</p>
  149. {% endif %}
  150. </body>
  151. </div>
  152. <div id='accounts' class="tabcontent">
  153. <body>
  154. <h3>Manage Viewer Accounts</h3>
  155. {% if users %}
  156. <table>
  157. <thead>
  158. <tr>
  159. <th>User</th>
  160. <th>Points balance</th>
  161. <th>Email</th>
  162. <th>Authed</th>
  163. <th></th>
  164. </tr>
  165. </thead>
  166. <tbody>
  167. {% for user in users %}
  168. <tr>
  169. <td> {{ user[1] }} </td>
  170. {% set points_label = 'point' if user[2] == 1 else 'points' %}
  171. <td>{{ user[2] }} {{ points_label }}</td>
  172. {% if user[4] %}
  173. <td>{{ user[4] }}</td>
  174. {% else %}
  175. <td>none</td>
  176. {% endif %}
  177. {% if user[3] %}
  178. <td>Yes</td>
  179. {% else %}
  180. <td>No</td>
  181. {% endif %}
  182. <td> <a href="/mgmt/edit_account/{{ user[0] }}?name={{ user[1] }}&points={{ user[2] }}&email={{ user[4] }}"><button class="button button2" onclick="openTab(event, 'panel')">Edit</button></a> </td>
  183. </tr>
  184. {% endfor %}
  185. </tbody>
  186. </table>
  187. {% endif %}
  188. </body>
  189. </div>
  190. <div id='managerewards' class="tabcontent">
  191. <h3>Manage Rewards</h3>
  192. <body>
  193. <div>
  194. <h4>Reward Types:</h4>
  195. <ul>
  196. <li><u>Redeems</u> are standard stream point redeems. They get added to the queue for the streamer to fulfill.</li>
  197. <li><u>Specials</u> are redeems, but they run system commands and scripts. This enables you to integrate a lot of other fun things, such as letting your viewers control lighting, activate devices, trigger webhooks, etc. Specials do not go into the queue, because they happen automagically.</li>
  198. <ul>
  199. <li>Be careful with this one. It does require some more advanced scripting/command line knowledge. Make sure you test your specials before letting viewers use them.</li>
  200. </ul>
  201. <li><u>Votes</u> are just that, votes. Your viewers can vote on them.</li>
  202. <li><u>Goals</u> are rewards that everyone in chat can contribute to. The streamer fulfills the reward when the goal is reached.</li>
  203. <li>Add rewards to categories to enable and disable groups of rewards.</li>
  204. <li>Rewards with no categories are inactive.</li>
  205. </ul>
  206. </div>
  207. <table>
  208. <tr>
  209. <td>
  210. </td>
  211. <td>
  212. </td>
  213. <td>
  214. </td>
  215. <td>
  216. </td>
  217. </tr>
  218. <tr>
  219. <td>
  220. <a href="{{ url_for('web_panels.add', reward_type='redeem') }}"><button class="button button2" onclick="openTab(event, 'managerewards')">Create a Redeem</button></a><br>
  221. </td>
  222. <td>
  223. <a href="{{ url_for('web_panels.add', reward_type='special') }}"><button class="button button2" onclick="openTab(event, 'managerewards')">Create a Special</button></a><br>
  224. </td>
  225. <td>
  226. <a href="{{ url_for('web_panels.add', reward_type='vote') }}"><button class="button button2" onclick="openTab(event, 'managerewards')">Create a Vote</button></a><br>
  227. </td>
  228. <td>
  229. <a href="{{ url_for('web_panels.add', reward_type='goal') }}"><button class="button button2" onclick="openTab(event, 'managerewards')">Create a Goal</button></a><br>
  230. </td>
  231. </tr>
  232. </table>
  233. <br>
  234. {% if rewards %}
  235. Rewards in <span style="color: red !important;">red</span> are inactive. To activate a reward, add it to an active category.
  236. <table>
  237. <thead>
  238. <tr>
  239. <th style="width:15%">Name</th>
  240. <th>Target</th>
  241. <th>Price</th>
  242. <th>Info</th>
  243. <th>Cool down</th>
  244. <th>Category</th>
  245. <th style="width:15%">Actions</th>
  246. </tr>
  247. </thead>
  248. <tbody>
  249. {% for reward, reward_info in rewards.items() %}
  250. {% if reward in active_rewards %}
  251. <tr>
  252. {% else %}
  253. <tr style="color: red;">
  254. {% endif %}
  255. <td>{{ prefix }}{{ reward }}</td>
  256. {% if reward_info["type"] == "goal" %}
  257. <td>{{ reward_info["target"] }}</td>
  258. {% else %}
  259. <td>N/A</td>
  260. {% endif %}
  261. {% if reward_info["type"] == "goal" %}
  262. <td>N/A</td>
  263. {% else %}
  264. <td>{{ reward_info["price"] }}</td>
  265. {% endif %}
  266. <td>{{ reward_info["info"] }}</td>
  267. {% if reward_info["cooldown"] > 0 %}
  268. {% set minutes_label = 'minute' if reward_info["cooldown"] == 1 else 'minutes' %}
  269. <td>{{ reward_info["cooldown"] }} {{ minutes_label }}</td>
  270. {% else %}
  271. <td>None</td>
  272. {% endif %}
  273. <td>{{ reward_info["categories"] | join(', ') }}</td>
  274. <td>
  275. <a href="{{ url_for('web_panels.edit', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: green;">Edit</span></button></a>&nbsp
  276. <a href="{{ url_for('web_panels.delete', reward_name=reward) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: red;">Delete</span></button></a>&nbsp
  277. {% if reward_info["type"] == "goal" or reward_info["type"] == "vote" %}
  278. <a href="{{ url_for('web_panels.reset', reward_name=reward, reward_type=reward_info["type"]) }}"><button class="button button2" onclick="openTab(event, 'managerewards')"><span style="color: orange;">Reset</span></button></a>
  279. {% endif %}
  280. </td>
  281. </tr>
  282. {% endfor %}
  283. </tbody>
  284. </table>
  285. {% endif %}
  286. </body>
  287. </div>
  288. <div id='categories' class="tabcontent">
  289. <body>
  290. <h3>Manage Categories</h3>
  291. <div>
  292. &nbsp;&nbsp;<a href="{{ url_for('web_panels.add', reward_type='category') }}"><button class="button button2" onclick="openTab(event, 'categories')">Create a new category</button></a><br>
  293. <table>
  294. <thead>
  295. <tr>
  296. <th style="width: 50%;"><h3>Active Categories</h3></th>
  297. <th style="width: 50%;"><h3>Inactive Categories</h3></th>
  298. </tr>
  299. </thead>
  300. <tbody>
  301. <tr>
  302. <td>
  303. {% for cat in active_categories %}
  304. &nbsp;&nbsp;{{ cat }} - <a href="/mgmt/deactivate/{{ cat }}"><span style="color: green;">Deactivate</span></a>&nbsp;<a href="/mgmt/delcat/{{ cat }}/active"><span style="color: red;">Delete</span></a><br>
  305. {% endfor %}
  306. </td>
  307. <td>
  308. {% for cat in inactive_categories %}
  309. &nbsp;&nbsp;{{ cat }} - <a href="/mgmt/activate/{{ cat }}"><span style="color: green;">Activate</span></a>&nbsp;<a href="/mgmt/delcat/{{ cat }}/inactive"><span style="color: red;">Delete</span></a><br>
  310. {% endfor %}
  311. </td>
  312. </tr>
  313. </tbody>
  314. </table>
  315. </div>
  316. </body>
  317. </div>
  318. <div id='announcements' class="tabcontent">
  319. <body>
  320. <form method="POST" action="/mgmt/announcements">
  321. <table>
  322. <h3>Manage Announcements</h3>
  323. <table>
  324. <thead>
  325. <tr style="border-bottom: none;">
  326. <th style="width: 20%;"></th>
  327. <th style="width: 50%;"></th>
  328. <th></th>
  329. </tr>
  330. </thead>
  331. <tr>
  332. <td> <label for="announce_enable">Enable:</label> </td>
  333. {% if settings_info[9] %}
  334. <td> <input type="checkbox" name="announce_enable" value="{{ settings_info[9] }}" checked> </td>
  335. {% else %}
  336. <td> <input type="checkbox" name="announce_enable" value="{{ settings_info[9] }}"> </td>
  337. {% endif %}
  338. <td>Enable periodic announcements</td>
  339. </tr>
  340. <tr>
  341. <td> <label for="announce_interval">Interval:</label> </td>
  342. <td> <input type="number" name="announce_interval" value="{{ settings_info[10] }}" size="2" required> minutes</td>
  343. <td>How long between each announcement?</td>
  344. </tr>
  345. <tr>
  346. <td> <label for="announcements">Announcements:</label> </td>
  347. <td>
  348. <textarea name="announcements" rows="5" cols="50">{{ announcements | join('\n') }}</textarea>
  349. </td>
  350. <td>Enter your announcements, one per line. May contain html <a href=https://www.w3schools.com/tags/tag_img.asp>IMG tags</a> to display images.</td>
  351. </tr>
  352. </table>
  353. <br><button class="button button2" type="submit">Save Changes</button><br>
  354. </form>
  355. <br><br>
  356. </body>
  357. </div>
  358. <div id='settings' class="tabcontent">
  359. <body style="text-align: left;">
  360. <form method="POST" action="/mgmt/settings">
  361. <table>
  362. <h3>OwnchatBot Settings</h3>
  363. <thead>
  364. <tr style="border-bottom: none;">
  365. <th style="width: 20%;"></th>
  366. <th></th>
  367. <th style="width: 50%;"></th>
  368. </tr>
  369. </thead>
  370. <tr>
  371. <td> <label for="mgmt_auth">Management Auth Code:</label> </td>
  372. <td style="padding: 5px;"> <input type="text" name="mgmt_auth" value="{{ settings_info[0] }}" size="30" required> </td>
  373. <td>Pregenerated during install. Goes in your management panel URL. Keep it secret. Keep it safe.<br>
  374. http://localhost:5000/mgmt?auth={{ settings_info[0] }}</td>
  375. </tr>
  376. <tr>
  377. <td> <label for="points_interval">Points Interval:</label> </td>
  378. <td> <input type="number" name="points_interval" value="{{ settings_info[1] }}" size="5" required> minutes</td>
  379. <td>How often do you want to award your viewers points?</td>
  380. </tr>
  381. <tr>
  382. <td> <label for="points_award">Points Award:</label> </td>
  383. <td> <input type="number" name="points_award" value="{{ settings_info[2] }}" size="5" required> points</td>
  384. <td>How many points do you want to award them?</td>
  385. </tr>
  386. <tr>
  387. <td> <label for="gunicorn_logging">Gunicorn Logging:</label> </td>
  388. {% if settings_info[3] %}
  389. <td> <input type="checkbox" name="gunicorn_logging" value="{{ settings_info[3] }}" checked> </td>
  390. {% else %}
  391. <td> <input type="checkbox" name="gunicorn_logging" value="{{ settings_info[3] }}"> </td>
  392. {% endif %}
  393. <td>Enable Gunicorn logging integration.</td>
  394. </tr>
  395. <tr>
  396. <td> <label for="prefix">Chat Command Prefix:</label> </td>
  397. <td> <input type="text" name="prefix" maxlength="1" size="1" value="{{ settings_info[4] }}" required> </td>
  398. <td>Character that preceeds chat commands, so OwnchatBot knows what to look for.<br>Example: "{{ settings_info[4] }}points"</td>
  399. </tr>
  400. </table>
  401. <h3>Owncast Integration</h3>
  402. <table>
  403. <thead>
  404. <tr style="border-bottom: none;">
  405. <th style="width: 20%;"></th>
  406. <th></th>
  407. <th style="width: 50%;"></th>
  408. </tr>
  409. </thead>
  410. <tr>
  411. <td> <label for="access_token">Access Token:</label> </td>
  412. <td style="padding: 5px;"> <input type="text" name="access_token" value="{{ settings_info[5] }}" size="40"> </td>
  413. <td>Create in Owncast Admin panel. Integrations -> Access Tokens (check all three boxes)</td>
  414. </tr>
  415. <tr>
  416. <td> <label for="owncast_url">Your Owncast URL:</label> </td>
  417. <td> <input type="text" name="owncast_url" value="{{ settings_info[6] }}" size="40"> </td>
  418. <td>The address of your Owncast instance. Can be an internal address, such as "localhost" if that's the case.</td>
  419. </tr>
  420. </table>
  421. <h3>Kofi Integration</h3>
  422. <table>
  423. <thead>
  424. <tr style="border-bottom: none;">
  425. <th style="width: 20%;"></th>
  426. <th></th>
  427. <th style="width: 50%;"></th>
  428. </tr>
  429. </thead>
  430. <tr>
  431. <td> <label for="kofi_integration">Enable:</label> </td>
  432. {% if settings_info[8] %}
  433. <td> <input type="checkbox" name="kofi_integration" value="{{ settings_info[8] }}" checked> </td>
  434. {% else %}
  435. <td> <input type="checkbox" name="kofi_integration" value="{{ settings_info[8] }}"> </td>
  436. {% endif %}
  437. <td>Enable Ko-fi integration.</td>
  438. </tr>
  439. <tr>
  440. <td> <label for="kofi_token">Verification Token:</label> </td>
  441. <td style="padding: 5px;"> <input type="text" name="kofi_token" value="{{ settings_info[7] }}" size="40"> </td>
  442. <td>Get from Kofi -> More -> API -> Webhooks -> Advanced -> Verification Token.</td>
  443. </tr>
  444. </table>
  445. <br><button class="button button2" type="submit">Save Changes</button><br>
  446. </form>
  447. <br><br>
  448. </body>
  449. </div>
  450. <div id='kofi-settings' class="tabcontent">
  451. <body style="text-align: left;">
  452. <form method="POST" action="/mgmt/ksettings">
  453. <table>
  454. <h3>Kofi Settings</h3>
  455. <h4> Donations </h4>
  456. <thead>
  457. <tr style="border-bottom: none;">
  458. <th style="width: 20%;"></th>
  459. <th></th>
  460. <th style="width: 50%;"></th>
  461. </tr>
  462. </thead>
  463. <tr>
  464. <td> <label for="enable_donations">Enable points for donations:</label> </td>
  465. {% if kofi_settings['donations'] %}
  466. <td> <input type="checkbox" name="enable_donations" value="{{ kofi_settings['donations'] }}" checked> </td>
  467. {% else %}
  468. <td> <input type="checkbox" name="enable_donations" value="{{ kofi_settings['donations'] }}"> </td>
  469. {% endif %}
  470. <td>Enable awarding points for donations</td>
  471. </tr>
  472. <tr>
  473. <td> <label for="set_donation_points">Points per dollar:</label> </td>
  474. <td> <input type="number" name="set_donation_points" value="{{ kofi_settings['donation_points'] }}" size="5" required> points</td>
  475. <td>How many points should viewers recieve, for every dollar they donate?</td>
  476. </tr>
  477. <tr>
  478. <td> <label for="kofi_url">Kofi Page:</label> </td>
  479. <td style="padding: 5px;"> <input type="text" name="kofi_url" value="{{ kofi_settings['kofi_url'] }}" size="30"> </td>
  480. <td>What is your Kofi page URL?</td>
  481. </tr>
  482. <tr>
  483. <table>
  484. <h4> Subscriptions </h4>
  485. <tbody>
  486. <tr>
  487. <td> <label for="enable_subs">Enable points for subscriptions:</label> </td>
  488. {% if kofi_settings['subs'] %}
  489. <td> <input type="checkbox" name="enable_subs" value="{{ kofi_settings['subs'] }}" checked> </td>
  490. {% else %}
  491. <td> <input type="checkbox" name="enable_subs" value="{{ kofi_settings['subs'] }}"> </td>
  492. {% endif %}
  493. <td>Enable awarding points for monthly subscriptions</td>
  494. </tr>
  495. <tr>
  496. <td> <label for="sub_points">Points per month:</label> </td>
  497. <td> <input type="number" name="sub_points" value="{{ kofi_settings['sub_points'] }}" size="6" required> points</td>
  498. <td>How many points should subscribers recieve every month?</td>
  499. </tr>
  500. </tbody>
  501. </table>
  502. </tr>
  503. <tr>
  504. <table>
  505. <h4> Logo </h4>
  506. <tbody>
  507. <tr style="border-bottom: none;">
  508. Which logo would you like to use?
  509. </tr>
  510. {% for kofi_logo in kofi_logos %}
  511. {% if loop.index0 % 8 == 0 %}
  512. <tr style="border-bottom: none;">
  513. {% endif %}
  514. <td>
  515. <label for="kofi_logo"><img src="/static/img/kofi/{{ kofi_logo }}"></label>
  516. {% if kofi_logo == kofi_settings['kofi_logo'] %}
  517. <input type="radio" name="kofi_logo" value="{{ kofi_logo }}" checked>
  518. {% else %}
  519. <input type="radio" name="kofi_logo" value="{{ kofi_logo }}">
  520. {% endif %}
  521. </td>
  522. {% if loop.index0 % 8 == 7 or loop.last %}
  523. </tr> <!-- Close the row after 8 items or at the end -->
  524. {% endif %}
  525. {% endfor %}
  526. </tbody>
  527. </table>
  528. </tr>
  529. </table>
  530. <br><button class="button button2" type="submit">Save Changes</button><br>
  531. </form>
  532. <br><br>
  533. <i>Kofi subscription tier support coming soon.</i>
  534. </body>
  535. </div>
  536. </html>