- <%= f.text_field :link, :class=>'span4', :placeholder => 'RSS URL'%>
-
+
+
+ <%= f.text_field :link, :class => 'span4', :placeholder => 'RSS URL', :id => "inputURL"%>
+
-
- <%= f.submit t("submit"), :class=>"btn" %>
-
+
+
+ <%= f.submit t("submit"), :class => "btn btn-primary" %>
+
+
\ No newline at end of file
diff --git a/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/edit.html.erb b/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/edit.html.erb
index cce7df421..6da95d308 100644
--- a/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/edit.html.erb
+++ b/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/edit.html.erb
@@ -1,3 +1,3 @@
-<%= form_for @feed, :url => panel_feed_back_end_feed_path, :method => :put, :html => { :class=>"form-horizontal"} do |f| %>
+<%= form_for @feed, :url => panel_feed_back_end_feed_path, :method => :put, :html => {:class => "form-horizontal"} do |f| %>
<%= render :partial => 'form', :locals => {:f => f} %>
<% end %>
\ No newline at end of file
diff --git a/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/index.html.erb b/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/index.html.erb
index f04594b19..249d55309 100644
--- a/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/index.html.erb
+++ b/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/index.html.erb
@@ -1,7 +1,6 @@
-
-
<%= t('feed.channel') %>
+ <%= t('feed.channel') %> |
<%= t('RSS') %> |
<%if is_manager? %>
@@ -16,12 +15,13 @@
<%= feed.name %> |
<%if is_manager? %>
<%= link_to t('feed.edit'), edit_panel_feed_back_end_feed_path(feed) %> |
- <%= link_to t('feed.cancel'), panel_feed_back_end_feed_path(feed), method: :delete , :confirm => t(:sure?) %> |
+ <%= link_to t('feed.cancel'), panel_feed_back_end_feed_path(feed), method: :delete, confirm: t(:sure?) %> |
<% end %>
<% end %>
<%if is_manager? %>
-<%= link_to t('feed.new'), new_panel_feed_back_end_feed_path, :class => "btn btn-primary pull-right", :id=>"create_event_btn", :ref=>"add-btn" %>
+
+ <%= link_to t('feed.new'), new_panel_feed_back_end_feed_path, :class => "btn btn-primary pull-right", :id => "create_event_btn", :ref => "add-btn" %>
<% end %>
diff --git a/vendor/built_in_modules/feed/lib/rss_dynamic.rb b/vendor/built_in_modules/feed/lib/rss_dynamic.rb
index 1c6ca849f..c36cabca0 100644
--- a/vendor/built_in_modules/feed/lib/rss_dynamic.rb
+++ b/vendor/built_in_modules/feed/lib/rss_dynamic.rb
@@ -3,12 +3,12 @@ require 'rss'
require 'mongo'
-#base on your DB
+# Change this according to local DB
DB_BASE_NAME = "production_0"
-#create a hash rss site list from mongodb
+# Create a hash rss site list from mongodb
db = Mongo::Connection.new("localhost", 27017).db("#{DB_BASE_NAME}")
-SITES = Hash[ db["announcement_feeds"].find().entries.collect { |f| [ f["name"], f["link"] ]} ]
+SITES = Hash[ db["announcement_feeds"].find().entries.collect {|f| [ f["name"], f["link"] ]} ]
yesterday = Time.now - 86400
two_weeks_ago = Time.new - 60 * 60 * 24 * 14
@@ -18,7 +18,7 @@ recent_feed = {}
SITES.each do |name, url|
open("http://#{url}/panel/announcement/front_end/bulletins.rss?inner=true") do |rss|
- # Giving false parameter is for skipping irregular format of the RSS
+ # Giving 'false' parameter is for skipping irregular format of the RSS
feed = RSS::Parser.parse(rss, false)
feed.items.each do |item|