mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
Add project checklist completion text
This commit is contained in:
parent
ae7768cc70
commit
8f015eb153
|
@ -43,10 +43,10 @@
|
|||
{{link("#", "documentation")}}
|
||||
</li>
|
||||
#}
|
||||
{% if view == "summary" and current_user and current_user.id == owner.id %}
|
||||
{% if current_user and current_user.id == owner.id %}
|
||||
<li class="flex-grow-1"></li>
|
||||
<li class="nav-item">
|
||||
{{link("#", "add +", cls="btn-primary")}}
|
||||
{{link("#", "add more +")}}
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
|
|
@ -13,7 +13,9 @@
|
|||
</h3>
|
||||
<ul class="checklist">
|
||||
<li>
|
||||
{% set ncomplete = 0 %}
|
||||
{% if any(project.source_repos) %}
|
||||
{% set ncomplete = ncomplete + 1 %}
|
||||
{{icon('check', cls='text-success')}}
|
||||
Add source code repositories
|
||||
<br />
|
||||
|
@ -36,6 +38,7 @@
|
|||
</li>
|
||||
<li>
|
||||
{% if any(project.mailing_lists) %}
|
||||
{% set ncomplete = ncomplete + 1 %}
|
||||
{{icon('check', cls='text-success')}}
|
||||
Add mailing lists
|
||||
<br />
|
||||
|
@ -58,6 +61,7 @@
|
|||
</li>
|
||||
<li>
|
||||
{% if any(project.trackers) %}
|
||||
{% set ncomplete = ncomplete + 1 %}
|
||||
{{icon('check', cls='text-success')}}
|
||||
Add bug trackers
|
||||
<br />
|
||||
|
@ -79,6 +83,15 @@
|
|||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
{% if ncomplete == 3 %}
|
||||
<div class="alert alert-info">
|
||||
<p>
|
||||
<a class="text-muted pull-right" href="#">dismiss</a>
|
||||
You're all set! If you want to set up more things for your project,
|
||||
click "add more" on the top right.
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue