[Git][noosfero/noosfero][master] 3 commits: Adds new icon to link articles
Rodrigo Souto
gitlab at mg.gitlab.com
Mon Nov 12 11:13:31 BRST 2018
Rodrigo Souto pushed to branch master at Noosfero / noosfero
Commits:
e94c7224 by MatheusRich at 2018-11-01T14:44:40Z
Adds new icon to link articles
- - - - -
131eefd1 by MatheusRich at 2018-11-01T14:52:31Z
Fixes linter offenses
- - - - -
30b4fe40 by Rodrigo Souto at 2018-11-12T13:13:25Z
Merge branch 'updates-link-article-icon' into 'master'
Adds new icon to link articles
See merge request noosfero/noosfero!1637
- - - - -
1 changed file:
- app/models/link_article.rb
Changes:
=====================================
app/models/link_article.rb
=====================================
@@ -1,16 +1,18 @@
class LinkArticle < Article
-
attr_accessible :reference_article
def self.short_description
"Article link"
end
- delegate :name, :to => :reference_article
- delegate :body, :to => :reference_article
- delegate :abstract, :to => :reference_article
- delegate :url, :to => :reference_article
- delegate :author, :to => :reference_article
- delegate :created_by, :to => :reference_article
+ def icon
+ "link"
+ end
+ delegate :name, to: :reference_article
+ delegate :body, to: :reference_article
+ delegate :abstract, to: :reference_article
+ delegate :url, to: :reference_article
+ delegate :author, to: :reference_article
+ delegate :created_by, to: :reference_article
end
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/53329f36717ab00cf63f2f528c91e8c1338c9055...30b4fe406d7b6fffaa0dadbb75a86b7b8c441e42
--
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/53329f36717ab00cf63f2f528c91e8c1338c9055...30b4fe406d7b6fffaa0dadbb75a86b7b8c441e42
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20181112/2ba3dd54/attachment-0001.html>
More information about the Noosfero-dev
mailing list