From 145b947167ff737f46b4c65611ffcc909b1ff7a2 Mon Sep 17 00:00:00 2001 From: Fabio Teixeira Date: Tue, 3 Mar 2015 11:04:00 -0300 Subject: [PATCH] Add block html using template --- controllers/software_communities_plugin_controller.rb | 4 ++++ views/box_organizer/_download_list_template.html.erb | 10 ++++++++++ 2 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 views/box_organizer/_download_list_template.html.erb diff --git a/controllers/software_communities_plugin_controller.rb b/controllers/software_communities_plugin_controller.rb index dcf0e84..38e1fbc 100644 --- a/controllers/software_communities_plugin_controller.rb +++ b/controllers/software_communities_plugin_controller.rb @@ -131,6 +131,10 @@ class SoftwareCommunitiesPluginController < ApplicationController } end + def get_block_template + render 'box_organizer/_download_list_template', :layout => false + end + protected def get_state_list diff --git a/views/box_organizer/_download_list_template.html.erb b/views/box_organizer/_download_list_template.html.erb new file mode 100644 index 0000000..630e70a --- /dev/null +++ b/views/box_organizer/_download_list_template.html.erb @@ -0,0 +1,10 @@ +
  • + +
  • -- libgit2 0.21.2