Commit fce830c232a8fc7869f927c619a1595006b1aa2a
1 parent
bf109138
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
dspace_plugin : add dspace icon
Showing
5 changed files
with
16 additions
and
7 deletions
Show diff stats
plugins/dspace/lib/dspace_plugin/collection.rb
| ... | ... | @@ -6,15 +6,15 @@ class DspacePlugin::Collection < Article |
| 6 | 6 | attr_accessible :dspace_collection_id, :dspace_community_id |
| 7 | 7 | |
| 8 | 8 | def self.icon_name(article = nil) |
| 9 | - 'dspace' | |
| 9 | + 'dspace-collection' | |
| 10 | 10 | end |
| 11 | 11 | |
| 12 | 12 | def self.short_description |
| 13 | - _("Collection") | |
| 13 | + _("DSpace collection") | |
| 14 | 14 | end |
| 15 | 15 | |
| 16 | 16 | def self.description |
| 17 | - _("Defines a collection on DSpace library") | |
| 17 | + _("Defines a DSpace collection") | |
| 18 | 18 | end |
| 19 | 19 | |
| 20 | 20 | def to_html(options = {}) | ... | ... |
plugins/dspace/lib/dspace_plugin/communityy.rb
| ... | ... | @@ -5,15 +5,15 @@ class DspacePlugin::Communityy < Article |
| 5 | 5 | attr_accessible :dspace_community_id |
| 6 | 6 | |
| 7 | 7 | def self.icon_name(article = nil) |
| 8 | - 'dspace' | |
| 8 | + 'dspace-community' | |
| 9 | 9 | end |
| 10 | 10 | |
| 11 | 11 | def self.short_description |
| 12 | - _("Community") | |
| 12 | + _("DSpace community") | |
| 13 | 13 | end |
| 14 | 14 | |
| 15 | 15 | def self.description |
| 16 | - _("Defines a community on DSpace library") | |
| 16 | + _("Defines a DSpace community") | |
| 17 | 17 | end |
| 18 | 18 | |
| 19 | 19 | def to_html(options = {}) | ... | ... |
plugins/dspace/lib/dspace_plugin/library.rb
3.2 KB
plugins/dspace/public/style.css
| ... | ... | @@ -50,3 +50,12 @@ |
| 50 | 50 | margin: 5px 0; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | +.icon-newdspace-library, | |
| 54 | +.icon-dspace-library, | |
| 55 | +.icon-newdspace-community, | |
| 56 | +.icon-dspace-community, | |
| 57 | +.icon-newdspace-collection, | |
| 58 | +.icon-dspace-collection { | |
| 59 | + background-image: url(/plugins/dspace/icons/dspace.png) | |
| 60 | +} | |
| 61 | + | ... | ... |