组织新界面

This commit is contained in:
huang 2016-04-26 11:06:18 +08:00
parent 76f93a54c6
commit 32d7927eb9
1 changed files with 53 additions and 64 deletions

View File

@ -93,52 +93,38 @@
<% @subfield_content.each do |field| %>
<% if is_default_field?(field) %>
<% case field.name %>
<% when 'activity' %>
<% when 'activity' %>
<li class="nav-element">
<%= link_to "首页", organization_path(@organization), :class => "sn-link-white" %>
<%= link_to "首页", organization_path(@organization), :class => "sn-link-white" %>
</li>
<% when 'course' %>
<li class="nav-element">
<a href="#course_<%= field.id %>" class="sn-link-white"> 课程动态</a>
<a href="#course_<%= field.id %>" class="sn-link-white"> 课程动态</a>
</li>
<% when 'project' %>
<li class="nav-element">
<a href="#project_<%= field.id %>" class="sn-link-white">项目动态</a>
<a href="#project_<%= field.id %>" class="sn-link-white">项目动态</a>
</li>
<% end %>
<% else %>
<% if field.field_type == "Post" && field.hide == 0 %>
<li class="nav-element">
<a href="#message_<%= field.id %>" class="sn-link-white"><%= field.name %></a>
<a href="#message_<%= field.id %>" class="sn-link-white"><%= field.name %></a>
</li>
<% elsif field.field_type == "Resource" && field.hide == 0 %>
<li class="nav-element">
<a href="#resource_<%= field.id %>" class="sn-link-white"><%= field.name %></a>
<a href="#resource_<%= field.id %>" class="sn-link-white"><%= field.name %></a>
</li>
<% end %>
<% end %>
<% end %>
<% if User.current.admin_of_org?(@organization) %>
<li class="nav-element">
<a href="<%= setting_organization_path(@organization) %>" class="sn-link-white">配置</a>
<a href="<%= setting_organization_path(@organization) %>" class="sn-link-white">配置</a>
</li>
<% end %>
</ul>
</div>
<!--<div class="sn-row sn-p-absolute sn-grey-opacity" style="display:block; z-index:99;">-->
<!--<ul class="sn-sub-nav">-->
<!--<li><a href="javascript:void(0);" class="sn-link-grey">简介</a></li>-->
<!--<li class="sn-subnav-slice">|</li>-->
<!--<li><a href="javascript:void(0);" class="sn-link-grey">仿真数据</a></li>-->
<!--<li class="sn-subnav-slice">|</li>-->
<!--<li><a href="javascript:void(0);" class="sn-link-grey">实测数据</a></li>-->
<!--<li class="sn-subnav-slice">|</li>-->
<!--<li><a href="javascript:void(0);" class="sn-link-grey">测试场景</a></li>-->
<!--<li class="sn-subnav-slice">|</li>-->
<!--<li><a href="javascript:void(0);" class="sn-link-grey">数据定制</a></li>-->
<!--</ul>-->
<!--</div>-->
</div>
</header>
<%# 更新访问数,刷新的时候更新访问次数 %>
@ -147,6 +133,8 @@
<!--内容开始-->
<div class="sn-content">
<div class="sn-content-left fl sn-mt15">
<% @subfield_content.each do |field| %>
<% if field.status.to_i == 1 %>
<div class="sn-index-banner" style="display:<%= field.hide == 0?'block':'none' %>;">
<!-- 代码 开始 -->
<div id="fsD1" class="focus">
@ -202,7 +190,7 @@
</script>
<!-- 代码 结束 -->
</div>
<!--news star-->
<% elsif field.status.to_i == 2 %>
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
<h2 class="h2-title">业界动态<a href="javascript:void(0);" target="_blank" class="more">更多</a></h2>
<div class="cl"></div>
@ -214,36 +202,36 @@
<p>2016年3月27日上午湖南省经信委巡视员钟志慧湖南省发改委副主任卓群、高技处处长何志明、就业处处长周建龙等领导代表在长沙中电软件园董事长何明、总经理夏利锋的陪同来北斗开放实验室长沙分实验室调研参观。北斗开放实验室办公室主任明德祥为参观的各位领导详细介绍了北斗开放实验室运行机制及各项共享资源。北斗开放实验室长沙分实验室是由导航仪器湖南省工程研究中心、湖南矩阵电子科技有限公司及中国仪器仪表学会空间仪器分会共同建设。为进一步推动北斗资源共享、创新北斗人才培养......</p>
</div>
</div>
<div class="sn-news-smallbox fl" style="display:<%= field.hide == 0?'block':'none' %>;">
<div class="sn-news-small mb18">
<a href="javascript:void(0);" target="_blank" class="sn-news-smallimg fl"><img src="/images/news/img-news-small01.jpg" width="85" height="85" alt=""/></a>
<h4><a href="javascript:void(0);" target="_blank" class="h4-title fl mt10">北斗开放实验室迎湖南省省直机关领导调研参观</a></h4>
<span class="txt-grey fl">2016-04-08</span>
<div class="cl"></div>
</div>
<div class="sn-news-small mb18">
<a href="javascript:void(0);" target="_blank" class="sn-news-smallimg fl"><img src="/images/news/img-news-small02.jpg" width="85" height="85" alt=""/></a>
<h4><a href="javascript:void(0);" target="_blank" class="h4-title fl mt10">北斗开放实验室迎湖南省省直机关领导调研参观</a></h4>
<span class="txt-grey fl">2016-04-08</span>
<div class="cl"></div>
</div>
<div class="sn-news-small mb18">
<a href="javascript:void(0);" target="_blank" class="sn-news-smallimg fl"><img src="/images/news/img-news-small03.jpg" width="85" height="85" alt=""/></a>
<h4><a href="javascript:void(0);" target="_blank" class="h4-title fl mt10">北斗开放实验室迎湖南省省直机关领导调研参观</a></h4>
<span class="txt-grey fl">2016-04-08</span>
<div class="cl"></div>
</div>
<div class="sn-news-small ">
<a href="javascript:void(0);" target="_blank" class="sn-news-smallimg fl"><img src="/images/news/img-news-small04.jpg" width="85" height="85" alt=""/></a>
<h4><a href="javascript:void(0);" target="_blank" class="h4-title fl mt10">北斗开放实验室迎湖南省省直机关领导调研参观</a></h4>
<span class="txt-grey fl">2016-04-08</span>
<div class="cl"></div>
</div>
<% elsif field.status.to_i == 3 %>
<div class="sn-news-smallbox fl" style="display:<%= field.hide == 0?'block':'none' %>;">
<div class="sn-news-small mb18">
<a href="javascript:void(0);" target="_blank" class="sn-news-smallimg fl"><img src="/images/news/img-news-small01.jpg" width="85" height="85" alt=""/></a>
<h4><a href="javascript:void(0);" target="_blank" class="h4-title fl mt10">北斗开放实验室迎湖南省省直机关领导调研参观</a></h4>
<span class="txt-grey fl">2016-04-08</span>
<div class="cl"></div>
</div>
<div class="sn-news-small mb18">
<a href="javascript:void(0);" target="_blank" class="sn-news-smallimg fl"><img src="/images/news/img-news-small02.jpg" width="85" height="85" alt=""/></a>
<h4><a href="javascript:void(0);" target="_blank" class="h4-title fl mt10">北斗开放实验室迎湖南省省直机关领导调研参观</a></h4>
<span class="txt-grey fl">2016-04-08</span>
<div class="cl"></div>
</div>
<div class="sn-news-small mb18">
<a href="javascript:void(0);" target="_blank" class="sn-news-smallimg fl"><img src="/images/news/img-news-small03.jpg" width="85" height="85" alt=""/></a>
<h4><a href="javascript:void(0);" target="_blank" class="h4-title fl mt10">北斗开放实验室迎湖南省省直机关领导调研参观</a></h4>
<span class="txt-grey fl">2016-04-08</span>
<div class="cl"></div>
</div>
<div class="sn-news-small ">
<a href="javascript:void(0);" target="_blank" class="sn-news-smallimg fl"><img src="/images/news/img-news-small04.jpg" width="85" height="85" alt=""/></a>
<h4><a href="javascript:void(0);" target="_blank" class="h4-title fl mt10">北斗开放实验室迎湖南省省直机关领导调研参观</a></h4>
<span class="txt-grey fl">2016-04-08</span>
<div class="cl"></div>
</div>
<div class="cl"></div>
</div>
<!--news end-->
<!--resources star-->
<div class="cl"></div>
</div>
<% elsif field.status.to_i == 4 %>
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
<h2 class="h2-title">北斗资源<a href="javascript:void(0);" target="_blank" class="more">更多</a></h2>
<div class="sn-index-resourcescon">
@ -295,19 +283,18 @@
<div class="cl"></div>
</div>
</div>
<!--resources end-->
<!--partner star-->
<% elsif field.status.to_i == 5 %>
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
<h2 class="h2-title">合作伙伴<a href="javascript:void(0);" target="_blank" class="more">更多</a></h2>
<div class="sn-index-partnerbox " >
<ul id="scrollPic" >
<li>
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="/images/partner/img-dhyq.jpg" width="363" height="43" alt=""/></a>
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="/images/partner/img-qhdx.jpg" width="363" height="43" alt=""/></a>
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="images/partner/img-dhyq.jpg" width="363" height="43" alt=""/></a>
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="images/partner/img-qhdx.jpg" width="363" height="43" alt=""/></a>
</li>
<li>
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="/images/partner/img-jzdz.jpg" width="363" height="43" alt=""/></a>
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="/images/partner/img-zgdz.jpg" width="363" height="43" alt=""/></a>
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="images/partner/img-jzdz.jpg" width="363" height="43" alt=""/></a>
<a href="javascript:void(0);" target="_blank" class="partnerimg"><img src="images/partner/img-zgdz.jpg" width="363" height="43" alt=""/></a>
</li>
</ul>
<div class="cl"></div>
@ -318,12 +305,13 @@
</div>
</div>
</div>
<!--partner end-->
<% end %>
<% end %>
</div>
<!--左侧 end-->
<!--右侧 star-->
<!--右侧-->
<div class="sn-content-right fr sn-mt15">
<% @subfield_content.each do |field| %>
<% if field.status.to_i == 6 %>
<div class="sn-index-activebox" style="display:<%= field.hide == 0?'block':'none' %>;">
<h2 class="h2-title mb18">最新活动展示<a href="javascript:void(0);" target="_blank" class="more">更多</a></h2>
<div class="sn-index-active">
@ -343,11 +331,11 @@
</div>
<div class="sn-index-active">
<a href="javascript:void(0);" target="_blank" class="sn-activeimg"><img src="/images/active/img-active01.jpg" width="330" height="210" alt=""/></a>
<h3><a href="javascript:void(0);" target="_blank" class="active-title">北斗第二次工作会议在北京召开</a></h3>
<h3><a href="javascript:void(0)" target="_blank" class="active-title">北斗第二次工作会议在北京召开</a></h3>
<span class="txt-grey ">2016-04-08</span>
</div>
</div>
<% elsif field.status.to_i == 7 %>
<div class="sn-index-wxbox" style="display:<%= field.hide == 0?'block':'none' %>;">
<h2 class="h2-title ">关注北斗</h2>
<div class="sn-index-wx">
@ -356,10 +344,11 @@
<div class="cl"></div>
</div>
</div>
<% elsif field.status.to_i == 8 %>
<%= render :partial => 'organizations/org_subfield_rightD', :locals => {:field => field} %>
<% end %>
<% end %>
</div>
<!--右侧 end-->
<div class="cl"></div>
</div>
<!--内容结束-->