2022-02-24 12:03:28 +00:00
{% extends "default.html" %}
2023-10-07 18:04:12 +00:00
{% block pagetitle %}Hole List{% endblock %}
2022-02-24 12:03:28 +00:00
{% block content %}
2024-04-09 19:00:28 +00:00
< h3 class = "mt-3 ml-3" > Create Hole< / h3 >
< form class = "mt-3" id = "submitform" action = "/create_hole" method = "post" data-nonce = "{{g.nonce}}" >
< div class = "container pb-0" >
< div class = "row mb-4" >
< div class = "col col-md-6 p-3 py-md-0" >
< div class = "body" >
< input hidden name = "formkey" value = "{{v|formkey}}" class = "notranslate" translate = "no" >
< label for = "create-hole-name" > Hole Name< / label >
< input autocomplete = "off" minlength = "3" maxlength = "25" pattern = '[a-zA-Z0-9_\-]*' class = "form-control" id = "create-hole-name" type = "text" name = "name" required >
< small class = "form-text text-muted" > 3-25 characters, including letters, numbers, _ , and -< / small >
{% if HOLE_INACTIVITY_DELETION or True %}
< p class = "text-danger mt-2" > Warning: holes get automatically deleted if they spend 7 days with no new posts.< / p >
{% endif %}
< div class = "footer" >
< div class = "d-flex" >
< button type = "submit" class = "btn btn-primary ml-auto" { % if cost > v.coins + v.marseybux %}disabled{% endif %}>Create Hole< / button >
< / div >
< p class = "mt-2 mr-1" style = "float: right" > < b > Cost< / b > : {{cost}} coins or marseybux< / p >
< / div >
< / div >
< / div >
< / div >
< / div >
< / form >
< h3 class = "mb-3" > Holes< / h3 >
2023-10-29 12:51:00 +00:00
< div class = "overflow-x-auto" >
2024-02-12 14:18:13 +00:00
< table >
< thead >
2023-10-29 12:51:00 +00:00
< tr >
< th > #< / th >
< th > Name< / th >
< th > Posts< / th >
< th > Followers< / th >
< th > Blockers< / th >
< th > Created on< / th >
< / tr >
< / thead >
2022-07-09 08:35:47 +00:00
2024-02-07 04:09:10 +00:00
{% for hole, count in holes %}
2023-10-29 12:51:00 +00:00
< tr >
< td > {{loop.index}}< / td >
< td > < a href = "/h/{{hole}}" > {{hole}} {% if hole.name in v.hole_blocks %}< span class = "text-danger" > [blocked, visit it to unblock it]< / span > {% endif %}< / a > < / td >
< td > < a href = "/h/{{hole}}" > {{count}}< / a > < / td >
< td > < a href = "/h/{{hole}}/followers" > {{hole.follow_num}}< / a > < / td >
{% if hole.stealth %}
2024-02-15 22:03:01 +00:00
< td > {{total_users - hole.stealth_hole_unblock_num}}< / td >
2023-10-29 12:51:00 +00:00
{% else %}
< td > < a href = "/h/{{hole}}/blockers" > {{hole.block_num}}< / a > < / td >
{% endif %}
< td data-time = "{{hole.created_utc}}" > < / td >
< / tr >
{% endfor %}
< / table >
< / div >
2022-10-12 05:40:59 +00:00
{% endblock %}