Skip to content

Commit

Permalink
Tool Tips : regular edit pencil-Edit this wiki page , Delete -Delete …
Browse files Browse the repository at this point in the history
…this wiki page ,etherpad -practice in a real time doc , revisions-View previous versions (#2212)

* Update _header.html.erb

added 
1 .Tool tip for regular edit pencil
2 .Tool tip for delete wiki page
3.Tool tip for revisions

* Update _header.html.erb

* Update _header.html.erb

* Update _header.html.erb

* adding  "delete this wiki page" tooltip
  • Loading branch information
Apoorva-13 authored and jywarren committed Feb 15, 2018
1 parent 7a4bdee commit 9cf54a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/views/wiki/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</li>
<% else %>
<li>
<a href="<%= @node.edit_path %>?t=<%= Time.now.to_i %>">
<a rel="tooltip" title="Edit this wiki page." data-placement="top" href="<%= @node.edit_path %>?t=<%= Time.now.to_i %>">
<i class="fa fa-pencil"></i>
<span class="hidden-xs hidden-sm hidden-md"></span>
</a>
Expand All @@ -69,23 +69,24 @@
<% end %>
<% if current_user && current_user.role == "admin" %>
<li>
<li rel="tooltip" title="Delete this wiki page." data-placement="top">
<%= 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 %>
<i class="fa fa-trash"></i>
<span class="hidden-xs hidden-sm hidden-md hidden-lg"> <%= t('wiki.show.delete') %></span>
</a>
<% end %>
</li>
<% end %>

<li>
<a href="/talk/<%= @node.slug_from_path %>">
<a rel="tooltip" title="Practice in a realtime doc." data-placement="top" href="/talk/<%= @node.slug_from_path %>">
<i class="fa fa-comments-o"></i>
<span class="hidden-xs hidden-sm hidden-md"> <%= t('wiki.show.talk') %></span>
</a>
</li>

<li>
<a href="/wiki/revisions/<%= @node.slug_from_path %>">
<a rel="tooltip" title="=View previous versions of this page." data-placement="top" href="/wiki/revisions/<%= @node.slug_from_path %>">
<span class="hidden-xs"><%= @node.revisions.length %> </span>
<i class="fa fa-list"></i>
</a>
Expand Down

0 comments on commit 9cf54a1

Please sign in to comment.