app/views/promethee/edit/_write.html.erb in promethee-1.0.20 vs app/views/promethee/edit/_write.html.erb in promethee-1.1.0

- old
+ new

@@ -6,32 +6,16 @@ <%= render "promethee/edit/write/component/#{File.basename(file, '.html.erb').sub(/\A_/, '')}" %> <% end %> <% Dir[__dir__ + '/inspector/component/_*.html.erb'].map do |file| %> <%= render "promethee/edit/inspector/component/#{File.basename(file, '.html.erb').sub(/\A_/, '')}" %> <% end %> - -<script type="text/ng-template" id="promethee/write"> - <div class="promethee-editor__page"> - <div ng-class="{ 'container': fullscreen.enabled, 'container-fluid': fullscreen.disabled }"> - <div - ng-init="component = component || data" - class="promethee-editor__component promethee-editor__component--page" - > - <ng-include src="'promethee/write/components'"></ng-include> - </div> +<div class="promethee-editor__write" ng-show="mode == 'write'"> + <div ng-class="{ 'container-fluid': fullscreen }"> + <div ng-init="component = component || data" + class="promethee-editor__component promethee-editor__component--page" + > + <ng-include src="'promethee/write/components'"></ng-include> </div> - <ng-include src="'promethee/write/add_button'"></ng-include> </div> - - <div class="promethee-editor__inspector" ng-class="{'promethee-editor__inspector--open': inspected.component}"> - <div class="promethee-editor__inspector-header"> - <div class="pull-right"> - <span ng-click="inspected.component = null"><%= fa_icon 'window-close' %></span> - </div> - <h5 ng-if="inspected.component">{{inspected.component.type}}</h5> - </div> - - <div ng-if="inspected.component" class="promethee-editor__inspector-content"> - <ng-include src="'promethee/inspector/component/' + inspected.component.type"></ng-include> - </div> - </div> -</script> + <ng-include src="'promethee/write/add_button'"></ng-include> + <%= render 'promethee/edit/inspector/inspector' %> +</div> \ No newline at end of file