~sircmpwn/sr.ht-dev

man.sr.ht: Add button to create wiki on user page v1 PROPOSED

наб: 1
 Add button to create wiki on user page

 1 files changed, 6 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/13945/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH man.sr.ht] Add button to create wiki on user page Export this patch

---
 mansrht/templates/user.html | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/mansrht/templates/user.html b/mansrht/templates/user.html
index e0d2b8e..8afbd99 100644
--- a/mansrht/templates/user.html
+++ b/mansrht/templates/user.html
@@ -22,6 +22,12 @@
      {% if user.bio %}
      {{user.bio | md}}
      {% endif %}
      {% if current_user and current_user.username == user.username %}
      <a
        href="{{url_for('create.create_GET')}}"
        class="btn btn-primary btn-block"
      >Create new wiki {{icon("caret-right")}}</a>
      {% endif %}
      {% if notice %}
      <div class="alert alert-success">
        {{ notice }}
-- 
2.20.1
Thanks!

To git@git.sr.ht:~sircmpwn/man.sr.ht
   80d6f37..0e69e57  master -> master