From 35c737fc1436470b5e62f9f5cd6bb1d6878dfc6c Mon Sep 17 00:00:00 2001 From: Yehonal Date: Wed, 24 Apr 2019 14:39:50 +0200 Subject: Implemented service config and fixed action buttons --- _includes/git-wiki/components/action_btn/page_actions.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '_includes/git-wiki/components/action_btn/page_actions.html') diff --git a/_includes/git-wiki/components/action_btn/page_actions.html b/_includes/git-wiki/components/action_btn/page_actions.html index 03f1d85..097dc51 100644 --- a/_includes/git-wiki/components/action_btn/page_actions.html +++ b/_includes/git-wiki/components/action_btn/page_actions.html @@ -8,14 +8,18 @@ Add new Edit + {% if site.service == "gitlab" %} + Delete + {% else %} Delete + {% endif %} History Source {% if site.blog_feature %} Add new post {% endif %} - {% if site.use_prose_io %} + {% if site.use_prose_io and site.service == "github" %}
Prose.io: Add -- cgit From f98b158f36f7b6323bca657d539ed60cfd723a8d Mon Sep 17 00:00:00 2001 From: Takuma Ishikawa Date: Mon, 6 Jan 2020 17:39:55 +0900 Subject: Escape several strings, especially title (#71) Co-authored-by: Yehonal --- .../git-wiki/components/action_btn/page_actions.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to '_includes/git-wiki/components/action_btn/page_actions.html') diff --git a/_includes/git-wiki/components/action_btn/page_actions.html b/_includes/git-wiki/components/action_btn/page_actions.html index 097dc51..b9151b4 100644 --- a/_includes/git-wiki/components/action_btn/page_actions.html +++ b/_includes/git-wiki/components/action_btn/page_actions.html @@ -5,28 +5,28 @@ History Source {% else %} - Add + Add new - Edit + Edit {% if site.service == "gitlab" %} - Delete + Delete {% else %} - Delete + Delete {% endif %} - History - Source + History + Source {% if site.blog_feature %} - Add + Add new post {% endif %} {% if site.use_prose_io and site.service == "github" %}
Prose.io: - Add + Add new - Edit + Edit {% if site.blog_feature %} - Add + Add new post {% endif %} {% endif %} -- cgit From b3079927197d733856f44409a80110a38cdfec33 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Wed, 8 Jan 2020 22:01:08 +0100 Subject: defining service automatically based on metadata hostname --- _includes/git-wiki/components/action_btn/page_actions.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '_includes/git-wiki/components/action_btn/page_actions.html') diff --git a/_includes/git-wiki/components/action_btn/page_actions.html b/_includes/git-wiki/components/action_btn/page_actions.html index b9151b4..78a4dac 100644 --- a/_includes/git-wiki/components/action_btn/page_actions.html +++ b/_includes/git-wiki/components/action_btn/page_actions.html @@ -8,7 +8,7 @@ Add new Edit - {% if site.service == "gitlab" %} + {% if site.hostname == "gitlab.com" %} Delete {% else %} Delete @@ -19,7 +19,7 @@ Add new post {% endif %} - {% if site.use_prose_io and site.service == "github" %} + {% if site.use_prose_io and site.hostname == "github.com" %}
Prose.io: Add -- cgit From 29f1c0268fa610a934da837a404b90125a67aa18 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Sat, 11 Jan 2020 12:56:26 +0100 Subject: Update page_actions.html --- _includes/git-wiki/components/action_btn/page_actions.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_includes/git-wiki/components/action_btn/page_actions.html') diff --git a/_includes/git-wiki/components/action_btn/page_actions.html b/_includes/git-wiki/components/action_btn/page_actions.html index 78a4dac..9902234 100644 --- a/_includes/git-wiki/components/action_btn/page_actions.html +++ b/_includes/git-wiki/components/action_btn/page_actions.html @@ -19,7 +19,7 @@ Add new post {% endif %} - {% if site.use_prose_io and site.hostname == "github.com" %} + {% if site.use_prose_io and site.hostname != "gitlab.com" %}
Prose.io: Add -- cgit