app/views/layouts/educode_sales/application.html.erb in educode_sales-0.9.48 vs app/views/layouts/educode_sales/application.html.erb in educode_sales-0.9.49

- old
+ new

@@ -75,13 +75,10 @@ <dd><a href="/missions/places" class="<%= current?('layui-this', places_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/5.渠道管理.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>渠道管理</a></dd> <% end %> <% if can? :read, EducodeSales::SalePlan %> <dd><a href="/missions/plans" class="<%= current?('layui-this', plans_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/6.销售计划.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>销售计划</a></dd> <% end %> - <% if can?(:show, EducodeSales::AssessmentsSetting) || can?(:show_result, EducodeSales::AssessmentsSetting) %> - <dd><a href="/missions/assessments" class="<%= current?('layui-this', assessments_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/assessment.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>绩效考核</a></dd> - <% end %> <% if can? :sales, EducodeSales::Staff %> <dd><a href="/missions/sales" class="<%= current?('layui-this', sales_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/3.销售分工.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>销售分工</a> </dd> <% end %> <% if @current_admin.is_admin %> @@ -116,24 +113,56 @@ <a href="/missions/sales/operations" class="<%= current?('layui-this', operations_sales_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/9.运营分工.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>运营分工</a> </dd> <% end %> </dl> </li> + <% if can?(:show, EducodeSales::AssessmentsSetting) || can?(:show_result, EducodeSales::AssessmentsSetting) %> + <li class="layui-nav-item layui-nav-itemed menu-li" > + <a class="" href="javascript:;"><b><%= image_tag "educode_sales/1.销售活动.png",size:"15"%><i style="padding-right: 25px"></i>绩效管理</b></a> + <dl class="layui-nav-child"> + <dd><a href="/missions/assessments" class="<%= current?('layui-this', assessments_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/assessment.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>绩效考核</a></dd> + </dl> + </li> + <% end %> <% if @current_admin.is_admin || @current_admin.code == 'userbe' %> <li class="layui-nav-item layui-nav-itemed menu-li"> <a class="" href="javascript:;"><b><%= image_tag "educode_sales/13.系统设置.png",size:"15"%><i style="font-size: 25px; padding-right: 25px"></i>系统设置</b></a> <dl class="layui-nav-child"> <% if @current_admin.is_admin %> - <dd><a href="/missions/roles" class="<%= current?('layui-this', roles_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/14.角色管理.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>角色管理</a></dd> - <dd><a href="/missions/staffs" class="<%= current?('layui-this', staffs_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/15.人员管理.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>人员管理</a></dd> - <dd><a href="/missions/commons" class="<%= current?('layui-this', commons_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/16.字典列表.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>字典列表</a></dd> + <dd> + <a href="/missions/roles" class="<%= current?('layui-this', roles_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/14.角色管理.png", size: "15" %> + <i style="font-size: 25px; padding-right: 15px"></i>角色管理</a></dd> + <dd> + <a href="/missions/staffs" class="<%= current?('layui-this', staffs_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/15.人员管理.png", size: "15" %> + <i style="font-size: 25px; padding-right: 15px"></i>人员管理</a></dd> + <dd> + <a href="/missions/commons" class="<%= current?('layui-this', commons_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/16.字典列表.png", size: "15" %> + <i style="font-size: 25px; padding-right: 15px"></i>字典列表</a></dd> <% end %> <% if @current_admin.code == 'userbe' %> - <dd><a href="/missions/user_behaviors" class="<%= current?('layui-this', user_behaviors_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/9.运营分工.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>行为分析</a></dd> + <dd> + <a href="/missions/user_behaviors" class="<%= current?('layui-this', user_behaviors_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/9.运营分工.png", size: "15" %> + <i style="font-size: 25px; padding-right: 15px"></i>行为分析</a></dd> <% end %> + <% if @current_admin.is_admin %> + <dd><a href="/missions/logs" class="<%= current?('layui-this', logs_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/9.运营分工.png",size:"15"%><i style="font-size: 25px; padding-right: 15px"></i>操作日志</a></dd> + <% end %> </dl> </li> <% end %> + + <li class="layui-nav-item layui-nav-itemed menu-li"> + <a class="" href="javascript:;"><b><%= image_tag "educode_sales/11.活动运营.png", size: "15" %> + <i style="font-size: 25px; padding-right: 25px"></i>方案支撑</b></a> + <dl class="layui-nav-child"> + <dd> + <a href="/missions/ideas" class="<%= current?('layui-this', ideas_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/6.销售计划.png", size: "15" %> + <i style="font-size: 25px; padding-right: 15px"></i>方案管理</a></dd> + <dd> + <a href="/missions/idea_recycles" class="<%= current?('layui-this', idea_recycles_path) %>"><i style="padding-right: 35px"></i><%= image_tag "educode_sales/回收站.png", size: "15" %> + <i style="font-size: 25px; padding-right: 15px"></i>方案回收站</a></dd> + </dl> + </li> </ul> </div> </div> <div class="layui-body"> \ No newline at end of file