Commit fce830c232a8fc7869f927c619a1595006b1aa2a

Authored by Francisco Júnior
1 parent bf109138

dspace_plugin : add dspace icon

plugins/dspace/lib/dspace_plugin/collection.rb
@@ -6,15 +6,15 @@ class DspacePlugin::Collection < Article @@ -6,15 +6,15 @@ class DspacePlugin::Collection < Article
6 attr_accessible :dspace_collection_id, :dspace_community_id 6 attr_accessible :dspace_collection_id, :dspace_community_id
7 7
8 def self.icon_name(article = nil) 8 def self.icon_name(article = nil)
9 - 'dspace' 9 + 'dspace-collection'
10 end 10 end
11 11
12 def self.short_description 12 def self.short_description
13 - _("Collection") 13 + _("DSpace collection")
14 end 14 end
15 15
16 def self.description 16 def self.description
17 - _("Defines a collection on DSpace library") 17 + _("Defines a DSpace collection")
18 end 18 end
19 19
20 def to_html(options = {}) 20 def to_html(options = {})
plugins/dspace/lib/dspace_plugin/communityy.rb
@@ -5,15 +5,15 @@ class DspacePlugin::Communityy < Article @@ -5,15 +5,15 @@ class DspacePlugin::Communityy < Article
5 attr_accessible :dspace_community_id 5 attr_accessible :dspace_community_id
6 6
7 def self.icon_name(article = nil) 7 def self.icon_name(article = nil)
8 - 'dspace' 8 + 'dspace-community'
9 end 9 end
10 10
11 def self.short_description 11 def self.short_description
12 - _("Community") 12 + _("DSpace community")
13 end 13 end
14 14
15 def self.description 15 def self.description
16 - _("Defines a community on DSpace library") 16 + _("Defines a DSpace community")
17 end 17 end
18 18
19 def to_html(options = {}) 19 def to_html(options = {})
plugins/dspace/lib/dspace_plugin/library.rb
@@ -11,7 +11,7 @@ class DspacePlugin::Library < Blog @@ -11,7 +11,7 @@ class DspacePlugin::Library < Blog
11 validate :dspace_server_url_valid 11 validate :dspace_server_url_valid
12 12
13 def self.icon_name(article = nil) 13 def self.icon_name(article = nil)
14 - 'dspace' 14 + 'dspace-library'
15 end 15 end
16 16
17 def self.short_description 17 def self.short_description
plugins/dspace/public/icons/dspace.png 0 → 100644

3.2 KB

plugins/dspace/public/style.css
@@ -50,3 +50,12 @@ @@ -50,3 +50,12 @@
50 margin: 5px 0; 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 +