bastion 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/bastion/layouts/application.html.erb +1 -32
- data/app/views/bastion/layouts/assets.html.erb +32 -0
- data/lib/bastion/version.rb +1 -1
- metadata +25 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a6ff751c7464fcee64d64f555729d74da6fad14
|
4
|
+
data.tar.gz: 6b4b431245941940ce7c98d679a8adff2207105a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c4376f43d2a7c428617fe1a41acd7ed0d52f06756dd334e01f813f5a50687ac02f09cc5881ac323ed5db96d3d9eff7ace97160089b487cbb563bc20afbe328f
|
7
|
+
data.tar.gz: 4a6aafb2ad7deac647dfe9f3588dea929c117184b73574faa33f1d8d73ed41cdeeb3979d850f38278b178860818f9e4bcb81a70a8b6ddbb2f73a7ffc717b685e
|
@@ -1,12 +1,3 @@
|
|
1
|
-
<% content_for(:stylesheets) do %>
|
2
|
-
<%= stylesheet_link_tag "bastion/bastion" %>
|
3
|
-
<% Bastion.plugins.each do |name, plugin| %>
|
4
|
-
<% if plugin[:stylesheet] %>
|
5
|
-
<%= stylesheet_link_tag(plugin[:stylesheet]) %>
|
6
|
-
<% end %>
|
7
|
-
<% end %>
|
8
|
-
<% end %>
|
9
|
-
|
10
1
|
<% content_for(:content) do %>
|
11
2
|
<div class="article maincontent bastion" data-no-turbolink="true">
|
12
3
|
<section class="container-fluid">
|
@@ -15,26 +6,4 @@
|
|
15
6
|
</div>
|
16
7
|
<% end %>
|
17
8
|
|
18
|
-
|
19
|
-
<%= javascript_include_tag 'bastion/bastion' %>
|
20
|
-
<% if File.exist?("#{Bastion::Engine.root}/vendor/assets/javascripts/#{Bastion.localization_path(I18n.locale)}") %>
|
21
|
-
<%= javascript_include_tag(Bastion.localization_path(I18n.locale)) %>
|
22
|
-
<% end %>
|
23
|
-
<script type="text/javascript">
|
24
|
-
angular.module('Bastion.features').value('FeatureSettings', angular.fromJson(<%= SETTINGS[:features].nil? ? {} : SETTINGS[:features].to_json.html_safe %>));
|
25
|
-
angular.module('Bastion').value('currentLocale', '<%= I18n.locale %>');
|
26
|
-
angular.module('Bastion').value('CurrentOrganization', "<%= Organization.current.id if Organization.current %>");
|
27
|
-
angular.module('Bastion').value('Permissions', angular.fromJson('<%= User.current.cached_roles.collect { |role| role.permissions }.flatten.to_json.html_safe %>'));
|
28
|
-
angular.module('Bastion').value('CurrentUser', {
|
29
|
-
id: <%= User.current.id %>,
|
30
|
-
admin: <%= User.current.admin || User.current.usergroups.any? { |group| group.admin } %>
|
31
|
-
});
|
32
|
-
angular.module('Bastion').value('markActiveMenu', mark_active_menu);
|
33
|
-
angular.module('Bastion').constant('BastionConfig', angular.fromJson('<%= Bastion.config.to_json.html_safe %>'));
|
34
|
-
</script>
|
35
|
-
<% Bastion.plugins.each do |name, plugin| %>
|
36
|
-
<%= javascript_include_tag(plugin[:javascript]) %>
|
37
|
-
<% end %>
|
38
|
-
<% end %>
|
39
|
-
|
40
|
-
<%= render file: "layouts/base" %>
|
9
|
+
<%= render file: "bastion/layouts/assets" %>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<% content_for(:stylesheets) do %>
|
2
|
+
<%= stylesheet_link_tag "bastion/bastion" %>
|
3
|
+
<% Bastion.plugins.each do |name, plugin| %>
|
4
|
+
<% if plugin[:stylesheet] %>
|
5
|
+
<%= stylesheet_link_tag(plugin[:stylesheet]) %>
|
6
|
+
<% end %>
|
7
|
+
<% end %>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<% content_for(:javascripts) do %>
|
11
|
+
<%= javascript_include_tag 'bastion/bastion' %>
|
12
|
+
<% if File.exist?("#{Bastion::Engine.root}/vendor/assets/javascripts/#{Bastion.localization_path(I18n.locale)}") %>
|
13
|
+
<%= javascript_include_tag(Bastion.localization_path(I18n.locale)) %>
|
14
|
+
<% end %>
|
15
|
+
<script type="text/javascript">
|
16
|
+
angular.module('Bastion.features').value('FeatureSettings', angular.fromJson(<%= SETTINGS[:features].nil? ? {} : SETTINGS[:features].to_json.html_safe %>));
|
17
|
+
angular.module('Bastion').value('currentLocale', '<%= I18n.locale %>');
|
18
|
+
angular.module('Bastion').value('CurrentOrganization', "<%= Organization.current.id if Organization.current %>");
|
19
|
+
angular.module('Bastion').value('Permissions', angular.fromJson('<%= User.current.cached_roles.collect { |role| role.permissions }.flatten.to_json.html_safe %>'));
|
20
|
+
angular.module('Bastion').value('CurrentUser', {
|
21
|
+
id: <%= User.current.id %>,
|
22
|
+
admin: <%= User.current.admin || User.current.usergroups.any? { |group| group.admin } %>
|
23
|
+
});
|
24
|
+
angular.module('Bastion').value('markActiveMenu', mark_active_menu);
|
25
|
+
angular.module('Bastion').constant('BastionConfig', angular.fromJson('<%= Bastion.config.to_json.html_safe %>'));
|
26
|
+
</script>
|
27
|
+
<% Bastion.plugins.each do |name, plugin| %>
|
28
|
+
<%= javascript_include_tag(plugin[:javascript]) %>
|
29
|
+
<% end %>
|
30
|
+
<% end %>
|
31
|
+
|
32
|
+
<%= render file: "layouts/base" %>
|
data/lib/bastion/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bastion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric D Helms
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-01-
|
12
|
+
date: 2016-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: angular-rails-templates
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- app/controllers/bastion/bastion_controller.rb
|
156
156
|
- app/views/bastion/layouts/application.html.erb
|
157
157
|
- app/views/bastion/layouts/application_ie.html.erb
|
158
|
+
- app/views/bastion/layouts/assets.html.erb
|
158
159
|
- bastion.js
|
159
160
|
- bower.json
|
160
161
|
- config/routes.rb
|
@@ -988,42 +989,43 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
988
989
|
version: '0'
|
989
990
|
requirements: []
|
990
991
|
rubyforge_project:
|
991
|
-
rubygems_version: 2.4.
|
992
|
+
rubygems_version: 2.4.6
|
992
993
|
signing_key:
|
993
994
|
specification_version: 4
|
994
995
|
summary: UI library of AngularJS based components for Foreman
|
995
996
|
test_files:
|
996
|
-
- test/bastion/bastion-resource.factory.test.js
|
997
|
-
- test/bastion/test-constants.js
|
998
997
|
- test/features/bst-feature-flag.directive.test.js
|
999
998
|
- test/features/feature-flag.service.test.js
|
1000
999
|
- test/auth/authorization.service.test.js
|
1001
|
-
- test/
|
1000
|
+
- test/components/bst-form-group.directive.test.js
|
1001
|
+
- test/components/bst-table.directive.test.js
|
1002
|
+
- test/components/page-title.directive.test.js
|
1002
1003
|
- test/components/bst-nutupane-table.directive.test.js
|
1003
|
-
- test/components/bst-
|
1004
|
-
- test/components/bst-bookmark.factory.test.js
|
1005
|
-
- test/components/bst-form-buttons.directive.test.js
|
1006
|
-
- test/components/typeahead-empty.directive.test.js
|
1004
|
+
- test/components/bst-menu.directive.test.js
|
1007
1005
|
- test/components/bst-alerts.directive.test.js
|
1008
1006
|
- test/components/nutupane.factory.test.js
|
1009
|
-
- test/components/
|
1010
|
-
- test/components/bst-table.directive.test.js
|
1011
|
-
- test/components/bst-container-scroll.directive.test.js
|
1012
|
-
- test/components/formatters/capitalize.filter.test.js
|
1007
|
+
- test/components/path-selector.directive.test.js
|
1013
1008
|
- test/components/formatters/array-to-string.filter.test.js
|
1014
|
-
- test/components/formatters/boolean-to-yes-no.filter.test.js
|
1015
1009
|
- test/components/formatters/unlimited-filter.filter.test.js
|
1010
|
+
- test/components/formatters/capitalize.filter.test.js
|
1016
1011
|
- test/components/formatters/key-value-to-string.filter.test.js
|
1017
|
-
- test/components/
|
1012
|
+
- test/components/formatters/boolean-to-yes-no.filter.test.js
|
1013
|
+
- test/components/page-title.service.test.js
|
1014
|
+
- test/components/bst-bookmark.factory.test.js
|
1015
|
+
- test/components/bst-alert.directive.test.js
|
1016
|
+
- test/components/bst-container-scroll.directive.test.js
|
1018
1017
|
- test/components/bst-bookmark.directive.test.js
|
1018
|
+
- test/components/bst-flyout.directive.test.js
|
1019
|
+
- test/components/bst-dropdown.directive.test.js
|
1020
|
+
- test/components/typeahead-empty.directive.test.js
|
1021
|
+
- test/components/bst-form-buttons.directive.test.js
|
1019
1022
|
- test/components/bst-edit.directive.test.js
|
1020
1023
|
- test/components/bst-modal.directive.test.js
|
1021
|
-
- test/components/bst-form-group.directive.test.js
|
1022
|
-
- test/components/bst-flyout.directive.test.js
|
1023
|
-
- test/components/page-title.service.test.js
|
1024
|
-
- test/components/bst-alert.directive.test.js
|
1025
|
-
- test/components/path-selector.directive.test.js
|
1026
|
-
- test/utils/as.filter.test.js
|
1027
|
-
- test/utils/form-utils.service.test.js
|
1028
1024
|
- test/test-mocks.module.js
|
1029
1025
|
- test/menu/menu-expander.service.test.js
|
1026
|
+
- test/i18n/translate.service.test.js
|
1027
|
+
- test/bastion/test-constants.js
|
1028
|
+
- test/bastion/bastion-resource.factory.test.js
|
1029
|
+
- test/utils/form-utils.service.test.js
|
1030
|
+
- test/utils/as.filter.test.js
|
1031
|
+
has_rdoc:
|