[Git][noosfero/noosfero][master] 2 commits: Sending block pretty names to API

Leandro Nunes gitlab at mg.gitlab.com
Thu Aug 3 09:18:26 BRT 2017


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
1a459c4e by Evandro Junior at 2017-08-02T13:12:07-03:00
Sending block pretty names to API

- - - - -
4dd23366 by Leandro Nunes at 2017-08-03T12:18:16+00:00
Merge branch 'adds_pretty_names_for_api' into 'master'

Sending block pretty names to API

See merge request !1294
- - - - -


3 changed files:

- app/models/main_block.rb
- plugins/breadcrumbs/lib/breadcrumbs_plugin.rb
- plugins/classify_members/lib/classify_members_plugin.rb


Changes:

=====================================
app/models/main_block.rb
=====================================
--- a/app/models/main_block.rb
+++ b/app/models/main_block.rb
@@ -14,6 +14,10 @@ class MainBlock < Block
     true
   end
 
+  def self.pretty_name
+    _('Main Content')
+  end
+
   def cacheable?
     false
   end


=====================================
plugins/breadcrumbs/lib/breadcrumbs_plugin.rb
=====================================
--- a/plugins/breadcrumbs/lib/breadcrumbs_plugin.rb
+++ b/plugins/breadcrumbs/lib/breadcrumbs_plugin.rb
@@ -8,6 +8,10 @@ class BreadcrumbsPlugin < Noosfero::Plugin
     _("A plugin that add a block to display breadcrumbs.")
   end
 
+  def self.pretty_name
+    _('Breadcrumbs')
+  end
+
   def self.extra_blocks
     { BreadcrumbsPlugin::ContentBreadcrumbsBlock => {:type => [Community, Person, Enterprise] } }
   end


=====================================
plugins/classify_members/lib/classify_members_plugin.rb
=====================================
--- a/plugins/classify_members/lib/classify_members_plugin.rb
+++ b/plugins/classify_members/lib/classify_members_plugin.rb
@@ -7,6 +7,10 @@ class ClassifyMembersPlugin < Noosfero::Plugin
     _("Allows the association of communities with types of user profiles to classify and highlight them within the environment.")
   end
 
+  def self.pretty_name
+    self.plugin_name
+  end
+
   def html_tag_classes
     plugin = self
     lambda do



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/b7b2deca38bbc02dbebd8156890038b19dfd3e0f...4dd233665426293e5333838a04f61d5e35f1236f

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/b7b2deca38bbc02dbebd8156890038b19dfd3e0f...4dd233665426293e5333838a04f61d5e35f1236f
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/20170803/d6cf6c71/attachment-0001.html>


More information about the Noosfero-dev mailing list