cirandas.net

ref: master

plugins/spaminator/views/spaminator_plugin_admin/index.html.erb


<%= _('Spaminator settings')%>

<%= form_for(:settings) do |f| %>
<%= labelled_form_field _('Period (days) for scanning spammers'), f.text_field(:period, :size => 4) %>

<% if @settings.deployed.nil? %> <%= _("Spaminator was never deployed. While deployed, Spaminator will periodically scan your social network for spams. Do it now!") %> <% elsif @settings.deployed %> <%= _("Spaminator is deployed.") %> <% else %> <%= _("Spaminator is withhold.") %> <% end %>

<% if @settings.scanning %> <%= _("Spaminator is scanning...") %> <% elsif @settings.deployed %> <%= _("Next scan on %s days.") % @next_run %> <% end %>

<% content = @settings.scanning ? _('Scanning...') : _('Scan now!') %> <% klass = @settings.scanning ? 'disabled' : '' %> <%= button(:search, content, {:action => 'scan'}, :class => klass, :disabled => @settings.scanning) %> <% if !@settings.scanning %> <%= button(:right, _('Deploy'), {:action => 'deploy'}, :title => _('Schedule next scan for the period defined')) if !@settings.deployed %> <%= button(:cancel, _('Withhold'), {:action => 'withhold'}, :title => _('Cancel next scheduled scans')) if @settings.deployed %> <% end %> <%= button_bar do %> <%= submit_button(:save, c_('Save'), :cancel => {:controller => 'plugins', :action => 'index'}) %> <% end %>
<% @reports.each do |report| %> <% end %> <% content = @reports_count > 0 ? link_to(_('SEE FULL REPORTS (%s)') % @reports_count, :action => 'reports') : _('No Report') %>
<%= _('Date') %> <%= _('Spams') %> <%= _('Spammers')%>
<%= report.formated_date %> '><%= "#{report.spams} / #{report.total_comments}" %> '><%= "#{report.spammers} / #{report.total_people}" %>
<%= content %>

<% end %>