brand-info.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <div class="w-100" style="background-color: white; border: 1px solid black;">
  2. <h1>{{ brand.display_name }}</h1>
  3. {% if 'logo_href' in brand %}
  4. <img src="{{ brand.logo_href }}" style="max-width: 25%">
  5. {% endif %}
  6. {% if brand.description %}
  7. {% for para in brand.description.split('\n') %}
  8. <p>{{ para }}</p>
  9. {% endfor %}
  10. {% endif %}
  11. {% if venmo %}
  12. <h2>Tips</h2>
  13. <ul>
  14. {% if venmo %}
  15. <li><a href="{{ venmo.href }}">Venmo</a> (@{{ venmo.id }})</li>
  16. {% endif %}
  17. </ul>
  18. {% endif %}
  19. {% if patreon or (gumroad and gumroad.subscriptions and len(gumroad.subscriptions)) %}
  20. <h2>Subscriptions</h2>
  21. <ul>
  22. {% if patreon %}
  23. <li><a href="{{ patreon.href }}">Patreon</a> (@{{ patreon.id }})</li>
  24. {% endif %}
  25. {% for sub in gumroad.subscriptions %}
  26. {% if sub.tiers %}
  27. <li>{{ sub.name }}
  28. <ul>
  29. {% for tier in sub.tiers %}
  30. <li><a href="{{ sub.href }}?option={{ tier.option }}">{{ tier.name }}</a> ({{ tier.yearly }}/yr or {{ tier.monthly }}/mo)</li>
  31. {% endfor %}
  32. </ul>
  33. </li>
  34. {% else %}
  35. <li><a href="{{ sub.href }}">{{ sub.name }} ({{ sub.yearly }}/yr or {{ sub.monthly }}/mo)</a></li>
  36. {% endif %}
  37. {% endfor %}
  38. </ul>
  39. {% endif %}
  40. {% if gumroad and gumroad.products %}
  41. <h2>Products</h2>
  42. <ul>
  43. {% for product in gumroad.products %}
  44. <li><a href="{{ product.href }}">{{ product.name }}</a> ({{ product.price }})</li>
  45. {% endfor %}
  46. </ul>
  47. {% endif %}
  48. {% if twitter or youtube or mastodon or receipt_tracker %}
  49. <h2>On Hogumathi</h2>
  50. <ul>
  51. {% if twitter %}
  52. <li><a href="{{ twitter.hogu_href }}">Twitter</a> (@{{ twitter.username }}) [<a href="{{ twitter.href }}">source</a>]</li>
  53. {% endif %}
  54. {% if youtube %}
  55. <li><a href="{{ youtube.hogu_href }}">YouTube</a> (@{{ youtube.username }}) [<a href="{{ youtube.href }}">source</a>]</li>
  56. {% endif %}
  57. {% if mastodon %}
  58. <li><a href="{{ mastodon.hogu_href }}">Mastodon</a> (@{{ mastodon.username }}@{{ mastodon.instance }}) [<a href="{{ mastodon.href }}">source</a>]</li>
  59. {% endif %}
  60. {% if receipt_tracker %}
  61. <li><a href="{{ receipt_tracker.hogu_href }}">Receipts</a> [<a href="{{ receipt_tracker.href }}">source</a>]</li>
  62. {% endif %}
  63. </ul>
  64. {% endif %}
  65. {% if mailchimp or discord %}
  66. <h2>Community</h2>
  67. <ul>
  68. {% if mailchimp %}
  69. <li><a href="{{ mailchimp.href }}">Mailchimp</a></li>
  70. {% endif %}
  71. {% if discord %}
  72. <li><a href="{{ discord.href }}">Discord</a></li>
  73. {% endif %}
  74. </ul>
  75. {% endif %}
  76. {% if twitch or instagram %}
  77. <h2>Other Socials</h2>
  78. <ul>
  79. {% if twitch %}
  80. <li><a href="{{ twitch.href }}">Twitch</a> (@{{ twitch.id }})</a></li>
  81. {% endif %}
  82. {% if instagram %}
  83. <li><a href="{{ instagram.href }}">Instagram</a> (@{{ instagram.id }})</a></li>
  84. {% endif %}
  85. </ul>
  86. {% endif %}
  87. {% if contributors %}
  88. <h2>Contributors</h2>
  89. <p>Thanks to our kind contributors for helping support development:</p>
  90. <table>
  91. <thead>
  92. <tr>
  93. <th>Name</th>
  94. <th>Amount (Est)</th>
  95. </tr>
  96. </thead>
  97. <tbody>
  98. {% for contributor in contributors %}
  99. <tr>
  100. <td>{{ contributor.name }}</td>
  101. <td>{{ contributor.amount }}</td>
  102. </tr>
  103. {% endfor %}
  104. </tbody>
  105. </table>
  106. {% endif %}
  107. </div>