Skip to content

Commit

Permalink
Add titles on links. Refs #11.
Browse files Browse the repository at this point in the history
  • Loading branch information
iridakos committed Dec 13, 2017
1 parent a00724a commit 2968ed9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions app/views/duckrails/mocks/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,30 @@
</td>

<td class="actions">
<%= link_to edit_duckrails_mock_path(mock), class: 'button tiny edit' do %>
<%= link_to edit_duckrails_mock_path(mock),
title: 'Edit mock',
class: 'button tiny edit' do %>
<i class="fa fa-edit"></i>
<% end %>

<%= link_to duckrails_mock_path(mock), method: :delete,
title: 'Delete mock',
data: {
confirm: t(:mock_deletion_confirmation)
}, class: 'button tiny delete' do %>
<i class="fa fa-remove"></i>
<% end %>

<%= link_to deactivate_duckrails_mock_path(mock), method: :put,
title: 'Deactivate mock',
data: {
confirm: t(:mock_deactivation_confirmation)
}, class: 'button tiny deactivate secondary' do %>
<i class="fa fa-pause"></i>
<% end if mock.active? %>

<%= link_to activate_duckrails_mock_path(mock), method: :put,
title: 'Activate mock',
data: {
confirm: t(:mock_activation_confirmation)
}, class: 'button tiny activate success' do %>
Expand All @@ -84,12 +89,16 @@
<div class="page-actions">
<div class="row">
<div class="small-12 columns">
<%= link_to duckrails_mocks_path(sort: true), class: 'button secondary' do %>
<%= link_to duckrails_mocks_path(sort: true),
title: "Change the order of the mocks",
class: 'button secondary' do %>
<i class="fa fa-bars"></i>
<span><%= t :change_mocks_order %></span>
<% end if @mocks.size > 1 %>

<%= link_to new_duckrails_mock_path, class: 'button' do %>
<%= link_to new_duckrails_mock_path,
title: "Create a new mock",
class: 'button' do %>
<i class="fa fa-plus"></i>
<span><%= t :create_new_mock %></span>
<% end %>
Expand Down

0 comments on commit 2968ed9

Please sign in to comment.