refinerycms 0.9.6 → 0.9.6.1
Sign up to get free protection for your applications and to get access to all the features.
data/.yardopts
CHANGED
@@ -26,6 +26,6 @@ vendor/plugins/dashboard/dashboard.md
|
|
26
26
|
vendor/plugins/inquiries/inquiries.md
|
27
27
|
vendor/plugins/news/news.md
|
28
28
|
vendor/plugins/resources/resources.md
|
29
|
-
vendor/plugins/
|
29
|
+
vendor/plugins/refinery_settings/settings.md
|
30
30
|
license.md
|
31
31
|
contributors.md
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.6
|
1
|
+
0.9.6.1
|
@@ -1216,13 +1216,13 @@ WYMeditor.editor.prototype.status = function(sMessage) {
|
|
1216
1216
|
*/
|
1217
1217
|
WYMeditor.editor.prototype.update = function() {
|
1218
1218
|
|
1219
|
-
|
1219
|
+
// the replace function below makes the HTML source code easier to read when end users need to use this view.
|
1220
|
+
var html = this.xhtml().replace(/<\/([A-Za-z0-9]*)></g, function(m){return m.split(">").join(">\n")});
|
1220
1221
|
html = html.replace(/src=\"system\/images/, 'src="/system/images'); // make system/images calls absolute.
|
1221
1222
|
html = html.replace(/(replace_me_with_wym-[0-9]*)/, ""); // get rid of replace_me_with_wym id tags that were forgotten about.
|
1222
1223
|
|
1223
1224
|
$(this._element).val(html);
|
1224
1225
|
$(this._box).find(this._options.htmlValSelector).val(html);
|
1225
|
-
|
1226
1226
|
};
|
1227
1227
|
|
1228
1228
|
/* @name dialog
|
@@ -0,0 +1,26 @@
|
|
1
|
+
xml.instruct! :xml, :version => "1.0"
|
2
|
+
xml.rss :version => "2.0", "xmlns:atom" => "http://www.w3.org/2005/Atom" do
|
3
|
+
xml.channel do
|
4
|
+
# Required to pass W3C validation.
|
5
|
+
xml.atom :link, nil, {
|
6
|
+
:href => news_items_url(:format => 'rss'),
|
7
|
+
:rel => 'self', :type => 'application/rss+xml'
|
8
|
+
}
|
9
|
+
|
10
|
+
# Feed basics.
|
11
|
+
xml.title page_title
|
12
|
+
xml.description @page[:body].gsub(/<\/?[^>]*>/, "")
|
13
|
+
xml.link news_items_url(:format => 'rss')
|
14
|
+
|
15
|
+
# News items.
|
16
|
+
@news_items.each do |news_item|
|
17
|
+
xml.item do
|
18
|
+
xml.title news_item.title
|
19
|
+
xml.link news_item_url(news_item)
|
20
|
+
xml.description truncate(news_item.body, :length => 200, :preserve_html_tags => true)
|
21
|
+
xml.pubDate news_item.publish_date.to_s(:rfc822)
|
22
|
+
xml.guid news_item_url(news_item)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -5,6 +5,7 @@
|
|
5
5
|
<%= stylesheet_link_tag "#{'theme/' if theme}application", "#{'theme/' if theme}formatting", "theme" %>
|
6
6
|
<%= stylesheet_link_tag "#{'theme/' if theme}home" if home_page? %>
|
7
7
|
<%= "<!--[if IE 7]>#{stylesheet_link_tag 'ie7'}<![endif]-->" if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%>
|
8
|
+
<%= auto_discovery_link_tag(:rss, news_items_url(:format => 'rss')) %>
|
8
9
|
<link rel="shortcut icon" href="/favicon.ico" />
|
9
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
10
11
|
<%= "<meta name=\"keywords\" content=\"#{@meta.meta_keywords}\" />" if @meta.meta_keywords.present? %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.6
|
4
|
+
version: 0.9.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Resolve Digital
|
@@ -379,6 +379,7 @@ files:
|
|
379
379
|
- vendor/plugins/news/app/views/admin/news_items/new.html.erb
|
380
380
|
- vendor/plugins/news/app/views/news_items/_recent_posts.html.erb
|
381
381
|
- vendor/plugins/news/app/views/news_items/index.html.erb
|
382
|
+
- vendor/plugins/news/app/views/news_items/index.rss.builder
|
382
383
|
- vendor/plugins/news/app/views/news_items/show.html.erb
|
383
384
|
- vendor/plugins/news/config/routes.rb
|
384
385
|
- vendor/plugins/news/news.md
|