Add link to tag best practices

This commit is contained in:
Drew DeVault 2020-09-12 10:49:17 -04:00
parent 8737b4881d
commit 3744bd5d47
2 changed files with 16 additions and 2 deletions

View File

@ -41,7 +41,14 @@
id="tags"
name="tags"
placeholder="Up to three comma-separated topics"
value="{{tags or ", ".join(project.tags)}}" />
value="{{tags or ", ".join(project.tags)}}"
aria-describedBy="tags-help" />
<small class="form-text text-muted" id="tag-help">
<a
href="https://man.sr.ht/hub.sr.ht/#best-practices-for-tags"
rel="noopener"
>Best practices for tags {{icon('external-link-alt')}}</a>
</small>
{{valid.summary("tags")}}
</div>
<div class="form-group">

View File

@ -51,7 +51,14 @@
name="tags"
class="form-control {{valid.cls("tags")}}"
placeholder="Up to three comma-separated topics"
value="{{", ".join(tags) or ""}}" />
value="{{", ".join(tags) or ""}}"
aria-describedBy="tag-help" />
<small class="form-text text-muted" id="tag-help">
<a
href="https://man.sr.ht/hub.sr.ht/#best-practices-for-tags"
rel="noopener"
>Best practices for tags {{icon('external-link-alt')}}</a>
</small>
{{valid.summary("tags")}}
</div>
<div class="flex-grow-1 d-flex flex-row justify-content-end">