This repository has been archived on 2024-12-01. You can view files and clone it, but cannot push or open issues or pull requests.
redmine_rodax_crm/app/views/common/_sidebar.html.erb
2012-01-03 21:11:44 +00:00

21 lines
954 B
Plaintext

<%= call_hook(:view_contacts_sidebar_top) %>
<h3><%= l(:label_task_plural) %></h3>
<%= link_to l(:label_contacts_view_all), { :controller => 'contacts', :action => 'index', :project_id => @project} %>
|
<% if !(@project && !authorize_for(:deals, :index)) %>
<%= link_to l(:label_deal_plural), { :controller => 'deals', :action => 'index', :project_id => @project} %>
|
<% end %>
<% if !(@project && !authorize_for(:contracts, :index)) %>
<%= link_to l(:label_contract_plural), { :controller => 'contracts', :action => 'index', :project_id => @project} %>
|
<% end %>
<% if !(@project && !authorize_for(:contacts_tasks, :index)) %>
<%= link_to l(:label_issue_plural), { :controller => 'contacts_tasks', :action => 'index', :project_id => @project} %>
|
<% end %>
<%= link_to l(:label_contact_note_plural), { :controller => 'contacts', :action => 'contacts_notes', :project_id => @project} %>
<%= call_hook(:view_contacts_sidebar_bottom) %>