All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m5s
Combines shared, blog, market, cart, events, federation, and account into a single repository. Eliminates submodule sync, sibling model copying at build time, and per-app CI orchestration. Changes: - Remove per-app .git, .gitmodules, .gitea, submodule shared/ dirs - Remove stale sibling model copies from each app - Update all 6 Dockerfiles for monorepo build context (root = .) - Add build directives to docker-compose.yml - Add single .gitea/workflows/ci.yml with change detection - Add .dockerignore for monorepo build context - Create __init__.py for federation and account (cross-app imports)
46 lines
1.8 KiB
HTML
46 lines
1.8 KiB
HTML
<div class="bg-white rounded-lg shadow-sm border border-stone-200 p-4">
|
|
<div class="flex items-start gap-4">
|
|
{% if result.icon_url %}
|
|
<img src="{{ result.icon_url }}" alt="" class="w-16 h-16 rounded-full">
|
|
{% else %}
|
|
<div class="w-16 h-16 rounded-full bg-stone-300 flex items-center justify-center text-stone-600 font-bold text-xl">
|
|
{{ result.preferred_username[0] | upper }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="flex-1">
|
|
<div class="flex items-baseline gap-2">
|
|
<span class="font-bold text-lg">{{ result.display_name or result.preferred_username }}</span>
|
|
<span class="text-stone-500">@{{ result.preferred_username }}@{{ result.domain }}</span>
|
|
</div>
|
|
|
|
{% if result.summary %}
|
|
<div class="text-sm text-stone-600 mt-1 prose prose-sm prose-stone max-w-none">
|
|
{{ result.summary | safe }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if actor %}
|
|
<div class="mt-3 flex gap-2">
|
|
<form method="post" action="{{ url_for('social.follow') }}">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<input type="hidden" name="actor_url" value="{{ result.actor_url }}">
|
|
<button type="submit"
|
|
class="bg-stone-800 text-white px-4 py-1.5 rounded text-sm hover:bg-stone-700">
|
|
Follow
|
|
</button>
|
|
</form>
|
|
<form method="post" action="{{ url_for('social.unfollow') }}">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<input type="hidden" name="actor_url" value="{{ result.actor_url }}">
|
|
<button type="submit"
|
|
class="border border-stone-300 text-stone-700 px-4 py-1.5 rounded text-sm hover:bg-stone-100">
|
|
Unfollow
|
|
</button>
|
|
</form>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|