Commit 49fe7032f671117960af5de6b1be04cd9f2abd5b
Committed by
Paulo Meireles
1 parent
8c1a9b4c
Exists in
master
and in
29 other branches
Created view for configuration
Showing
4 changed files
with
14 additions
and
16 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin.rb
| ... | ... | @@ -9,8 +9,8 @@ class MezuroPlugin < Noosfero::Plugin |
| 9 | 9 | end |
| 10 | 10 | |
| 11 | 11 | def content_types |
| 12 | - # [MezuroPlugin::ProjectContent, | |
| 13 | - MezuroPlugin::KalibroConfiguration #] | |
| 12 | + [MezuroPlugin::ProjectContent, | |
| 13 | + MezuroPlugin::KalibroConfiguration] | |
| 14 | 14 | end |
| 15 | 15 | |
| 16 | 16 | def stylesheet? | ... | ... |
plugins/mezuro/lib/mezuro_plugin/kalibro_configuration.rb
| ... | ... | @@ -38,7 +38,6 @@ class MezuroPlugin::KalibroConfiguration < Article |
| 38 | 38 | configuration = Kalibro::Entities::Configuration.new |
| 39 | 39 | configuration.name = title |
| 40 | 40 | configuration.description = description |
| 41 | - configuration.metric_configuration = 0 | |
| 42 | 41 | configuration |
| 43 | 42 | end |
| 44 | 43 | ... | ... |
plugins/mezuro/views/cms/mezuro_plugin/_kalibro_configuration.html.erb
| ... | ... | @@ -18,16 +18,3 @@ |
| 18 | 18 | <%= required f.text_field(:name) %> |
| 19 | 19 | |
| 20 | 20 | <%= f.text_field :description %><br/> |
| 21 | - | |
| 22 | -<% @repository_types = Kalibro::Client::KalibroClient.new.supported_repository_types.sort %> | |
| 23 | -<% @selected = (@project.nil? ? @repository_types : @project.repository.type) %> | |
| 24 | -<%= required labelled_form_field _('Repository type'), | |
| 25 | - f.select(:repository_type, @repository_types, {:selected => @selected}) %><br/> | |
| 26 | - | |
| 27 | -<%= required f.text_field(:repository_url) %><br/> | |
| 28 | - | |
| 29 | -<% @configuration_names = Kalibro::Client::ConfigurationClient.new.configuration_names.sort %> | |
| 30 | -<% @selected = (@project.nil? ? @configuration_names[0] : @project.configuration_name) %> | |
| 31 | -<%= required labelled_form_field _('Configuration'), | |
| 32 | - f.select(:configuration_name, @configuration_names.sort, {:selected => @selected}) %><br/> | |
| 33 | - | ... | ... |
plugins/mezuro/views/content_viewer/show_configuration.rhtml
0 → 100644
| ... | ... | @@ -0,0 +1,12 @@ |
| 1 | +<% @configuration = @page.configuration %> | |
| 2 | + | |
| 3 | +<table id="project_info"> | |
| 4 | + <tr> | |
| 5 | + <td><%= _('Name') %></td> | |
| 6 | + <td><%= @configuration.name %></td> | |
| 7 | + </tr> | |
| 8 | + <tr> | |
| 9 | + <td><%= _('Description') %></td> | |
| 10 | + <td><%= @configuration.description %></td> | |
| 11 | + </tr> | |
| 12 | +</table> | ... | ... |