cirandas.net

ref: master

app/views/licenses/index.html.erb


<%= _('Manage licenses') %>

<% @licenses.each do |license| %> <% end %>
<%= _('Name') %> <%= _('Url reference') %> <%= _('Actions') %>
<%= truncate(license.name, :length => 19) %> <%= license.url.present? ? link_to(truncate(license.url, :length => 60), license.url, :target => '_blank') : '' %> <%= button_without_text :edit, _('Edit'), :action => 'edit', :license_id => license.id %> <%= button_without_text :remove, _('Remove'), {action: 'remove', license_id: license.id}, method: 'post', data: {confirm: _('Are you sure you want to remove this license?')} %>
<%= button_bar do %> <%= button(:add, _('Add a new license'), :action => 'create')%> <%= button :back, _('Back to admin panel'), :controller => 'admin_panel' %> <% end %>