add tooltips to archive buttons

This commit is contained in:
Mojca Lorber 2017-06-27 14:48:45 +02:00
parent 0160956377
commit d03be76f35
4 changed files with 11 additions and 4 deletions

View file

@ -59,7 +59,7 @@
<div class="form-group">
<!-- project archive button -->
<a class="btn btn-default pull-right" href="<%= url_for projects_archive_path %>" id="project-archive-btn" title="">
<a class="btn btn-default pull-right" href="<%= url_for projects_archive_path %>" id="project-archive-btn" title="<%= t'projects.index.archive' %>">
<span class="glyphicon glyphicon-briefcase" aria-hidden="true"></span>
</a>

View file

@ -12,7 +12,7 @@
</li>
<li role="presentation" class="<%= "active" if @type == :archive %>">
<%= link_to protocols_path(team: @current_team, type: :archive) do %>
<span class="glyphicon glyphicon-briefcase"></span>
<span class="glyphicon glyphicon-briefcase" title="<%= t'protocols.index.navigation.archive' %>"></span>
<% end %>
</li>
</ul>

View file

@ -101,7 +101,9 @@
<% end %>
<% if can_view_project_archive(@project) then %>
<li id="project-archive-nav-tab" class="<%= "active" if is_project_archive? %>">
<a href="<%= experiment_archive_project_url(@project) %>"><span class="glyphicon glyphicon-briefcase"></span></a>
<a href="<%= experiment_archive_project_url(@project) %>" title="<%=t "nav2.projects.archive" %>">
<span class="glyphicon glyphicon-briefcase"></span>
</a>
</li>
<% end %>
@ -136,7 +138,9 @@
<% end %>
<% if can_view_experiment_archive(@experiment) then %>
<li id="project-archive-nav-tab" class="<%= "active" if is_experiment_archive? %>">
<a href="<%= module_archive_experiment_url(@experiment) %>"><span class="glyphicon glyphicon-briefcase"></span></a>
<a href="<%= module_archive_experiment_url(@experiment) %>" title="<%=t "nav2.projects.archive" %>">
<span class="glyphicon glyphicon-briefcase"></span>
</a>
</li>
<% end %>

View file

@ -97,6 +97,7 @@ en:
samples: "Samples"
activities: "Activity"
reports: "Reports"
archive: "Archive"
experiments:
canvas: "Overview"
modules:
@ -165,6 +166,7 @@ en:
projects:
index:
head_title: "Home"
archive: "Archive"
new: "New project"
visibility_private: "Project is private. Only invited users can see it."
visibility_public: "Project is public. Everybody from the team can see it."
@ -1418,6 +1420,7 @@ en:
navigation:
public: "Public protocols"
private: "Private protocols"
archive: "Archive"
public_description: "Public protocols are visible and can be used by everyone from the team."
private_description: "Private protocols are only visible to you."
create_new: "Create new"