From f77e5fabd4fa6bb72185c7efbdc2973fed588682 Mon Sep 17 00:00:00 2001 From: Alessandro Palmeira + João M. M. da Silva Date: Thu, 29 Nov 2012 15:08:31 -0200 Subject: [PATCH] [Mezuro] Fixed view names --- plugins/mezuro/views/mezuro_plugin_repository/new.html.erb | 41 +++++++++++++++++++++++++++++++++++++++++ plugins/mezuro/views/mezuro_plugin_repository/new_repository.html.erb | 41 ----------------------------------------- plugins/mezuro/views/mezuro_plugin_repository/show.html.erb | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ plugins/mezuro/views/mezuro_plugin_repository/show_repository.html.erb | 48 ------------------------------------------------ 4 files changed, 89 insertions(+), 89 deletions(-) create mode 100644 plugins/mezuro/views/mezuro_plugin_repository/new.html.erb delete mode 100644 plugins/mezuro/views/mezuro_plugin_repository/new_repository.html.erb create mode 100644 plugins/mezuro/views/mezuro_plugin_repository/show.html.erb delete mode 100644 plugins/mezuro/views/mezuro_plugin_repository/show_repository.html.erb diff --git a/plugins/mezuro/views/mezuro_plugin_repository/new.html.erb b/plugins/mezuro/views/mezuro_plugin_repository/new.html.erb new file mode 100644 index 0000000..1e5cfc5 --- /dev/null +++ b/plugins/mezuro/views/mezuro_plugin_repository/new.html.erb @@ -0,0 +1,41 @@ +

<%= @project_content.name %> Project

+ +<% form_for :repository, :url => {:action =>"create_repository", :controller => "mezuro_plugin_repository"}, :method => :get do |f| %> + <%= hidden_field_tag :id, @project_content.id %> + +

+ <%= f.label :name, "Name:" %> + <%= f.text_field :name %> +

+

+ <%= f.label :description, "Description:" %> + <%= f.text_field :description %> +

+ + <%= required labelled_form_field _('License'), + f.select(:license, MezuroPlugin::Helpers::ContentViewerHelper.create_license_options) %>
+

+ +

+ <%= f.label :process_period, "Process Period:" %> + <%= f.select(:process_period, MezuroPlugin::Helpers::ContentViewerHelper.create_periodicity_options ) %> +

+ <%= f.label :type, "Type:" %> + <%= f.select :type, @repository_types %> +

+ +

+ <%= f.label :address, "Address:" %> + <%= f.text_field :address %> +

+ +

+ <%= f.label :configuration_id, "Configuration:" %> + <%= f.select :configuration_id, @configuration_select %> +

+ +

+ <%= f.submit "Add" %> +

+ +<% end %> diff --git a/plugins/mezuro/views/mezuro_plugin_repository/new_repository.html.erb b/plugins/mezuro/views/mezuro_plugin_repository/new_repository.html.erb deleted file mode 100644 index 1e5cfc5..0000000 --- a/plugins/mezuro/views/mezuro_plugin_repository/new_repository.html.erb +++ /dev/null @@ -1,41 +0,0 @@ -

<%= @project_content.name %> Project

- -<% form_for :repository, :url => {:action =>"create_repository", :controller => "mezuro_plugin_repository"}, :method => :get do |f| %> - <%= hidden_field_tag :id, @project_content.id %> - -

- <%= f.label :name, "Name:" %> - <%= f.text_field :name %> -

-

- <%= f.label :description, "Description:" %> - <%= f.text_field :description %> -

- - <%= required labelled_form_field _('License'), - f.select(:license, MezuroPlugin::Helpers::ContentViewerHelper.create_license_options) %>
-

- -

- <%= f.label :process_period, "Process Period:" %> - <%= f.select(:process_period, MezuroPlugin::Helpers::ContentViewerHelper.create_periodicity_options ) %> -

- <%= f.label :type, "Type:" %> - <%= f.select :type, @repository_types %> -

- -

- <%= f.label :address, "Address:" %> - <%= f.text_field :address %> -

- -

- <%= f.label :configuration_id, "Configuration:" %> - <%= f.select :configuration_id, @configuration_select %> -

- -

- <%= f.submit "Add" %> -

- -<% end %> diff --git a/plugins/mezuro/views/mezuro_plugin_repository/show.html.erb b/plugins/mezuro/views/mezuro_plugin_repository/show.html.erb new file mode 100644 index 0000000..b833711 --- /dev/null +++ b/plugins/mezuro/views/mezuro_plugin_repository/show.html.erb @@ -0,0 +1,48 @@ + +

<%= @project_name %>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<%= _('Name') %><%= @repository.name %>
<%= _('Description') %><%= @repository.description %>
<%= _('License') %><%= @repository.license %>
<%= _('Process Period') %><%= MezuroPlugin::Helpers::ContentViewerHelper.get_periodicity_option(@repository.process_period) %>
<%= _('Type') %><%= @repository.type %>
<%= _('Address') %><%= @repository.address %>
<%= _('Configuration') %><%= @configuration_name %>
<%= _('Status')%> +
<%= @processing.state %>
+
+
+ + +
+ +
+
+
diff --git a/plugins/mezuro/views/mezuro_plugin_repository/show_repository.html.erb b/plugins/mezuro/views/mezuro_plugin_repository/show_repository.html.erb deleted file mode 100644 index b833711..0000000 --- a/plugins/mezuro/views/mezuro_plugin_repository/show_repository.html.erb +++ /dev/null @@ -1,48 +0,0 @@ - -

<%= @project_name %>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<%= _('Name') %><%= @repository.name %>
<%= _('Description') %><%= @repository.description %>
<%= _('License') %><%= @repository.license %>
<%= _('Process Period') %><%= MezuroPlugin::Helpers::ContentViewerHelper.get_periodicity_option(@repository.process_period) %>
<%= _('Type') %><%= @repository.type %>
<%= _('Address') %><%= @repository.address %>
<%= _('Configuration') %><%= @configuration_name %>
<%= _('Status')%> -
<%= @processing.state %>
-
-
- - -
- -
-
-
-- libgit2 0.21.2