diff options
| author | Bobby <[email protected]> | 2024-02-11 18:29:09 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-02-11 18:29:09 -0500 |
| commit | 5074ea783da1971926436f7c670273cf6009df33 (patch) | |
| tree | da930f44216e410dd0ef397a9acc7c0fe51eefc8 /templates/dev_status | |
| parent | 0f9bef2e87d37e5689d11b24b63ed861015b04bd (diff) | |
| download | thatcomputerscientist-5074ea783da1971926436f7c670273cf6009df33.tar.xz thatcomputerscientist-5074ea783da1971926436f7c670273cf6009df33.zip | |
Better homepage for repositories
Diffstat (limited to 'templates/dev_status')
| -rw-r--r-- | templates/dev_status/home.html | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/templates/dev_status/home.html b/templates/dev_status/home.html index 1863434b..18574c0a 100644 --- a/templates/dev_status/home.html +++ b/templates/dev_status/home.html @@ -1,4 +1,5 @@ {% extends 'blog/partials/base.html' %} {% block content %} +{% load replace %} <div class="main"> <div style="position: relative; top: 40px;"> <table style="margin: 0 auto; position: relative; top: 120px;"> @@ -57,9 +58,34 @@ </a> </td> <td> - <p style="font-size: 14px; font-weight: bold;"><a href="{% url 'dev_status:repo' repo.name %}">{{ repo.name }}</a></p> - <p>{{ repo.description }}</p> - + <p style="font-size: 14px; font-weight: bold;"> + <a href="{% url 'dev_status:repo' repo.name %}">{{ repo.name }}</a> + {% if repo.isFork %} + <span title="Forked Repository"><img src="{% static 'images/site/icons/isFork.png' %}" style="display: inline-block; margin-left: 5px; height: 16px; position: relative; top: 4px;" border="0"></span> + {% endif %} + {% if repo.isArchived %} + <span title="Archived Repository"><img src="{% static 'images/site/icons/cabinet.gif' %}" style="display: inline-block; margin-left: 5px; height: 16px; position: relative; top: 4px;" border="0"></span> + {% endif %} + </p> + <p>{{ repo.description }}</p> + <p> + {% if repo.homepageUrl %} + <span><img src="{% static 'images/site/icons/a-globe.gif' %}" style="display: inline-block; margin-right: 5px; height: 16px; position: relative; top: 4px;" border="0"></span> + <span style="margin-right: 20px;"><a href="{{ repo.homepageUrl }}" target="_blank">{{ repo.homepageUrl|replace:'https://'|replace:'http://' }}</a></span> + {% endif %} + <span title="Last Pushed"><b>Last Pushed:</b> <em>{{ repo.pushedAt }}</em></span> + </p> + <hr> + <p> + {% if repo.licenseInfo %} + <span title="License"><img src="{% static 'images/site/icons/scale.gif' %}" style="display: inline-block; margin-right: 5px; height: 16px; position: relative; top: 4px;" border="0"></span> + <span title="License" style="margin-right: 20px;">{{ repo.licenseInfo.name }}</span> + {% endif %} + <span title="Stargazers"><img src="{% static 'images/site/icons/anistar.gif' %}" style="display: inline-block; margin-right: 5px; height: 16px; position: relative; top: 4px;" border="0"></span> + <span title="Stargazers" style="margin-right: 20px;">{{ repo.stargazerCount }}</span> + <span title="Forks"><img src="{% static 'images/site/icons/isFork.png' %}" style="display: inline-block; margin-right: 5px; height: 16px; position: relative; top: 4px;" border="0"></span> + <span title="Forks">{{ repo.forkCount }}</span> + </p> </td> </tr> {% endfor %} |
