Sha256: 3082e7138eec3536fcba36905c36979ce969703b93b695f46aa59ed8121230d4

Contents?: true

Size: 1.2 KB

Versions: 3

Compression:

Stored size: 1.2 KB

Contents

<% content_for(:javascripts) do %>
  <%= webpacked_plugins_js_for :foreman_templates %>
<% end %>
<% content_for(:stylesheets) do %>
  <%= webpacked_plugins_css_for :foreman_templates %>
<% end %>

<div id="foreman-templates"/>

<%= mount_react_component('ForemanTemplates',
                          '#foreman-templates',
                          { :apiUrls => {
                              :exportUrl => export_ui_template_syncs_path,
                              :syncSettingsUrl => sync_settings_ui_template_syncs_path,
                              :importUrl => import_ui_template_syncs_path
                              },
                            :validationData => { :repo => ForemanTemplates::Action.repo_start_with },
                            :editPaths => edit_paths,
                            :fileRepoStartWith => ForemanTemplates::Action.file_repo_start_with,
                            :userPermissions => {
                              :import => authorized_for(:controller => :ui_template_syncs, :action => :import),
                              :export => authorized_for(:controller => :ui_template_syncs, :action => :export)
                            }
                          }.to_json )%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_templates-9.0.1 app/views/template_syncs/index.html.erb
foreman_templates-9.0.0 app/views/template_syncs/index.html.erb
foreman_templates-7.0.7 app/views/template_syncs/index.html.erb