forked from retoor/devplacepy
feat: add project fork async job service with cli prune/clear commands and shared container image build target
This commit is contained in:
@@ -32,6 +32,12 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if forked_from %}
|
||||
<div class="project-detail-meta">
|
||||
<span>⑂ Forked from <a href="/projects/{{ forked_from['slug'] }}">{{ forked_from['title'] }}</a></span>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="project-detail-author">
|
||||
{% set _size = 32 %}{% set _size_class = "sm" %}{% set _user = author %}{% include "_avatar_link.html" %}
|
||||
<div>
|
||||
@@ -65,6 +71,9 @@
|
||||
<a href="/projects/{{ project['slug'] or project['uid'] }}/containers" class="project-star-btn">🖥️ Containers</a>
|
||||
{% endif %}
|
||||
<button type="button" class="project-star-btn" data-zip-download="/projects/{{ project['slug'] or project['uid'] }}/zip">📦 Download zip</button>
|
||||
{% if user %}
|
||||
<button type="button" class="project-star-btn" data-fork-project="/projects/{{ project['slug'] or project['uid'] }}/fork" data-fork-name="{{ project['title'] }}">⑂ Fork</button>
|
||||
{% endif %}
|
||||
<button type="button" class="project-star-btn" data-share="/projects/{{ project['slug'] or project['uid'] }}">🔗 Share</button>
|
||||
{% if user %}
|
||||
{% set _type = "project" %}{% set _uid = project['uid'] %}{% set _my_vote = my_vote %}{% set _count = star_count %}{% set _btn_class = "project-star-btn" %}{% include "_star_vote.html" %}
|
||||
@@ -73,11 +82,11 @@
|
||||
{% if is_owner %}
|
||||
<form method="POST" action="/projects/{{ project['slug'] or project['uid'] }}/private" style="display:inline;">
|
||||
<input type="hidden" name="value" value="{{ 0 if is_private else 1 }}">
|
||||
<button type="submit" class="project-star-btn">{% if is_private %}🔓 Make public{% else %}🔒 Make private{% endif %}</button>
|
||||
<button type="submit" class="project-star-btn" data-confirm-danger data-confirm="{% if is_private %}Make this project public? Everyone will be able to see the project and all its files.{% else %}Make this project private? Only you and administrators will be able to see it.{% endif %}">{% if is_private %}🔓 Make public{% else %}🔒 Make private{% endif %}</button>
|
||||
</form>
|
||||
<form method="POST" action="/projects/{{ project['slug'] or project['uid'] }}/readonly" style="display:inline;">
|
||||
<input type="hidden" name="value" value="{{ 0 if read_only else 1 }}">
|
||||
<button type="submit" class="project-star-btn" data-confirm="{% if read_only %}Allow file changes again for this project?{% else %}Make this project read-only? Files become immutable until you turn this off.{% endif %}">{% if read_only %}📝 Allow edits{% else %}🚫 Make read-only{% endif %}</button>
|
||||
<button type="submit" class="project-star-btn" data-confirm-danger data-confirm="{% if read_only %}Allow file changes again for this project?{% else %}Make this project read-only? Files become immutable until you turn this off.{% endif %}">{% if read_only %}📝 Allow edits{% else %}🚫 Make read-only{% endif %}</button>
|
||||
</form>
|
||||
<form method="POST" action="/projects/delete/{{ project['slug'] or project['uid'] }}" style="display:inline;">
|
||||
<button type="submit" class="project-star-btn" data-confirm="Delete this project?"><span class="icon">🗑️</span> Delete</button>
|
||||
|
||||
Reference in New Issue
Block a user