Commit f0218b1c4c5cb744f1f4c92cd8a0f1e9021bea15

Authored by AntonioTerceiro
1 parent bcd1f5f7

ActionItem23: adding icon for RSS feeds



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1133 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/models/rss_feed.rb
@@ -102,4 +102,8 @@ class RssFeed < Article @@ -102,4 +102,8 @@ class RssFeed < Article
102 _('Provides a news feed of your more recent articles.') 102 _('Provides a news feed of your more recent articles.')
103 end 103 end
104 104
  105 + def icon_name
  106 + 'rss-feed'
  107 + end
  108 +
105 end 109 end
public/images/icons-mime/README
@@ -5,6 +5,10 @@ The icons in this directory are taken from the dlg-neu icon theme for GNOME, @@ -5,6 +5,10 @@ The icons in this directory are taken from the dlg-neu icon theme for GNOME,
5 section "mimetypes/". We take the SVG files and convert to 64x64 PNG images, so 5 section "mimetypes/". We take the SVG files and convert to 64x64 PNG images, so
6 these icons are in fact derived works based on dlg-neu's SVG files. 6 these icons are in fact derived works based on dlg-neu's SVG files.
7 7
  8 +Exception: ico-feed-on.png was made by Aurélio A. Heckert
  9 +<aurelio@colivre.coop.br> and is licensed under the GNU General Public License,
  10 +version 3.
  11 +
8 Structure 12 Structure
9 ========= 13 =========
10 14
public/images/icons-mime/ico-feed-on.png 0 → 100644

1.15 KB

public/images/icons-mime/rss-feed.png 0 → 120000
@@ -0,0 +1 @@ @@ -0,0 +1 @@
  1 +ico-feed-on.png
0 \ No newline at end of file 2 \ No newline at end of file
test/unit/rss_feed_test.rb
@@ -174,4 +174,8 @@ class RssFeedTest &lt; Test::Unit::TestCase @@ -174,4 +174,8 @@ class RssFeedTest &lt; Test::Unit::TestCase
174 assert_not_equal Article.description, RssFeed.description 174 assert_not_equal Article.description, RssFeed.description
175 end 175 end
176 176
  177 + should 'provide the correct icon name' do
  178 + assert_equal 'rss-feed', RssFeed.new.icon_name
  179 + end
  180 +
177 end 181 end