Skip to content
Snippets Groups Projects
Unverified Commit 402d279d authored by Martijn Braam's avatar Martijn Braam
Browse files

Added better errors/documentation

parent d71f1d72
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,30 @@
</tr>
{% else %}
<tr>
<td colspan="5">No item found...</td>
<td colspan="5">
{% if form.name == "" and form.file == "" and form.path == "" %}
<p>
Please enter a package name, or file/path to search
</p>
{% else %}
<p>
No matching files found...
</p>
<p>
Please note that the search works by exact matches by default.
It's possible to use a * as wildcard in your search query to do partial matches.
Possible wildcards:
</p>
<ul>
<li><code>*</code> to match any number of characters</li>
<li><code>?</code> to match exactly one character</li>
<li><code>[xyz]</code> to match a single x, y or z</li>
<li><code>[a-z]</code> to match any lowercase letter</li>
<li><code>[^a-z]</code> to match anything that's not a lowercase letter</li>
</ul>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
......
......@@ -156,7 +156,25 @@
</tr>
{% else %}
<tr>
<td colspan="5">No item found...</td>
<td colspan="9">
<p>
No matching packages found...
</p>
<p>
Please note that the search works by exact matches by default.
It's possible to use a * as wildcard in your search query to do partial matches.
Possible wildcards:
</p>
<ul>
<li><code>*</code> to match any number of characters</li>
<li><code>?</code> to match exactly one character</li>
<li><code>[xyz]</code> to match a single x, y or z</li>
<li><code>[a-z]</code> to match any lowercase letter</li>
<li><code>[^a-z]</code> to match anything that's not a lowercase letter</li>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment