Sha256: fb153451bb9de4131197ba1737baeb4ef1681026d89c8ee72a24f3bb12451fad

Contents?: true

Size: 1.45 KB

Versions: 15

Compression:

Stored size: 1.45 KB

Contents

<table class="admin_table">
  <tr>
    <th>
      Name
    </th>
    <th>
      Site Administrator
    </th>  
    <th>
      Manages Languages
    </th>  
    <th>
      Blocked
    </th>  
    <th style="text-align:right">
      Translations Count
    </th>
    <th style="text-align:right">
      Votes Count
    </th>
    <th></th>
  </tr>  
  <% translators.each_with_index do |translator, index| %>
    <tr>
      <td>
        <%=link_to(translator.name, :action => :view, :translator_id => translator.id)%>
      </td>  
      <td>
        <%=translator.admin?%>
      </td>  
      <td>
        <%=translator.manager?%>
      </td>  
      <td>
        <%=translator.blocked?%>
      </td>  
      <td style="text-align:right">
        <%= link_to(translator.total_metric.total_translations || 0, "/tr8n/admin/translation?wf_c0=translator_id&wf_o0=is&wf_v0_0=#{translator.id}") %>
      </td>  
      <td style="text-align:right">
        <%=translator.total_metric.total_votes || 0 %>
        (<span style="color:green"><%=translator.total_metric.positive_votes || 0 %></span>/<span style="color:red"><%=translator.total_metric.negative_votes || 0 %></span>)
      </td>  
      <td style="text-align:right">
        <%=link_to("View", :action => :view, :translator_id => translator.id)%>
        |
        <%=link_to("Delete", {:action => :delete, :translator_id => translator.id}, :confirm => "Are you sure you want to do that?")%>
      </td>
    </tr>
  <% end %>
</table>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tr8n-3.2.3 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.2.2 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.2.1 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.2.0 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.1.8 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.1.7 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.1.6 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.1.5 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.1.4 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.1.3 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.1.2 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.1.1 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.0.5 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.0.3 app/views/tr8n/admin/translator/_list.html.erb
tr8n-3.0.2 app/views/tr8n/admin/translator/_list.html.erb