diff options
| author | Bobby <[email protected]> | 2022-10-02 11:18:46 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-10-02 11:18:46 -0400 |
| commit | fb1225d85d9291a394e9b371231b02a85272d121 (patch) | |
| tree | 4cd3fad8990d931e827026c12c37e3d5a20a7efc /templates/dev_status | |
| parent | 8d8192ee4204ab6a9680a3103bbe14292c70b39a (diff) | |
| download | thatcomputerscientist-fb1225d85d9291a394e9b371231b02a85272d121.tar.xz thatcomputerscientist-fb1225d85d9291a394e9b371231b02a85272d121.zip | |
source code rendered through a single function
Diffstat (limited to 'templates/dev_status')
| -rw-r--r-- | templates/dev_status/home.html | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/templates/dev_status/home.html b/templates/dev_status/home.html index 4736b712..1b282d95 100644 --- a/templates/dev_status/home.html +++ b/templates/dev_status/home.html @@ -13,31 +13,28 @@ <br> <div class="files"> {% if parent %} - <div class="file"> - <div class="ft-dir"></div> - <a class="file-name" href="{% url 'dev_status:tree' parent %}">..</a> - </div> + <div class="file"> + <div class="ft-dir"></div> + <a class="file-name" href="{% url 'dev_status:repo-path' repo parent %}">..</a> + </div> {% endif %} {% if parent == '' %} - <div class="file"> - <div class="ft-dir"></div> - <a class="file-name" href="{% url 'dev_status:home' %}">..</a> - </div> - {% endif %} - {% if files %} - {% for file in files %} <div class="file"> - <div class="ft-{{ file.type }}"></div> - {% if file.type == 'dir' %} - <a class="file-name" href="{% url 'dev_status:tree' file.path %}">{{ file.name }}</a> - {% else %} - <a class="file-name" href="{% url 'dev_status:raw' file.path %}">{{ file.name }}</a> - {% endif %} + <div class="ft-dir"></div> + <a class="file-name" href="{% url 'dev_status:repo' repo %}">..</a> </div> - {% endfor %} - {% endif %} - {% if file %} - <script src = "https://emgithub.com/embed-v2.js?target={{ file }}&style=github-dark-dimmed&type=code&showBorder=on&showLineNumbers=on&showFileMeta=on&showFullPath=on&showCopy=on"></script> - {% endif %} + {% endif %} + {% if files %} + {% for file in files %} + <div class="file"> + <div class="ft-{{ file.type }}"></div> + <a class="file-name" href="{% url 'dev_status:repo-path' repo file.path %}">{{ file.name }}</a> + </div> + {% endfor %} + {% endif %} + {% if file %} + <script src = "https://emgithub.com/embed-v2.js?target={{ file }}&style=github-dark-dimmed&type=code&showBorder=on&showLineNumbers=on&showFileMeta=on&showFullPath=on&showCopy=on"></script> + {% endif %} + </div> </div> {% endblock %} |
