22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# File 'app/controllers/triplestore_sync_controller.rb', line 22
def index
authorize! :use, :dashboard
if Iqvoc.config["triplestore.url"] == Iqvoc.config.defaults["triplestore.url"]
flash.now[:warning] = I18n.t("txt.controllers.triplestore_sync.config_warning")
else
host = Iqvoc.config["triplestore.url"]
username = Iqvoc.config["triplestore.username"].presence
password = Iqvoc.config["triplestore.password"].presence
target_info = host
if username && password
target_info = "#{target_info} (as #{username} with password)" elsif username
target_info = "#{target_info} (as #{username})" end
flash.now[:info] = I18n.t("txt.controllers.triplestore_sync.config_info",
:target_info => target_info)
end
@candidates = Iqvoc::RDFSync.candidates.map do |records|
records.page(params[:page])
end
end
|