From 3465a39285618f787c5c4db8a90966192e95eb22 Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 31 Mar 2016 13:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE=20?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_org_newstyle.html.erb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/views/layouts/base_org_newstyle.html.erb b/app/views/layouts/base_org_newstyle.html.erb index e344e64dd..ff94326a0 100644 --- a/app/views/layouts/base_org_newstyle.html.erb +++ b/app/views/layouts/base_org_newstyle.html.erb @@ -77,7 +77,7 @@ <% @subfield_content.each do |field| %> <% if is_default_field?(field) %> <% case field.name %> - <% when 'activity' %> + <% when 'activity' %> <%= link_to "首页", organization_path(@organization), :class => "fl navact" %> <% when 'course' %> 课程动态 @@ -92,6 +92,9 @@ <% end %> <% end %> <% end %> + <% if User.current.admin_of_org?(@organization) %> + 配置 + <% end %> @@ -109,7 +112,7 @@ <% when 'course' %>
-

课程动态

course activities

+

课程动态

course activities

    <% unless @course_acts_homework.nil? %> @@ -136,14 +139,12 @@
- -
<% when 'project' %>
-

项目动态

project activities

+

项目动态

project activities

<% unless @project_message_acts.nil? %>
@@ -177,7 +178,7 @@ <% ids = field.org_document_comments.map{|o| o.id}.join(",") %>
-

<%= field.name %><%= field.id %>

discussion zone

+

<%= field.name %>

discussion zone

<% message_ats.each do |act| %> @@ -206,7 +207,7 @@ <% org_attachs = get_attach_org2(field) %>
-

<%= field.name %><%= field.id %>

resource dwonload

+

<%= field.name %>

resource dwonload

<%= render :partial => 'organizations/org_new_resource', :locals => {:org_attachs => org_attachs} %>