Skip to content

Instantly share code, notes, and snippets.

@v-fedorov
Created June 3, 2013 17:06
Show Gist options
  • Save v-fedorov/5699632 to your computer and use it in GitHub Desktop.
Save v-fedorov/5699632 to your computer and use it in GitHub Desktop.
<tr class="<%= cycle('even', 'odd') %>">
<td class="login"><%= team.name %></td>
<td class="name"><%= team.bio -%></td>
<td class="name"><%= team.linkedin -%></td>
<td class="name"><%= team.github -%></td>
<td class="tools">
<%- permitted_to?(:destroy, :admin_teams) do -%>
<%= link_to_confirmation_window(
'',
_t("confirm_to_delete_team"),
main_app.admin_team_path(team),
:title => _t('delete_team'),
:class => 'icon destroy'
) -%>
<%- end -%>
<%- permitted_to?(:edit, :admin_teams) do -%>
<%= link_to_overlay_window(
'',
main_app.edit_admin_team_path(team),
{
:title => _t('edit_team'),
:overflow => true,
:size => '420x560'
},
{
:class => 'icon edit',
:title => _t('edit_team')
}
) -%>
<%- end -%>
</td>
</tr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment