update announcement & web_resource widget

This commit is contained in:
unknown committed 2012-02-17 19:45:48 +08:00
1 parent 5da75161c4
commit daebaa43f8
8 files changed
+39 -99

No files matched your search

+1 -1
View File
@@ -7,6 +7,6 @@
"update_info": "Some info",
"create_date": "11-11-2011",
"app_pages": ["bulletins"],
"widgets": ["bulletins"],
"widgets": ["bulletins","bulletins_list"],
"enable_frontend": true
}
@@ -2,7 +2,6 @@
<% if @bulletins and !@bulletins.nil? %>
<!-- tag -->
<div class="tag_block">
<ul class="tag_list">
<% @tags.each do |tag| %>
@@ -11,15 +10,18 @@
</ul>
</div>
<!-- news -->
<div class="news_block">
<h3 class="news_title"><%= t('公告訊息')%></h3>
<% @tags.each_with_index do |tag, index| %>
<div id="news_<%= index %>" class="news_block">
<h3 class="news_title2"><%= t('公告訊息')%></h3>
<div class="news_prev">prev</div>
<div class="news_next">next</div>
<ul class="news_list">
<% @bulletins.each do |post| %>
<% tag.bulletins.each do |post| %>
<li><%= link_to post.title[I18n.locale], panel_announcement_front_end_bulletin_path(post) %></li>
<% end %>
</ul>
</div>
<% end %>
<% end %>
@@ -2,21 +2,19 @@
<% if @bulletins and !@bulletins.nil? %>
<div class="topic_news">
<div class="topic_news2">
<h2 class="topic_title"><%= t('焦點新聞')%></h2>
<%= link_to "more+",panel_announcement_front_end_bulletins_path(), :class => "topic_note" %>
<ul>
<% @bulletins.each do |post| %>
<li>
<div class="news_img"><%= image_tag(post.image.url, :size => "290x130") if post.image.file %></div>
<h3 class="h3 news_title"><%= link_to post.title[I18n.locale], panel_announcement_front_end_bulletin_path(post) %></h3>
<p class="news_wrap"><%= post.subtitle[I18n.locale] %></p>
</li>
<% end %>
</ul>
</div>
</div>
<h2 class="topic_title"><%= t('焦點新聞')%></h2>
<%= link_to "more+",panel_announcement_front_end_bulletins_path(), :class => "topic_note" %>
<div class="topic_prev">previous page</div>
<div class="topic_next">next page</div>
<ul>
<% @bulletins.each do |post| %>
<li>
<div class="news_img"><%= image_tag(post.image.url, :size => "290x130") if post.image.file %></div>
<h3 class="h3 news_title"><%= link_to post.title[I18n.locale], panel_announcement_front_end_bulletin_path(post) %></h3>
<p class="news_wrap"><%= post.subtitle[I18n.locale] %></p>
</li>
<% end %>
</ul>
<% end %>