Made the footer less ugly and more

This commit is contained in:
jyamihud 2022-04-05 21:21:04 +03:00
parent 569e20ab02
commit 96686b2361
3 changed files with 23 additions and 6 deletions

View file

@ -25,6 +25,18 @@ The software is built on Python. So you will need to have python3 installed. The
On first run, you will be prompted to edit the newly created `config.json`. You should set the URL to be the URL in which you are hosting **Free Competitors** (ex. `http://5wxkwfl6n4abwjsqv5r6roebwbc7fnc22dq3clpooojzdmdnzzo3amad.onion/`). If you do not wish to set a URL, you should set it to `/`. Then, you should specify the port to serve on, and the CSS to use. On first run, you will be prompted to edit the newly created `config.json`. You should set the URL to be the URL in which you are hosting **Free Competitors** (ex. `http://5wxkwfl6n4abwjsqv5r6roebwbc7fnc22dq3clpooojzdmdnzzo3amad.onion/`). If you do not wish to set a URL, you should set it to `/`. Then, you should specify the port to serve on, and the CSS to use.
If you want your instance updated with all the new software constantly, please run a script of a similar nature from the same folder:
```
import time
import os
while True:
time.sleep(300) # Every 5 minutes
os.system("git pull") # Pull the changes from git
```
Please tell us if you start an instance. We want to add it's link here. Please tell us if you start an instance. We want to add it's link here.
# How it works? # How it works?

View file

@ -0,0 +1 @@
Some operating systems are <a href="https://gnu.org">Free Software</a>, but contain software which is not Free. This is a problem since in order for a person to control the computer, the person must have control over <i>all</i> of the software on that computer. Not merely <i>most</i> of it.

View file

@ -76,7 +76,7 @@ def html(page, json):
""" """
page = page + "<table><tr>" page = page + "<table><tr>"
linksfilter = {"git":"source"}
links = json.get("links", {}) links = json.get("links", {})
for website in links: for website in links:
if website in ["icon"]: if website in ["icon"]:
@ -84,7 +84,7 @@ def html(page, json):
link = links[website] link = links[website]
page = page + """ page = page + """
<th><form action=\""""+link+"""\"> <th><form action=\""""+link+"""\">
<button title=\""""+link+"""\" type="submit">"""+website.upper()+"""</button> <button title=\""""+link+"""\" type="submit">"""+linksfilter.get(website,website).upper()+"""</button>
</form></th> </form></th>
""" """
@ -185,15 +185,19 @@ def source_code_link(page):
<table><tr> <table><tr>
<th><form action=https://notabug.org/jyamihud/FreeCompetitors> <th><form action=https://notabug.org/jyamihud/FreeCompetitors>
<button type="submit">SOURCE CODE</button> <button title="See the full source code of the software that powers this website." type="submit">SOURCE</button>
</form></th> </form></th>
<th><form action=https://notabug.org/jyamihud/FreeCompetitors/issues>
<button title="Report a bug." type="submit">BUG?</button>
</form></th>
<th><form action=https://notabug.org/jyamihud/FreeCompetitors/issues/25> <th><form action=https://notabug.org/jyamihud/FreeCompetitors/issues/25>
<button type="submit">REPORT MISSING SOFTWARE</button> <button title="Report a piece of software that's missing from the catalogue." type="submit">MISSING?</button>
</form></th> </form></th>
<th><form action=https://notabug.org/jyamihud/FreeCompetitors/issues/24> <th><form action=https://notabug.org/jyamihud/FreeCompetitors/issues/24>
<button type="submit">REPORT ISSUE WITH SOFTWARE</button> <button title="Report a mistake in data about software." type="submit">MISTAKE?</button>
</form></th></tr></table><br><br> </form></th></tr></table><br><br>