aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Vivaan Verma <[email protected]>2021-08-12 14:25:19 +0100
committerGravatar Vivaan Verma <[email protected]>2021-08-12 14:25:19 +0100
commit0d0ab20223bd09ddedc2e86e1f9833fe9131766c (patch)
treec7c774623f1c7b55b6742cad220604c037ff8399
parentfeat: Center `Search` and `Clear Search` buttons (diff)
feat: Add a source button to the resource boxes
This button should be used by maintainers to take them to the YAML file holding data about that resource. It currently has no functionality.
Diffstat (limited to '')
-rw-r--r--pydis_site/templates/resources/resource_box.html21
1 files changed, 13 insertions, 8 deletions
diff --git a/pydis_site/templates/resources/resource_box.html b/pydis_site/templates/resources/resource_box.html
index af7c8d65..8146be6f 100644
--- a/pydis_site/templates/resources/resource_box.html
+++ b/pydis_site/templates/resources/resource_box.html
@@ -11,12 +11,17 @@
<p class="is-italic">{{ resource.description|safe }}</p>
- {# Icons #}
- {% for icon in resource.urls %}
- <span class="icon is-size-4 is-medium" style="margin: 5px;">
- <a href="{{ icon.url }}">
- <i class="{{ icon.icon|as_icon }} is-size-3 resource-icon is-{{ icon.color }}"></i>
- </a>
- </span>
- {% endfor %}
+ <div class="is-flex">
+ {# Icons #}
+ {% for icon in resource.urls %}
+ <span class="icon is-size-4 is-medium" style="margin: 5px;">
+ <a href="{{ icon.url }}">
+ <i class="{{ icon.icon|as_icon }} is-size-3 resource-icon is-{{ icon.color }}"></i>
+ </a>
+ </span>
+ {% endfor %}
+ <button class="button is-primary is-light is-small ml-auto p-1">
+ <a href="#">src</a>
+ </button>
+ </div>
</div>