summaryrefslogtreecommitdiff
path: root/_includes/git-wiki/components/action_btn/page_actions.html
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2018-12-17 19:19:20 +0100
committerYehonal <yehonal.azeroth@gmail.com>2018-12-17 21:01:20 +0100
commit4e1a3540b9e9bcf8c95e2d61e674c7b9711dd99a (patch)
tree3e671c486e329d2b67312cf7c6a4d81bff5c07ed /_includes/git-wiki/components/action_btn/page_actions.html
parent2e2c8eefe545b70e0d7c5f1286477a083aff1f06 (diff)
downloadwiki-4e1a3540b9e9bcf8c95e2d61e674c7b9711dd99a.tar.gz
wiki-4e1a3540b9e9bcf8c95e2d61e674c7b9711dd99a.tar.bz2
wiki-4e1a3540b9e9bcf8c95e2d61e674c7b9711dd99a.zip
v2.1.0 with blog feature implemented
Diffstat (limited to '_includes/git-wiki/components/action_btn/page_actions.html')
-rw-r--r--_includes/git-wiki/components/action_btn/page_actions.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/_includes/git-wiki/components/action_btn/page_actions.html b/_includes/git-wiki/components/action_btn/page_actions.html
new file mode 100644
index 0000000..af5a41f
--- /dev/null
+++ b/_includes/git-wiki/components/action_btn/page_actions.html
@@ -0,0 +1,23 @@
+{% if site.use_github_wiki %}
+<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/_new">Add new</a></span>
+<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: ''}}/_edit">Edit</a></span>
+<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: ''}}/_history">History</a></span>
+<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: '.md'}}/">Source</a></span>
+{% else %}
+<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch}}?filename={{ site.wiki_folder | default: 'wiki' }}/">Add new</a></span>
+<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/edit/{{site.git_branch}}{{page.folder}}{{url | remove: '.html' | append: '.md'}}">Edit</a></span>
+<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/commits/{{site.git_branch}}{{page.folder}}{{url | remove: '.html' | append: '.md'}}">History</a></span>
+<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/blob/{{site.git_branch}}{{page.folder}}{{url | remove: '.html' | append: '.md'}}">Source</a></span>
+{% if site.blog_feature %}
+<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch}}?filename=_posts/">Add new post</a></span>
+{% endif %}
+ {% if site.use_prose_io %}
+ <br>
+ Prose.io:
+ <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch}}/{{ site.wiki_folder | default: 'wiki' }}">Add new</a></span>
+ <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/edit/{{site.git_branch}}{{page.folder}}{{url | remove: '.html' | append: '.md'}}">Edit</a></span>
+ {% if site.blog_feature %}
+ <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch}}/_posts/">Add new post</a></span>
+ {% endif %}
+ {% endif %}
+{% endif %} \ No newline at end of file