|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
|
|
|
|
<div class="sn-news-small mb18">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/right_top.jpg", :width => "85", :height => "85"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-03.jpg", :width => "85", :height => "85"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% end %>
|
|
|
|
@ -27,7 +27,7 @@
|
|
|
|
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
|
|
|
|
<div class="sn-news-small mb18">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-03.jpg", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% end %>
|
|
|
|
@ -46,7 +46,7 @@
|
|
|
|
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
|
|
|
|
<div class="sn-news-small mb18">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), news_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-03.jpg", :width => "85", :height => "85"), news_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), news_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% end %>
|
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
|
<% if ( activity.polls_status==2) %>
|
|
|
|
|
<div class="sn-news-small mb18">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-03.jpg", :width => "85", :height => "85"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% end %>
|
|
|
|
@ -92,7 +92,7 @@
|
|
|
|
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
|
|
|
|
<div class="sn-news-small mb18">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), issue_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-03.jpg", :width => "85", :height => "85"), issue_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), issue_url_in_org(activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% end %>
|
|
|
|
@ -107,7 +107,7 @@
|
|
|
|
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
|
|
|
|
<div class="sn-news-small mb18">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-03.jpg", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% end %>
|
|
|
|
@ -126,7 +126,7 @@
|
|
|
|
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
|
|
|
|
<div class="sn-news-small mb18">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-03.jpg", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% end %>
|
|
|
|
@ -154,7 +154,7 @@
|
|
|
|
|
<% iamge_path = get_image_path_from_content(document.content) %>
|
|
|
|
|
<div class="sn-news-small mb18">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-03.jpg", :width => "85", :height => "85"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% end %>
|
|
|
|
@ -176,7 +176,7 @@
|
|
|
|
|
<% if message.board.org_subfield_id %>
|
|
|
|
|
<div class="sn-news-small mb18">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-03.jpg", :width => "85", :height => "85"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% end %>
|
|
|
|
@ -193,7 +193,7 @@
|
|
|
|
|
<% else %>
|
|
|
|
|
<div class="sn-news-small mb18">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-03.jpg", :width => "85", :height => "85"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), board_message_path(message.board,activity), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% end %>
|
|
|
|
@ -214,7 +214,7 @@
|
|
|
|
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
|
|
|
|
<div class="sn-news-small mb18">
|
|
|
|
|
<% if iamge_path.nil? %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/files-default.jpg", :width => "85", :height => "85"), news_path(news), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<%= link_to image_tag("/images/default_blank/left-03.jpg", :width => "85", :height => "85"), news_path(news), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "85", :height => "85"), news_path(news), :target => "_blank", :class =>"sn-news-smallimg fl" %>
|
|
|
|
|
<% end %>
|
|
|
|
@ -232,7 +232,6 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
$(".h4-title").each(function(){
|
|
|
|
|