From 0fb5e8302ed43f9b28a6ad62b52207153579ffbe Mon Sep 17 00:00:00 2001
From: Apoorva Dhawan <31508100+Apoorva-13@users.noreply.github.com>
Date: Sat, 3 Feb 2018 13:58:16 +0530
Subject: [PATCH 1/5] Update _header.html.erb
added
1 .Tool tip for regular edit pencil
2 .Tool tip for delete wiki page
3.Tool tip for revisions
---
app/views/wiki/_header.html.erb | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/app/views/wiki/_header.html.erb b/app/views/wiki/_header.html.erb
index 08806e0aad..9cbe998641 100644
--- a/app/views/wiki/_header.html.erb
+++ b/app/views/wiki/_header.html.erb
@@ -56,7 +56,7 @@
<% else %>
-
+
@@ -70,9 +70,10 @@
<% if current_user && current_user.role == "admin" %>
- <%= link_to url_for(action: :delete,id: @node.id),method: :delete, data: {confirm: I18n.t('wiki.show.are_you_sure_delete', path: @node.path)} do %>
+
<%= t('wiki.show.delete') %>
+
<% end %>
<% end %>
@@ -85,7 +86,7 @@
-
+
<%= @node.revisions.length %>
From 26aaef83bc055684ca29211240abdbade0bfdf48 Mon Sep 17 00:00:00 2001
From: Apoorva Dhawan <31508100+Apoorva-13@users.noreply.github.com>
Date: Sat, 3 Feb 2018 14:26:19 +0530
Subject: [PATCH 2/5] Update _header.html.erb
---
app/views/wiki/_header.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/wiki/_header.html.erb b/app/views/wiki/_header.html.erb
index 9cbe998641..b285d97ad8 100644
--- a/app/views/wiki/_header.html.erb
+++ b/app/views/wiki/_header.html.erb
@@ -79,7 +79,7 @@
<% end %>
-
+ < a rel="tooltip" title="Practice in a realtime doc." data-placement="top" href="/talk/<%= @node.slug_from_path %>">
<%= t('wiki.show.talk') %>
From 14a7ded3692ee81acde37717207b64ea5a88ee20 Mon Sep 17 00:00:00 2001
From: Apoorva Dhawan <31508100+Apoorva-13@users.noreply.github.com>
Date: Mon, 5 Feb 2018 13:18:43 +0530
Subject: [PATCH 3/5] Update _header.html.erb
---
app/views/wiki/_header.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/wiki/_header.html.erb b/app/views/wiki/_header.html.erb
index b285d97ad8..080e45e08b 100644
--- a/app/views/wiki/_header.html.erb
+++ b/app/views/wiki/_header.html.erb
@@ -79,7 +79,7 @@
<% end %>
- < a rel="tooltip" title="Practice in a realtime doc." data-placement="top" href="/talk/<%= @node.slug_from_path %>">
+
<%= t('wiki.show.talk') %>
From fb8f27357327ed3cce5a42c21e55db0a1da2bc24 Mon Sep 17 00:00:00 2001
From: Apoorva Dhawan <31508100+Apoorva-13@users.noreply.github.com>
Date: Thu, 8 Feb 2018 23:51:45 +0530
Subject: [PATCH 4/5] Update _header.html.erb
---
app/views/wiki/_header.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/wiki/_header.html.erb b/app/views/wiki/_header.html.erb
index 080e45e08b..6e2804cef8 100644
--- a/app/views/wiki/_header.html.erb
+++ b/app/views/wiki/_header.html.erb
@@ -70,7 +70,7 @@
<% if current_user && current_user.role == "admin" %>
-
+
<%= t('wiki.show.delete') %>
From 01d3a60437e0e906aadd420b1a90695ec6766962 Mon Sep 17 00:00:00 2001
From: Apoorva Dhawan <31508100+Apoorva-13@users.noreply.github.com>
Date: Thu, 15 Feb 2018 20:02:30 +0530
Subject: [PATCH 5/5] adding "delete this wiki page" tooltip
---
app/views/wiki/_header.html.erb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/wiki/_header.html.erb b/app/views/wiki/_header.html.erb
index 6e2804cef8..a9b08af4c1 100644
--- a/app/views/wiki/_header.html.erb
+++ b/app/views/wiki/_header.html.erb
@@ -69,8 +69,8 @@
<% end %>
<% if current_user && current_user.role == "admin" %>
-
-
+
+ <%= link_to url_for(action: :delete,id: @node.id),method: :delete, data: {confirm: I18n.t('wiki.show.are_you_sure_delete', path: @node.path)} do %>
<%= t('wiki.show.delete') %>