Sha256: aa3768b28934fbbb43da2f3e9f6f7dba5bcd436a2b6727c505f5c03d62a88283

Contents?: true

Size: 1022 Bytes

Versions: 2

Compression:

Stored size: 1022 Bytes

Contents

<% @languages.each do |lang| %>
  <a class="lang add_files origin_<%= lang['is_origin'] %>" href="/express_translate/language/<%= params[:packages] %>/<%= lang['id'] %>">
    <span><%= lang['text'].slice(0,1).capitalize + lang['text'].slice(1..-1) %></span>
    <p><%= (@LanguageDetail.info(lang).all.count.to_f / (@max == 0 ? 1 : @max) * 100).to_i %>%</p>
    <h5><%= @LanguageDetail.info(lang).all.count %>/<%= @max %></h5>
    <h4><%= lang['id'] %></h4>
    <div class="tools">
      <div class="tool remove" data="<%= lang['id'] %>"></div>
      <% if !lang['is_origin'] %>
        <div class="tool set_origin" data="<%= lang['id'] %>"></div>
      <% end %>
      <div class="tool setting" data="<%= lang['id'] %>" text="<%= lang['text'] %>"></div>
      <div class="tool json" data="<%= [params[:packages], lang['id']].join("/") %>"></div>
    </div>
  </a>
  <div class="delete_dialog_<%= lang['id'] %>" style="display: none">
    <h4>Are you sure you want to delete?</br><%= lang['text'] %></h4>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
express_translate-1.0.2 app/views/express_translate/ajax/languages/_content_language.html.erb
express_translate-1.0.1 app/views/express_translate/ajax/languages/_content_language.html.erb