Sha256: 126f2def8991a2d730eb73132da8adda02f848bcebe8f55c1db4b799d80f82f6

Contents?: true

Size: 1.47 KB

Versions: 14

Compression:

Stored size: 1.47 KB

Contents

<script type="text/ng-template" id="promethee/components/cover/edit/write">
  <div  ng-controller="CoverController"
        ng-click="inspect(component, $event)"
        class=" promethee-edit__component
                promethee-edit__component--cover">
    <div class="promethee-edit__component-selected" ng-class="{'promethee-edit__component-selected--visible': promethee.inspected === component}">
      <div class="promethee-edit__toolbar promethee-edit__toolbar--transparent">
        <ng-include src="'promethee/write/toolbar'"></ng-include>
      </div>
      <div  ng-hide="editing"
            class=" promethee-edit__wrapper
                    promethee-edit__cover-content"
            ng-bind-html="component.attributes.body | htmlSafe"
            ng-click="edit()"
            style="background-image: url('{{component.attributes.src}}')">
      </div>
      <div  ng-show="editing"
            class=" promethee-edit__wrapper
                    promethee-edit__cover-content"
            style="background-image: url('{{component.attributes.src}}')">
        <summernote config="options" ng-model="component.attributes.body"></summernote>
      </div>
    </div>
  </div>
</script>

<script>
  promethee.controller('CoverController', ['$scope', function($scope) {
    $scope.options = {
      toolbar: [
        ['headline', ['style']],
        ['style', ['bold', 'italic']],
        ['alignment', ['ul', 'ol', 'paragraph']],
        ['code', ['codeview']]
      ]
    };
  }]);
</script>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
promethee-1.2.25 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.24 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.23 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.22 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.21 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.20 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.19 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.18 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.17 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.16 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.15 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.14 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.13 app/views/promethee/components/cover/_edit.write.html.erb
promethee-1.2.12 app/views/promethee/components/cover/_edit.write.html.erb