From 7fe0d55823b1f883411fd0dac471f592d0037b7e Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Mon, 29 Dec 2014 14:56:53 +0100 Subject: [PATCH] Show actually used repository on about page --- app/controllers/welcome_controller.rb | 2 +- app/views/welcome/about.slim | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index faba4d0..558ebc4 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -13,7 +13,7 @@ class WelcomeController < ApplicationController end def about - + @package_sources = Rails.configuration.package_sources end end diff --git a/app/views/welcome/about.slim b/app/views/welcome/about.slim index 38ba814..517039c 100644 --- a/app/views/welcome/about.slim +++ b/app/views/welcome/about.slim @@ -19,10 +19,8 @@ ' packages. The repositories that we are scanning frequently are: ul - // TODO: show actually used repositories - li repo1 - li repo2 - li repo3 + - @package_sources.each do |repo| + li #{repo[:description]} (#{repo[:url]}) h2 Who is using this site?