Sha256: 6a24bee33f73a04e5c392f9dc8e8ac8da41c3a4101fe87156d44b877e15b6ca0
Contents?: true
Size: 1023 Bytes
Versions: 1
Compression:
Stored size: 1023 Bytes
Contents
<% type = @translated.class.name.titleize.downcase -%> <h2 style="margin:0 0 10px 0;"><%= t("translations.index.title", :type => type) -%></h2> <ul> <% @translations.each do |translation| %> <li> <%= link_to(TranslationsHelper::available_locales[translation.locale], { :action => :show, :id => h(translation.locale) }) -%> [ <%= link_to(t('translations.index.edit').downcase, { :id => h(translation.locale), :action => :edit }) -%> | <%= link_to(t('translations.index.delete').downcase, { :id => h(translation.locale), :action => :destroy }, { :method => :delete, :confirm => t('translations.index.are_you_sure') }) -%> ] </li> <% end %> </ul> <ul style="list-style:none; padding:0; margin:0;"> <li style="float:left; padding: 0 5px;"> <%= link_to(t("translations.index.back", :type => type), url_for_translated) %> </li> <li style="float:left; padding: 0 5px; border-left: 1px solid #000;"> <%= link_to(t("translations.index.new"), { :action => :new }) %> </li> </ul>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo_translatable-0.1.0 | app/views/translations/index.html.erb |