-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add htmx/reactivity to search page
- Loading branch information
1 parent
0a852a5
commit 38af4ab
Showing
5 changed files
with
74 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% load admin_urls static %} | ||
|
||
{% if object_list %} | ||
{% for object in object_list %} | ||
<div class="my-4 rounded"> | ||
<div class="shadow-xl card bg-base-200"> | ||
<div class="pb-2 card-body"> | ||
<a target="_blank" href="{{ object.github_url }}"> | ||
<h2 class="flex justify-between card-title"> | ||
<span>{{ object.full_name }}</span> | ||
<span class="text-sm">⭐ {{ object.stars }}</span> | ||
</h2> | ||
</a> | ||
<p> | ||
{% for topic in object.topics|slice:"0:5" %} | ||
<a class="p-3 mr-1 text-xs badge badge-outline hover:brightness-125" | ||
href="{% url 'core:search' %}?q={{ topic }}">{{ topic|truncatechars:30 }}</a> | ||
{% endfor %} | ||
</p> | ||
<p class="mt-2">{{ object.description }}</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
{% endif %} |