mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-22 04:32:49 +00:00
UGC Search (/ugc_search) finds creations by name, id or LOT with where each one is. Property pages and character inventories show the icon the UGC server made of each creation, its state and a link to /ugc?item=&kind=, for whoever may view the page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
1.7 KiB
Django/Jinja
36 lines
1.7 KiB
Django/Jinja
{% extends "base.jinja2" %}
|
|
|
|
{% block title %}UGC Search - DarkflameServer{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id="ugcSearchPage" data-query="{{ query }}" data-can-accounts="{% if can.accounts_view %}1{% endif %}">
|
|
<div class="mb-3">
|
|
<h2 class="mb-1">UGC Search</h2>
|
|
<p class="text-body-secondary mb-0">Find the models, cars and rockets players built, what the UGC server made of them and where they are.
|
|
A number finds ids (the UGC / blueprint id, a placed model's object id, a property, character or account id) and LOTs;
|
|
text finds creators' character and account names, property names and the names players gave their models.
|
|
Search one field with <code>owner:</code>, <code>property:</code>, <code>model:</code>, <code>id:</code> or <code>lot:</code>.</p>
|
|
</div>
|
|
<form class="mb-3" id="ugcSearchForm" role="search">
|
|
<div class="input-group">
|
|
<input type="search" class="form-control" id="ugcSearchInput" placeholder="Name, id or LOT" aria-label="Search players' creations" autocomplete="off" maxlength="100">
|
|
<button class="btn btn-primary" type="submit">Search</button>
|
|
</div>
|
|
</form>
|
|
<div id="ugcSearchStatus" class="text-body-secondary small mb-2"></div>
|
|
<div class="card">
|
|
<div class="table-responsive">
|
|
<table class="table table-sm align-middle mb-0 table-stack">
|
|
<thead><tr><th></th><th>Creation</th><th>Made by</th><th>Where</th><th>UGC server</th></tr></thead>
|
|
<tbody id="ugcSearchRows"><tr><td colspan="5" class="text-body-secondary">Type something to search.</td></tr></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script src="/js/ugc-links.js"></script>
|
|
<script src="/js/ugc-search.js"></script>
|
|
{% endblock %}
|