Sha256: fc28d8ba7f09e8789d5edffcc5284245399ff714a654932d9618d19f06c0a23e

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

<% @languages.each do |lang| %>
  <a class="lang origin_<%= lang['is_origin'] %>" href="/express_translate/language/<%= params[:packages] %>/<%= lang['id'] %>" style="background-image: url('/assets/express_translate/flags/<%= lang['id'] %>.png')">
    <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

1 entries across 1 versions & 1 rubygems

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