隐藏与配置界面一致,
This commit is contained in:
parent
2d2e9c540a
commit
1f43ecb8ed
|
@ -13,7 +13,7 @@
|
||||||
<div class="por_course_bar fl clear">
|
<div class="por_course_bar fl clear">
|
||||||
<%= link_to activity.name.to_s, student_work_index_url_in_org(activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.name.to_s %>
|
<%= link_to activity.name.to_s, student_work_index_url_in_org(activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.name.to_s %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-02.jpg", :width => "140", :height => "100"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
<div class="por_course_bar fl clear">
|
<div class="por_course_bar fl clear">
|
||||||
<%= link_to activity.parent_id.nil? ? activity.subject : activity.parent.subject, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.parent_id.nil? ? activity.subject : activity.parent.subject %>
|
<%= link_to activity.parent_id.nil? ? activity.subject : activity.parent.subject, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.parent_id.nil? ? activity.subject : activity.parent.subject %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-02.jpg", :width => "140", :height => "100"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
<div class="por_course_bar fl clear">
|
<div class="por_course_bar fl clear">
|
||||||
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.title %>
|
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.title %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-02.jpg", :width => "140", :height => "100"), news_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), news_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), news_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), news_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "por_course_title link-black", :title => poll_name %>
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "por_course_title link-black", :title => poll_name %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-02.jpg", :width => "140", :height => "100"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"fl" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"fl" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
<div class="por_course_bar fl clear">
|
<div class="por_course_bar fl clear">
|
||||||
<%= link_to activity.subject, issue_url_in_org(activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.subject %>
|
<%= link_to activity.subject, issue_url_in_org(activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.subject %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-02.jpg", :width => "140", :height => "100"), issue_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), issue_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), issue_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), issue_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -96,7 +96,7 @@
|
||||||
<div class="por_course_bar fl clear">
|
<div class="por_course_bar fl clear">
|
||||||
<%= link_to subject, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "por_course_title link-black", :title => subject %>
|
<%= link_to subject, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "por_course_title link-black", :title => subject %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-02.jpg", :width => "140", :height => "100"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
<div class="por_course_bar fl clear">
|
<div class="por_course_bar fl clear">
|
||||||
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.title %>
|
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.title %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-02.jpg", :width => "140", :height => "100"), news_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), news_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), news_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), news_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -138,7 +138,7 @@
|
||||||
<div class="por_course_bar fl clear">
|
<div class="por_course_bar fl clear">
|
||||||
<%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank', :class => "por_course_title link-black", :title => document.title %>
|
<%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank', :class => "por_course_title link-black", :title => document.title %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-02.jpg", :width => "140", :height => "100"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -155,7 +155,7 @@
|
||||||
<div class="por_course_bar fl clear">
|
<div class="por_course_bar fl clear">
|
||||||
<%= link_to title, board_message_url_in_org(message.board.id, message.id), :target => '_blank', :class => "por_course_title link-black", :title => title %>
|
<%= link_to title, board_message_url_in_org(message.board.id, message.id), :target => '_blank', :class => "por_course_title link-black", :title => title %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-02.jpg", :width => "140", :height => "100"), board_message_url_in_org(message.board.id, message.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), board_message_url_in_org(message.board.id, message.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), board_message_url_in_org(message.board.id, message.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), board_message_url_in_org(message.board.id, message.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -166,7 +166,7 @@
|
||||||
<div class="por_course_bar fl clear">
|
<div class="por_course_bar fl clear">
|
||||||
<%= link_to title, board_message_path(message.board, message.id), :target => '_blank', :class => "por_course_title link-black", :title => title %>
|
<%= link_to title, board_message_path(message.board, message.id), :target => '_blank', :class => "por_course_title link-black", :title => title %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-02.jpg", :width => "140", :height => "100"), board_message_path(message.board.id, message.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), board_message_path(message.board.id, message.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), board_message_path(message.board.id, message.id), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), board_message_path(message.board.id, message.id), :target => "_blank", :class =>"fl" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -181,7 +181,7 @@
|
||||||
<div class="por_course_bar fl clear">
|
<div class="por_course_bar fl clear">
|
||||||
<%= link_to news.title, news_path(news), :target => '_blank', :class => "por_course_title link-black", :title => news.title %>
|
<%= link_to news.title, news_path(news), :target => '_blank', :class => "por_course_title link-black", :title => news.title %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-02.jpg", :width => "140", :height => "100"), news_path(news), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), news_path(news), :target => "_blank", :class =>"fl" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), news_path(news), :target => "_blank", :class =>"fl" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), news_path(news), :target => "_blank", :class =>"fl" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
<% document = activity.org_act %>
|
<% document = activity.org_act %>
|
||||||
<% if get_image_path_from_content(document.content).nil? %>
|
<% if get_image_path_from_content(document.content).nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "299", :height => "246"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
<%= link_to image_tag("/images/default_blank/mo-3.jpg", :width => "299", :height => "246"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{get_image_path_from_content(document.content)}", :width => "299", :height => "246"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
<%= link_to image_tag("/files/uploads/image#{get_image_path_from_content(document.content)}", :width => "299", :height => "246"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
<% iamge_path = get_image_path_from_content(content) %>
|
<% iamge_path = get_image_path_from_content(content) %>
|
||||||
<% if message.board.org_subfield_id %>
|
<% if message.board.org_subfield_id %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "299", :height => "246"), board_message_url_in_org(message.board.id,message.id), :target => "_blank" %>
|
<%= link_to image_tag("/images/default_blank/mo-3.jpg", :width => "299", :height => "246"), board_message_url_in_org(message.board.id,message.id), :target => "_blank" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), board_message_url_in_org(message.board.id,message.id), :target => "_blank" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), board_message_url_in_org(message.board.id,message.id), :target => "_blank" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> message.content, :maxheight => 40, :maxwordsnum => 60, :maxwidth => 0, :cl => "por_post_txt"} %>
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> message.content, :maxheight => 40, :maxwordsnum => 60, :maxwidth => 0, :cl => "por_post_txt"} %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "299", :height => "246"), board_message_path(message.board, message), :target => "_blank" %>
|
<%= link_to image_tag("/images/default_blank/mo-3.jpg", :width => "299", :height => "246"), board_message_path(message.board, message), :target => "_blank" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), board_message_path(message.board, message), :target => "_blank" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), board_message_path(message.board, message), :target => "_blank" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
<% news = News.find(activity.org_act_id) %>
|
<% news = News.find(activity.org_act_id) %>
|
||||||
<% iamge_path = get_image_path_from_content(news.description) %>
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
<% if iamge_path.nil? %>
|
<% if iamge_path.nil? %>
|
||||||
<%= link_to image_tag("/images/default_blank/left-04.jpg", :width => "299", :height => "246"), news_path(news), :target => "_blank" %>
|
<%= link_to image_tag("/images/default_blank/mo-3.jpg", :width => "299", :height => "246"), news_path(news), :target => "_blank" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), news_path(news), :target => "_blank" %>
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), news_path(news), :target => "_blank" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="por_news">
|
<div class="por_news" style="display:<%= field.hide == 0 ? 'block':'none' %>;">
|
||||||
<h2 class="por_h2_index clear"><%= field.name %></h2>
|
<h2 class="por_h2_index clear"><%= field.name %></h2>
|
||||||
<% if @acts.blank? %>
|
<% if @acts.blank? %>
|
||||||
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="por_projects">
|
<div class="por_projects" style="display:<%= field.hide == 0 ? 'block':'none' %>;">
|
||||||
<h2 class="por_h2_index clear">热点项目</h2>
|
<h2 class="por_h2_index clear">热点项目</h2>
|
||||||
<% if containers.blank? %>
|
<% if containers.blank? %>
|
||||||
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% elsif field.field_type == "Comptec" || field.field_type == "Compstu" %>
|
<% elsif field.field_type == "Comptec" || field.field_type == "Compstu" %>
|
||||||
<div class="por_teachers">
|
<div class="por_teachers" style="display:<%= field.hide == 0 ? 'block' : 'none' %>;">
|
||||||
<ul id="por_teachers_nav">
|
<ul id="por_teachers_nav">
|
||||||
<li id="por_teachers_nav_1" class="por_teachers_hover" onclick="HoverLi(1);">
|
<li id="por_teachers_nav_1" class="por_teachers_hover" onclick="HoverLi(1);">
|
||||||
<a href="javascript:void(0);" class="por_teachers_type">名师风采</a>
|
<a href="javascript:void(0);" class="por_teachers_type">名师风采</a>
|
||||||
|
|
Loading…
Reference in New Issue