mailr/themes/olive/views/contacts/index.html.erb
Wojciech Todryk 217c7a2288 contacts done
2011-08-16 20:05:58 +02:00

30 lines
898 B
Plaintext
Executable file

<% content_for :sidebar do %>
<%= render :partial => 'folders/list' %>
<% end %>
<% content_for :title do %>
- <%= t(:contacts,:scope=>:contact) %>
<% end %>
<div class="block" id="block-tables">
<div class="secondary-navigation">
<%= raw main_navigation(:contacts) %>
</div>
<div class="content">
<%= form_tag(contacts_ops_path,{:name=>'contacts'})%>
<% if @contacts.size.zero? %>
<div class="actions-bar wat-cf">
<div class="header_info"><%= t(:no_entries,:scope=>:contact) %>
<%= content_tag(:span, link_to(raw('('+t(:create_new,:scope=>:contact)+')'),new_contact_path),:class=>"other_info") %>
</div>
<% else %>
<%= render :partial => 'ops' %>
<%= render :partial => 'list' %>
<% end %>
</form>
</div>
</div>