组织项目、课程动态问题
This commit is contained in:
parent
c15ef0b528
commit
6cca44df98
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
<% if is_default_field?(field) %>
|
<% if is_default_field?(field) %>
|
||||||
<% case field.name %>
|
<% case field.name %>
|
||||||
<% when 'course' %>
|
<% when 'course' %>
|
||||||
|
@ -44,7 +43,7 @@
|
||||||
<div class="sn-news-txt">
|
<div class="sn-news-txt">
|
||||||
<div class="sn-news-wrap"><%= activity.content.to_s.html_safe %></div>
|
<div class="sn-news-wrap"><%= activity.content.to_s.html_safe %></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sn-read-more"><%=link_to "查看全文>>", activity.parent_id.nil? ? activity.subject.to_s.html_safe : activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
<div class="sn-read-more"><%=link_to "查看全文>>", board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
||||||
</div>
|
</div>
|
||||||
<% elsif act.org_act_type == "News" %>
|
<% elsif act.org_act_type == "News" %>
|
||||||
<% activity = News.find(act.org_act_id) %>
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
@ -63,7 +62,7 @@
|
||||||
<div class="sn-news-wrap"><%= activity.description.to_s.html_safe %></div>
|
<div class="sn-news-wrap"><%= activity.description.to_s.html_safe %></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="sn-read-more"><%=link_to "查看全文>>", activity.title.to_s, news_url_in_org(activity.id), :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
<div class="sn-read-more"><%=link_to "查看全文>>", news_url_in_org(activity.id), :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
||||||
</div>
|
</div>
|
||||||
<% elsif act.org_act_type == "Poll" %>
|
<% elsif act.org_act_type == "Poll" %>
|
||||||
<% activity = Poll.find(act.org_act_id) %>
|
<% activity = Poll.find(act.org_act_id) %>
|
||||||
|
@ -88,7 +87,7 @@
|
||||||
<div class="sn-news-txt">
|
<div class="sn-news-txt">
|
||||||
<div class="sn-news-wrap"><%= activity.polls_description.to_s.html_safe %></div>
|
<div class="sn-news-wrap"><%= activity.polls_description.to_s.html_safe %></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sn-read-more"><%=link_to "查看全文>>", poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
<div class="sn-read-more"><%=link_to "查看全文>>", Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -119,7 +118,7 @@
|
||||||
<div class="sn-news-txt">
|
<div class="sn-news-txt">
|
||||||
<div class="sn-news-wrap"><%= activity.description.to_s.html_safe %></div>
|
<div class="sn-news-wrap"><%= activity.description.to_s.html_safe %></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sn-read-more"><%=link_to "查看全文>>", activity.subject.to_s, issue_url_in_org(activity.id), :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
<div class="sn-read-more"><%=link_to "查看全文>>", issue_url_in_org(activity.id), :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
||||||
</div>
|
</div>
|
||||||
<% elsif act.org_act_type == "Message" %>
|
<% elsif act.org_act_type == "Message" %>
|
||||||
<% activity = Message.find(act.org_act_id) %>
|
<% activity = Message.find(act.org_act_id) %>
|
||||||
|
@ -137,7 +136,7 @@
|
||||||
<div class="sn-news-txt">
|
<div class="sn-news-txt">
|
||||||
<div class="sn-news-wrap"><%= activity.content.to_s.html_safe %></div>
|
<div class="sn-news-wrap"><%= activity.content.to_s.html_safe %></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sn-read-more"><%=link_to "查看全文>>", activity.parent_id.nil? ? activity.subject.to_s.html_safe : activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
<div class="sn-read-more"><%=link_to "查看全文>>", board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
||||||
</div>
|
</div>
|
||||||
<% elsif act.org_act_type == "News" %>
|
<% elsif act.org_act_type == "News" %>
|
||||||
<% activity = News.find(act.org_act_id) %>
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
@ -217,7 +216,7 @@
|
||||||
<div class="sn-news-txt">
|
<div class="sn-news-txt">
|
||||||
<div class="sn-news-wrap"><%= content.to_s.html_safe %></div>
|
<div class="sn-news-wrap"><%= content.to_s.html_safe %></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sn-read-more"><%=link_to "查看全文>>", message.parent_id.nil? ? message.subject.to_s.html_safe : message.parent.subject.to_s.html_safe, board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
<div class="sn-read-more"><%=link_to "查看全文>>", board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="sn-news-bigbox fl">
|
<div class="sn-news-bigbox fl">
|
||||||
|
@ -239,9 +238,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="sn-read-more">
|
<div class="sn-read-more">
|
||||||
<% if message.parent_id.nil? %>
|
<% if message.parent_id.nil? %>
|
||||||
<%=link_to "查看全文>>", message.subject.to_s.html_safe, board_message_path(message.board,message), :target => "_blank", :class => "sn-link-grey2 sn-fr" %>
|
<%=link_to "查看全文>>", board_message_path(message.board,message), :target => "_blank", :class => "sn-link-grey2 sn-fr" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%=link_to "查看全文>>", message.parent.subject.to_s.html_safe, board_message_path(message.board,activity), :target => "_blank", :class => "sn-link-grey2 sn-fr" %>
|
<%=link_to "查看全文>>", board_message_path(message.board,activity), :target => "_blank", :class => "sn-link-grey2 sn-fr" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -263,7 +262,7 @@
|
||||||
<div class="sn-news-txt">
|
<div class="sn-news-txt">
|
||||||
<div class="sn-news-wrap"><%= news.description.to_s.html_safe %></div>
|
<div class="sn-news-wrap"><%= news.description.to_s.html_safe %></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sn-read-more"><%=link_to "查看全文>>", news.title.to_s, news_path(news), :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
<div class="sn-read-more"><%=link_to "查看全文>>", news_path(news), :target => "_blank", :class => "sn-link-grey2 sn-fr" %></div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue