-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.py
executable file
·21 lines (19 loc) · 967 Bytes
/
index.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/local/bin/py
import ht
import sys
def htmain():
print(ht.grespage(attributes={"class": "center"}, content=
ht.tag("div", content=
ht.tag("div", attributes={"class": "forkme"}, content=
ht.tag("a", attributes={"href": "https://github.com/fidera/pygres"}, content=
ht.tag("img", attributes={"src": "https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png", "alt": "Fork me on GitHub"})
)
) +
ht.tag("h1", content="Welcome to Progress") +
(ht.tag("p", content="Please log in. Anonymous access is in the works.") if ht.oid() == None else ht.tag("p", content="Nothing to see here. The ability to create tasks is in the works.")) +
ht.tag("p", content=ht.tag("a", attributes={"href": "http://fenhl.net/gres/"}, content="What is Progress?"))
)
))
if __name__ == "__main__":
sys.stderr = sys.stdout
htmain()