Sha256: f11436e7500691576154f9a9d58201f94e60470c2dc8ca14161d1e7d4376f80f
Contents?: true
Size: 1.33 KB
Versions: 13
Compression:
Stored size: 1.33 KB
Contents
<% promethee_data = Promethee::Data.new master_data, localization_data: localization_data %> <script> var prometheeLocalizer = angular .module('PrometheeLocalizer', ['summernote']) .value('data', <%= promethee_data.localization_data_to_json.html_safe %>) .filter('htmlSafe', ['$sce', function($sce) { return function(val) { return $sce.trustAsHtml(val); }; }]); prometheeLocalizer.controller('PrometheeLocalizerController', ['$scope', 'data', function($scope, data) { $scope.data = data; $scope.options = { toolbar: [ ['headline', ['style']], ['style', ['bold', 'italic']], ['alignment', ['ul', 'ol', 'paragraph']], ['code', ['codeview']] ] }; }]); angular.element(function() { angular.bootstrap(document.getElementById('prometheeLocalizer'), ['PrometheeLocalizer']); }); </script> <div id="prometheeLocalizer" class="promethee-localizer" ng-app="PrometheeLocalizer" ng-controller="PrometheeLocalizerController as prometheeLocalizerController"> <input type="hidden" name="page[data]" id="page_data" value="{{data}}" /> <%= render 'promethee/partials/include_components' %> <div ng-repeat="component in data.components"> <ng-include src="'promethee/components/' + component.type + '/localize'"></ng-include> </div> </div>
Version data entries
13 entries across 13 versions & 1 rubygems