Jujutsu/git integration
The editor now has a button to commit changes to a Jujutsu repository, which is automatically created if it's not present. A git remote is automatically set up using the URL template in settings.py. I use this with Forgejo's create-on-push feature to automatically create repositories on my Forgejo instance.
This commit is contained in:
parent
500eb38774
commit
d474a394f5
13 changed files with 913 additions and 376 deletions
|
@ -25,15 +25,7 @@
|
|||
|
||||
<ul class="thinks-list">
|
||||
{% for think in recent_thinks %}
|
||||
<li class="think">
|
||||
<a href="{% url 'think' think.slug %}">{{think.slug}}</a>
|
||||
<time datetime="{{think.creation_time|date:"c"}}">{{think.creation_time}}</time>
|
||||
{% with readme=think.get_readme %}
|
||||
{% if readme %}
|
||||
<pre class="readme">{{readme|safe}}</pre>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</li>
|
||||
{% include "thinks/think_list_item.html" %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -45,19 +37,11 @@
|
|||
<ul class="thinks-list">
|
||||
{% for category in categories %}
|
||||
<li>
|
||||
<details open>
|
||||
<details>
|
||||
<summary>{% if category.grouper %}{{category.grouper}}{% else %}Uncategorised{% endif %}</summary>
|
||||
<ul>
|
||||
{% for think in category.list %}
|
||||
<li class="think">
|
||||
<a href="{% url 'think' think.slug %}">{{think.slug}}</a>
|
||||
<time datetime="{{think.creation_time|date:"c"}}">{{think.creation_time}}</time>
|
||||
{% with readme=think.get_readme %}
|
||||
{% if readme %}
|
||||
<pre class="readme">{{readme|safe}}</pre>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</li>
|
||||
{% include "thinks/think_list_item.html" %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</details>
|
||||
|
|
10
thinks/templates/thinks/think_list_item.html
Normal file
10
thinks/templates/thinks/think_list_item.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<li class="think">
|
||||
<a href="{% url 'think' think.slug %}">{{think.slug}}</a>
|
||||
<time datetime="{{think.creation_time|date:"c"}}">{{think.creation_time}}</time>
|
||||
<small class="jj {% if think.has_jj %}has{% endif %}">备份{% if think.has_jj %}✔{% else %}✗{% endif %}</small>
|
||||
{% with readme=think.get_readme %}
|
||||
{% if readme %}
|
||||
<pre class="readme">{{readme|safe}}</pre>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</li>
|
Loading…
Add table
Add a link
Reference in a new issue