diff --git a/plugins/serpro_integration/Gemfile b/plugins/serpro_integration/Gemfile
deleted file mode 100644
index 506fbd6..0000000
--- a/plugins/serpro_integration/Gemfile
+++ /dev/null
@@ -1,3 +0,0 @@
-source 'https://rubygems.org'
-gem 'gitlab', '~> 3.3.0'
-gem 'jenkins_api_client', '~> 0.14.1'
diff --git a/plugins/serpro_integration/controllers/serpro_integration_plugin_admin_controller.rb b/plugins/serpro_integration/controllers/serpro_integration_plugin_admin_controller.rb
deleted file mode 100644
index 9412e40..0000000
--- a/plugins/serpro_integration/controllers/serpro_integration_plugin_admin_controller.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-class SerproIntegrationPluginAdminController < PluginAdminController
-
- def index
- settings = params[:settings]
- settings ||= {}
-
- @settings = Noosfero::Plugin::Settings.new(environment, SerproIntegrationPlugin, settings)
- if request.post?
- @settings.save!
- session[:notice] = 'Settings succefully saved.'
- redirect_to :action => 'index'
- end
- end
-
-end
diff --git a/plugins/serpro_integration/controllers/serpro_integration_plugin_myprofile_controller.rb b/plugins/serpro_integration/controllers/serpro_integration_plugin_myprofile_controller.rb
deleted file mode 100644
index 0566d08..0000000
--- a/plugins/serpro_integration/controllers/serpro_integration_plugin_myprofile_controller.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-class SerproIntegrationPluginMyprofileController < MyProfileController
- append_view_path File.join(File.dirname(__FILE__) + '/../views')
-
- def create_gitlab
- profile.create_gitlab_project
- render :update do |page|
- page.replace_html 'gitlab', :partial => 'gitlab'
-# page.replace_html 'gitlab', 'teste'
- end
-# raise 'teste my profile'
- end
-
-end
diff --git a/plugins/serpro_integration/features/sonar.feature b/plugins/serpro_integration/features/sonar.feature
deleted file mode 100644
index 9a8ce8d..0000000
--- a/plugins/serpro_integration/features/sonar.feature
+++ /dev/null
@@ -1,15 +0,0 @@
-Feature: require authentication to comment
-
- Background:
- Given plugin RequireAuthToCommentPlugin is enabled on environment
- And the following users
- | login |
- | bozo |
-
- Scenario: enabling unauthenticated comment per profile
- Given I am logged in as "bozo"
- When I edit my profile
- And I check "Accept comments from unauthenticated users"
- And I press "Save"
- Then I edit my profile
- And the "Accept comments from unauthenticated users" checkbox should be checked
diff --git a/plugins/serpro_integration/install.rb b/plugins/serpro_integration/install.rb
deleted file mode 100644
index 6944eaf..0000000
--- a/plugins/serpro_integration/install.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-system "gem install --user-install gitlab"
-system "gem install --user-install jenkins_api_client"
diff --git a/plugins/serpro_integration/lib/ext/community.rb b/plugins/serpro_integration/lib/ext/community.rb
deleted file mode 100644
index 5f935a3..0000000
--- a/plugins/serpro_integration/lib/ext/community.rb
+++ /dev/null
@@ -1,76 +0,0 @@
-require_dependency 'community'
-
-class Community
-
- settings_items :allow_sonar_integration, :type => :boolean, :default => false
- settings_items :allow_gitlab_integration, :type => :boolean, :default => true
- settings_items :allow_jenkins_integration, :type => :boolean, :default => true
-
- settings_items :serpro_integration_plugin_gitlab, :type => Hash, :default => {}
- settings_items :serpro_integration_plugin_jenkins, :type => Hash, :default => {}
- settings_items :serpro_integration_plugin_sonar, :type => Hash, :default => {}
-
- attr_accessible :allow_unauthenticated_comments, :allow_gitlab_integration, :allow_sonar_integration, :allow_jenkins_integration, :serpro_integration_plugin_gitlab, :serpro_integration_plugin_jenkins, :serpro_integration_plugin_sonar
-
- after_create :create_integration_projects, :if => lambda { |c| c.allow_serpro_integration?}
-
- def create_integration_projects
-
- if allow_gitlab_integration
- gitlab_integration = SerproIntegrationPlugin::GitlabIntegration.new(gitlab_host, gitlab_private_token)
- gitlab_project = gitlab_integration.create_gitlab_project(self)
- serpro_integration_plugin_gitlab[:project_id] = gitlab_project.id
-
- if allow_jenkins_integration
- jenkins_integration = SerproIntegrationPlugin::JenkinsIntegration.new(jenkins_host, jenkins_private_token, jenkins_user)
-
- jenkins_integration.create_jenkis_project(self, gitlab_project.path_with_namespace, gitlab_project.web_url, gitlab_project.http_url_to_repo)
- gitlab_integration.create_jenkins_hook(jenkins_integration.host)
- end
-
- end
- end
-
- def serpro_integration_plugin_settings
- @settings ||= Noosfero::Plugin::Settings.new(environment, SerproIntegrationPlugin)
- end
-
- def gitlab_group
- serpro_integration_plugin_gitlab[:group] || self.identifier
- end
-
- def gitlab_project_name
- serpro_integration_plugin_gitlab[:project_name] || self.identifier
- end
-
- def gitlab_host
- serpro_integration_plugin_settings.gitlab[:host]
- end
-
- def gitlab_private_token
- serpro_integration_plugin_settings.gitlab[:private_token]
- end
-
- def jenkins_host
- serpro_integration_plugin_settings.jenkins[:host]
- end
-
- def jenkins_private_token
- serpro_integration_plugin_settings.jenkins[:private_token]
- end
-
- def jenkins_user
- serpro_integration_plugin_settings.jenkins[:user]
- end
-
- def jenkins_project_name
- serpro_integration_plugin_jenkins[:project_name] || self.identifier
- end
-
- def allow_serpro_integration?
- return false if serpro_integration_plugin_settings.communities.blank? || serpro_integration_plugin_settings.communities[:templates].blank?
- allow = serpro_integration_plugin_settings.communities[:templates].include?(self.id.to_s)
- allow || serpro_integration_plugin_settings.communities[:templates].include?(self.template_id.to_s)
- end
-
-end
diff --git a/plugins/serpro_integration/lib/serpro_integration_plugin.rb b/plugins/serpro_integration/lib/serpro_integration_plugin.rb
deleted file mode 100644
index a4eac39..0000000
--- a/plugins/serpro_integration/lib/serpro_integration_plugin.rb
+++ /dev/null
@@ -1,39 +0,0 @@
-class SerproIntegrationPlugin < Noosfero::Plugin
-
- def self.plugin_name
- "Serpro Integration Plugin"
- end
-
- def self.plugin_description
- _("Make integration with serpro servers.")
- end
-
- #FIXME make this test
- # User could not have this block
- def self.extra_blocks
- { SerproIntegrationPlugin::SonarWidgetBlock => {:type => [Community] },
- SerproIntegrationPlugin::SmileBlock => {:type => [Community] },
- }
- end
-
- #FIXME make this test
- def profile_editor_extras
- proc do
- render :file => 'profile-editor-extras', :locals => {:context => self} if profile.kind_of?(Community)
- end
- end
-
- def profile_id
- context.profile
- end
-
- def stylesheet?
- true
- end
-
-# FIXME make this test
- def js_files
- ['smile_face.js']
- end
-
-end
diff --git a/plugins/serpro_integration/lib/serpro_integration_plugin/gitlab_integration.rb b/plugins/serpro_integration/lib/serpro_integration_plugin/gitlab_integration.rb
deleted file mode 100644
index d854354..0000000
--- a/plugins/serpro_integration/lib/serpro_integration_plugin/gitlab_integration.rb
+++ /dev/null
@@ -1,71 +0,0 @@
-require 'gitlab'
-
-class SerproIntegrationPlugin::GitlabIntegration
-
- def initialize(host, private_token)
- @client = Gitlab.client(:endpoint => host, :private_token => private_token)
- @group = nil
- @project = nil
- end
-
- def create_group(group_name)
- #FIXME find group by name
- group = @client.groups(:search => group_name).select {|group| group.name == group_name}.first
- group ||= @client.create_group(group_name, group_name)
- @group = group
- end
-
- def create_project(project_name, group)
- path_with_namespace = "#{group.name}/#{project_name}"
- #FIXME find project by namespace
- project = @client.get("/projects/search/#{project_name}").select do |project|
- project.path_with_namespace == path_with_namespace
- end.first
-
- if project.nil?
- project_options = {}
- project_options[:namespace_id] = group.id
- project_options[:issues_enabled ] = true
- project_options[:wall_enabled] = true
- project_options[:wiki_enabled] = true
- project_options[:public] = true
-
- project = @client.create_project(project_name, project_options)
- #Create Web Hook for Jenkins' integration
- #Gitlab.add_project_hook(project.id, "#{self.jenkins[:url]}/gitlab/build_now")
- end
- @project = project
- end
-
- def create_user(email, group)
- user = @client.users(:search => email).first
- username = name = email[/[^@]+/]
- user ||= @client.create_user(email, '123456', {:username => username, :name => name, :provider => 'ldap'})
-
- begin
- @client.add_group_member(group.id, user.id, 40)
- rescue Gitlab::Error::Conflict => e
- #already member
- Rails.logger.info e.to_s
- end
- user
- end
-
- #http://rubydoc.info/gems/gitlab/frames
- def create_gitlab_project(profile)
- group = create_group(profile.gitlab_group)
-
- #create admins and add to group
- profile.admins.each do |person|
- create_user(person.user.email, group)
- end
-
- project = create_project(profile.gitlab_project_name, group)
- end
-
-
- def create_jenkins_hook(jenkins_host)
- @client.add_project_hook(@project.id, "#{jenkins_host}/gitlab/build_now")
- end
-
-end
diff --git a/plugins/serpro_integration/lib/serpro_integration_plugin/gitlab_issues_block.rb b/plugins/serpro_integration/lib/serpro_integration_plugin/gitlab_issues_block.rb
deleted file mode 100644
index 8a2d830..0000000
--- a/plugins/serpro_integration/lib/serpro_integration_plugin/gitlab_issues_block.rb
+++ /dev/null
@@ -1,33 +0,0 @@
-require 'open-uri'
-require 'json'
-
-class SerproIntegrationPlugin::GitlabIssuesBlock < Block
-
- def self.description
- _('Gitlab Issues')
- end
-
- def help
- _('This block list gitlab issues')
- end
-
- #FIXME make this test
- def content(args={})
- gitlab_integration = SerproIntegrationPlugin::GitlabIntegration.new(owner.gitlab_host, owner.gitlab_private_token)
- issues = gitlab_integration.issues(owner)
- block = self
- proc do
- render :file => 'blocks/gitlab_issues', :locals => {:issues => issues, :block => block}
- end
- #content_tag(:div,
- # content_tag(:canvas, '', :id => smile_face_id, :width => '95%', :height => '95%' ) +
- # "",
- # :class => 'smile'
- #)
- end
-
- def cacheable?
- false
- end
-
-end
diff --git a/plugins/serpro_integration/lib/serpro_integration_plugin/jenkins_integration.rb b/plugins/serpro_integration/lib/serpro_integration_plugin/jenkins_integration.rb
deleted file mode 100644
index 740ae8f..0000000
--- a/plugins/serpro_integration/lib/serpro_integration_plugin/jenkins_integration.rb
+++ /dev/null
@@ -1,117 +0,0 @@
-# encoding: UTF-8
-require 'jenkins_api_client'
-
-class SerproIntegrationPlugin::JenkinsIntegration
-
- attr_accessor :profile
-
- def initialize(host, private_token, user)
- @client = JenkinsApi::Client.new(:server_url => host, :password => private_token, :username => user)
- @profile = nil
- @private_token = private_token
- end
-
- def project_url
- "#{host}/#{project_name}"
- end
-
- def host
- @profile.jenkins_host
- end
-
- def project_name
- @profile.jenkins_project_name
- end
- #FIXME make jenkins integration works
- def create_jenkis_project(profile, repository_path, web_url, git_url)
- @profile = profile
- #begin
- if @client.job.list(project_name).blank?
- @client.job.create(profile.jenkins_project_name, xml_jenkins(repository_path, web_url, git_url))
- end
- #rescue JenkinsApi::Exceptions::ApiException
- #end
- end
-
- #FIXME
- def xml_jenkins(repository_path, web_url, git_url)
- "
-
-
- Projeto criado para o repositório #{repository_path} do Gitlab - #{web_url}
-
- -1
- 2
- -1
- -1
-
- false
-
-
- 2
-
-
- #{git_url}
-
-
-
-
- */master
-
-
- false
-
-
-
- true
- false
- false
- false
- (Inherit From Job)
-
- false
- clean package install deploy
- true
- false
- true
- false
- false
- false
- false
- -1
- false
- false
-
-
-
-
-
- false
- true
- true
-
-
-
-
- (Inherit From Job)
-
-
-
-
-
-
- false
-
-
-
-
-
-
- FAILURE
- 2
- RED
-
-
- "
- end
-end
diff --git a/plugins/serpro_integration/lib/serpro_integration_plugin/smile_block.rb b/plugins/serpro_integration/lib/serpro_integration_plugin/smile_block.rb
deleted file mode 100644
index c923152..0000000
--- a/plugins/serpro_integration/lib/serpro_integration_plugin/smile_block.rb
+++ /dev/null
@@ -1,102 +0,0 @@
-require 'open-uri'
-require 'json'
-
-class SerproIntegrationPlugin::SmileBlock < Block
-
-
- METRIC_SUCCESS_DENSITY = 'test_success_density'
- METRIC_LOC = 'ncloc'
- METRIC_UNCOVERED_LINE = 'uncovered_lines'
- METRIC_COVERAGE = 'coverage'
-
- #FIXME make this test
- settings_items :sonar_info, :type => Hash, :default => {}
-
- def self.description
- _('Sonar Smile')
- end
-
- def help
- _('This block adds a smile face that make tecnical debits visible with funny way.')
- end
-
- #FIXME make this test
- def sonar_host
- self.owner.sonar_plugin['host']
- end
-
- #FIXME make this test
- def sonar_project
- self.owner.sonar_plugin['project'] #|| ''
- end
-
-#FIXME make this test
- def smile_factor
- collect_sonar_information
- factor = 0
- if self.sonar_info[METRIC_COVERAGE] && self.sonar_info[METRIC_SUCCESS_DENSITY]
- factor = (self.sonar_info[METRIC_COVERAGE] * self.sonar_info[METRIC_SUCCESS_DENSITY]).to_f/1000
- end
- end
-
- #FIXME make this test
- def content(args={})
- smile_face_id = 'smileFace-' + self.id.to_s
-
- content_tag(:div,
- content_tag(:canvas, '', :id => smile_face_id, :width => '95%', :height => '95%' ) +
- "",
- :class => 'smile'
- )
- end
-
- #FIXME make this test
- def self.metrics
- [
- METRIC_SUCCESS_DENSITY,
- METRIC_LOC,
- METRIC_UNCOVERED_LINE,
- METRIC_COVERAGE
- ]
- end
-
- private
-
- #FIXME make this test
- def collect_sonar_information
- return false unless cache_expired?
- begin
- data = open("#{self.sonar_host}/api/resources?resource=#{self.sonar_project}&metrics=ncloc,coverage,weighted_violations,uncovered_lines,test_success_density&format=json").read
- self.sonar_info = parse_sonar_resource(JSON.parse(data).first)
- rescue
- self.sonar_info = {}
- end
- self.sonar_info[:updated_at] = Time.now
- self.save
- end
-
- #FIXME make this test
- def parse_sonar_resource(data)
- parsed_data = {}
- return {} if data['msr'].nil?
- data['msr'].map do |metric|
- self.class.metrics.map do |defined_metric|
- parsed_data[defined_metric] = metric['val'] if metric['key'] == defined_metric
- end
- end
- parsed_data
- end
-
- #FIXME make this test
- def cache_expired?
- return true if self.sonar_info[:updated_at].nil?
- (Time.now - self.sonar_info[:updated_at]) > cache_timestamp
- end
-
- #FIXME make this test
- # Cach time to load new data in seconds
- def cache_timestamp
- 60 * 60
- end
-
-end
diff --git a/plugins/serpro_integration/lib/serpro_integration_plugin/sonar_widget_block.rb b/plugins/serpro_integration/lib/serpro_integration_plugin/sonar_widget_block.rb
deleted file mode 100644
index 7dce33d..0000000
--- a/plugins/serpro_integration/lib/serpro_integration_plugin/sonar_widget_block.rb
+++ /dev/null
@@ -1,81 +0,0 @@
-class SerproIntegrationPlugin::SonarWidgetBlock < Block
-
- #FIXME make this test
- AVAILABLE_WIDGETS = {
- 'project_motion_chart' => 'Project Motion Chart',
- 'timeline' => 'Timeline',
- 'complexity' => 'Complexity'
- }
-
- #FIXME make this test. Make test for default widget
- settings_items :widget, :type => String, :default => 'timeline'
-
- def self.description
- _('Sonar Widgets')
- end
-
- def help
- _('This block adds sonar widgets on profile.')
- end
-
- #FIXME make this test
- def sonar_host
- self.owner.serpro_integration_plugin['host']
- end
-
- #FIXME make this test
- def sonar_project
- self.owner.serpro_integration_plugin['project']
- end
-
- #FIXME make this test
- def widget_url
- self.sonar_host + 'widget?id=' + self.widget + '&resource=' + self.sonar_project + '&metric1=complexity&metric2=ncloc'
- end
-
- #FIXME make this test
- def is_widget_well_formed_url?
- !self.widget_url.match(/http[s]?:\/\/[\w|.|\/]+\/widget\?id=[\w]+&resource=[\w|\W]+/).nil?
- end
-
- #FIXME make this test
- def widget_width
- case widget
- when 'project_motion_chart'
- '360px'
- when 'timeline'
- '100%'
- when 'complexity'
- '100%'
- else
- '300px'
- end
- end
-
- #FIXME make this test
- def widget_height
- case widget
- when 'project_motion_chart'
- '450px'
- when 'timeline'
- '205px'
- when 'complexity'
- '170px'
- else
- '300px'
- end
- end
-
- def content(args={})
-# render this url
-#http://sonar.serpro/widget?id=timeline&resource=br.gov.fazenda.coaf.siscoaf:siscoaf-parent&metric1=complexity&metric2=ncloc
-
- block = self
-
- proc do
- render :file => 'sonar_widget_block', :locals => { :block => block }
- end
-
- end
-
-end
diff --git a/plugins/serpro_integration/public/smile_face.js b/plugins/serpro_integration/public/smile_face.js
deleted file mode 100644
index e74e71c..0000000
--- a/plugins/serpro_integration/public/smile_face.js
+++ /dev/null
@@ -1,129 +0,0 @@
-function drawBaseFace(element_id) {
- var canvas = document.getElementById(element_id);
- var ctx = canvas.getContext("2d");
-
- var x = canvas.width / 2;
- var y = canvas.height / 2;
- var radius = canvas.width/2 - 1;
- var startAngle = 0;
- var endAngle = 2 * Math.PI;
-
- ctx.beginPath();
- ctx.arc(x, y, radius, startAngle, endAngle);
- ctx.stroke();
- ctx.fillStyle = "yellow";
- ctx.fill();
-}
-
-function drawSmile(element_id, factor){
- var canvas = document.getElementById(element_id);
- var ctx = canvas.getContext("2d");
- var x = canvas.width / 2;
- var y = canvas.height / 2
- var radius = canvas.width/2 - canvas.width/4;
-
- var startAngle = 0;
- var endAngle = 0;
- var delta = 0;
-
- ctx.beginPath();
- ctx.lineWidth = canvas.width/100 * 2;
-
- if (factor >= 0 && factor < 5){
- //Draw sadness mouth
- delta = 0.5 - factor* 0.1
- startAngle = (1.5 - delta) * Math.PI;
- endAngle = (1.5 + delta) * Math.PI;
- radius = radius - radius*delta;
- y = y + (radius + radius*(1 - delta));
- ctx.arc(x, y, radius, startAngle, endAngle);
- } else if (factor == 5) {
- //Draw normal mouth
- ctx.moveTo(x-canvas.width/8,y+canvas.width/8);
- ctx.lineTo(x-canvas.width/8+(canvas.width/4),y+canvas.width/8);
- } else if (factor > 5 && factor <= 10) {
- //Draw happiness mouth
- delta = 1 - factor * 0.1
- startAngle = delta * Math.PI;
- endAngle = (1 - delta) * Math.PI;
- radius = radius - radius*delta;
- y = y - (radius - radius*(1-delta));
- ctx.arc(x, y, radius, startAngle, endAngle);
- }else{
- //Draw scare mouth
- radius = radius*0.4
- y = y + radius;
- ctx.ellipse(x,y,radius*0.4, radius,0,0,2 * Math.PI, false);
- ctx.fill();
- }
-
-
- // line color
- ctx.strokeStyle = 'black';
- ctx.stroke();
-}
-
-function drawEyes(element_id){
- var canvas = document.getElementById(element_id);
- var ctx = canvas.getContext("2d");
- var centerX = canvas.width/5;
- var centerY = 0;
- var radius = canvas.width * 0.05;
-
- // save state
- ctx.save();
-
- // translate context so height is 1/3'rd from top of enclosing circle
- ctx.translate(canvas.width / 2, canvas.height / 3);
-
- // scale context horizontally by 50%
- ctx.scale(.5, 1);
-
- // draw circle which will be stretched into an oval
- ctx.beginPath();
- ctx.arc(centerX, centerY, radius, 0, 2 * Math.PI, false);
-
- // restore to original state
- ctx.restore();
-
- // apply styling
- ctx.fillStyle = 'black';
- ctx.fill();
- ctx.lineWidth = 2;
- ctx.strokeStyle = 'black';
- ctx.stroke();
-
-
- //left eye
- centerX = centerX * -1;
-
- // save state
- ctx.save();
-
- // translate context so height is 1/3'rd from top of enclosing circle
- ctx.translate(canvas.width / 2, canvas.height / 3);
-
- // scale context horizontally by 50%
- ctx.scale(.5, 1);
-
- // draw circle which will be stretched into an oval
- ctx.beginPath();
- ctx.arc(centerX, centerY, radius, 0, 2 * Math.PI, false);
-
- // restore to original state
- ctx.restore();
-
- // apply styling
- ctx.fillStyle = 'black';
- ctx.fill();
- ctx.lineWidth = 2;
- ctx.strokeStyle = 'black';
- ctx.stroke();
-}
-
-
-function drawFace(element_id, factor){
- drawBaseFace(element_id);
- drawEyes(element_id);
- drawSmile(element_id, factor);
-}
diff --git a/plugins/serpro_integration/public/style.css b/plugins/serpro_integration/public/style.css
deleted file mode 100644
index f89b362..0000000
--- a/plugins/serpro_integration/public/style.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.serpro-integration-plugin_smile-block .smile {
- text-align: center;
-}
diff --git a/plugins/serpro_integration/smile.html b/plugins/serpro_integration/smile.html
deleted file mode 100644
index 672b48f..0000000
--- a/plugins/serpro_integration/smile.html
+++ /dev/null
@@ -1,142 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/plugins/serpro_integration/test/unit/sonar_plugin_test.rb b/plugins/serpro_integration/test/unit/sonar_plugin_test.rb
deleted file mode 100644
index ec46f86..0000000
--- a/plugins/serpro_integration/test/unit/sonar_plugin_test.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require File.dirname(__FILE__) + '/../../../../test/test_helper'
-
-class SonarPluginTest < ActiveSupport::TestCase
-
-end
diff --git a/plugins/serpro_integration/views/blocks/_gitlab_issue.html.erb b/plugins/serpro_integration/views/blocks/_gitlab_issue.html.erb
deleted file mode 100644
index d198e8a..0000000
--- a/plugins/serpro_integration/views/blocks/_gitlab_issue.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-
- <%= gitlab_issue.id %>
- <%= gitlab_issue.title %>
- <%= gitlab_url gitlab_issue %>
- <%= gitlab_issue.inspect %>
-
diff --git a/plugins/serpro_integration/views/blocks/gitlab_issues.html.erb b/plugins/serpro_integration/views/blocks/gitlab_issues.html.erb
deleted file mode 100644
index 88284e3..0000000
--- a/plugins/serpro_integration/views/blocks/gitlab_issues.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-
-<%= block_title(block.title) %>
-
-
- <%= render :partial => 'blocks/gitlab_issue', :collection => issues %>
-
diff --git a/plugins/serpro_integration/views/profile-editor-extras.html.erb b/plugins/serpro_integration/views/profile-editor-extras.html.erb
deleted file mode 100644
index 12c1ae1..0000000
--- a/plugins/serpro_integration/views/profile-editor-extras.html.erb
+++ /dev/null
@@ -1,8 +0,0 @@
-<% if profile.allow_serpro_integration? %>
-
-
<%= _('Serpro Integration') %>
-
- <%= render :partial => 'gitlab' %>
- <%= render :partial => 'jenkins' %>
-
-<% end %>
diff --git a/plugins/serpro_integration/views/profile_design/sonar_plugin/_sonar_widget_block.html.erb b/plugins/serpro_integration/views/profile_design/sonar_plugin/_sonar_widget_block.html.erb
deleted file mode 100644
index fe9138d..0000000
--- a/plugins/serpro_integration/views/profile_design/sonar_plugin/_sonar_widget_block.html.erb
+++ /dev/null
@@ -1,4 +0,0 @@
-
-<%= labelled_form_field(_('Widget'), select(:block, :widget, SerproIntegrationPlugin::SonarWidgetBlock::AVAILABLE_WIDGETS.map {|id, name| [name, id]} )) %>
-
-
diff --git a/plugins/serpro_integration/views/profile_editor/_gitlab.html.erb b/plugins/serpro_integration/views/profile_editor/_gitlab.html.erb
deleted file mode 100644
index d75f976..0000000
--- a/plugins/serpro_integration/views/profile_editor/_gitlab.html.erb
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
- <%= _('Gitlab Integration') %>
-
-
- -
- <%= _('Server Host:') %>
- <%= profile.gitlab_host %>
-
-
- -
- <%= labelled_text_field(_('Group Name:'), 'profile_data[serpro_integration_plugin_gitlab][group]', profile.gitlab_group) %>
-
- -
- <%= labelled_text_field(_('Project Name:'), 'profile_data[serpro_integration_plugin_gitlab][project_name]', profile.gitlab_project_name ) %>
-
-
-
diff --git a/plugins/serpro_integration/views/profile_editor/_jenkins.html.erb b/plugins/serpro_integration/views/profile_editor/_jenkins.html.erb
deleted file mode 100644
index 016a35d..0000000
--- a/plugins/serpro_integration/views/profile_editor/_jenkins.html.erb
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- <%= _('Jenkins Integration') %>
-
-
- -
- <%= labelled_text_field(_('Project Name:'), 'profile_data[serpro_integration_plugin_jenkins][project_name]', profile.jenkins_project_name ) %>
-
-
-
diff --git a/plugins/serpro_integration/views/serpro_integration_plugin_admin/index.html.erb b/plugins/serpro_integration/views/serpro_integration_plugin_admin/index.html.erb
deleted file mode 100644
index bb63153..0000000
--- a/plugins/serpro_integration/views/serpro_integration_plugin_admin/index.html.erb
+++ /dev/null
@@ -1,34 +0,0 @@
-<%= _('Serpro Integration Settings')%>
-
-<%= form_for(:settings) do |f| %>
-
-
-
-
-
<%= _('Gitlab Settings')%>
- <%= f.fields_for :gitlab, OpenStruct.new(@settings.gitlab) do |g| %>
- <%= labelled_form_field _('Server Host'), g.text_field("host") %>
- <%= labelled_form_field _('Private Token'), g.text_field(:private_token) %>
- <% end %>
-
-
-
-
<%= _('Jenkins Settings')%>
- <%= f.fields_for :jenkins, OpenStruct.new(@settings.jenkins) do |g| %>
- <%= labelled_form_field _('Server Host'), g.text_field("host") %>
- <%= labelled_form_field _('Server User'), g.text_field(:user) %>
- <%= labelled_form_field _('Private Token'), g.text_field(:private_token) %>
- <% end %>
-
-
- <% button_bar do %>
- <%= submit_button(:save, _('Save'), :cancel => {:controller => 'plugins', :action => 'index'}) %>
- <% end %>
-
-<% end %>
-
diff --git a/plugins/serpro_integration/views/sonar_widget_block.html.erb b/plugins/serpro_integration/views/sonar_widget_block.html.erb
deleted file mode 100644
index ef97408..0000000
--- a/plugins/serpro_integration/views/sonar_widget_block.html.erb
+++ /dev/null
@@ -1,10 +0,0 @@
-
--
libgit2 0.21.2