%table.table
  %tr
    %th
      Type
    %th
      Id
  -@text_contents.each do |text_content|
    %tr
      %td
        = text_content.portlet.blockable_parent.class.to_s
      %td
        -if text_content.portlet.blockable_parent.class.to_s == "Article"
          =link_to "lien", edit_admin_article_path(:id => text_content.portlet.blockable_parent.id, :lang => "en")
        -if text_content.portlet.blockable_parent.class.to_s == "Page"
          =link_to "lien", edit_admin_menu_item_path(:id => text_content.portlet.blockable_parent.menu_item.id, :lang => "en")