Skip to content

Instantly share code, notes, and snippets.

@zverok
Created August 19, 2013 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zverok/6273445 to your computer and use it in GitHub Desktop.
Save zverok/6273445 to your computer and use it in GitHub Desktop.
<ul class="inline-toolbar">
<span>Отчёты:</span>
<li>Стандартный за <div class="inline-menu"><span>период</span>
<ul style="display:none;">
<li><%= link_to "Сутки", report_account_client_path(@account, @client, :type => :daily), :class=>"icon excel"%></li>
<li><%= link_to "7 дней", report_account_client_path(@account, @client, :type => :weekly), :class=>"icon excel"%></li>
<li><%= link_to "Текущий месяц", report_account_client_path(@account, @client, :type => :monthly_current), :class=>"icon excel"%></li>
<li><%= link_to "Предыдущий месяц", report_account_client_path(@account, @client, :type => :monthly_prev), :class=>"icon excel"%></li>
<li>Месяц до выбранной даты:
<div class="report-month-selector"></div>
<%= link_to "Предыдущий месяц", report_account_client_path(@account, @client, :type => :monthly_selected), :style=>"display:none;", :class=>"select-month-base" %>
</li>
</ul>
</div>
</li>
<% current ||= nil %>
<% if current %>
<% if current[:type] == :words %>
<li><%= link_to "50 последних упоминаний", report_account_client_path(@account, @client, current), :class => "current-page-link" %></li>
<li><%= link_to "Все упоминания за период", report_account_client_path(@account, @client, :type => 'words_all'), :class => "current-page-link" %></li>
<% else %>
<li><%= link_to "Текущая страница", report_account_client_path(@account, @client, current), :class => "current-page-link" %></li>
<% end %>
<% end %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment