diff options
Diffstat (limited to 'server/sonar-web/src/main/hbs/dashboard/widget.hbs')
-rw-r--r-- | server/sonar-web/src/main/hbs/dashboard/widget.hbs | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/server/sonar-web/src/main/hbs/dashboard/widget.hbs b/server/sonar-web/src/main/hbs/dashboard/widget.hbs index 7b948096598..844c3ec0c4e 100644 --- a/server/sonar-web/src/main/hbs/dashboard/widget.hbs +++ b/server/sonar-web/src/main/hbs/dashboard/widget.hbs @@ -1,31 +1,28 @@ -<div class="block"> +{{#if state.configure}} - {{#if state.configure}} - - <div class="widget-header"> - <div class="widget-actions"> - {{#notEmpty properties}}<a class="js-edit-widget">Edit</a>{{/notEmpty}} - <a class="js-delete-widget">Delete</a> - </div> - <div class="widget-handle">{{name}}</div> + <div class="widget-header"> + <div class="widget-actions"> + {{#notEmpty properties}}<a class="js-edit-widget">Edit</a>{{/notEmpty}} + <a class="js-delete-widget">Delete</a> </div> + <div class="widget-handle">{{name}}</div> + </div> - <div class="widget_props hidden"> - {{> '_widget-props'}} - </div> + <div class="widget_props hidden"> + {{> '_widget-props'}} + </div> - <div class="configure_widget"> - <div class="transparent"></div> - <div class="widget"> - {{#if html}}{{{html}}}{{else}}<i class="spinner spinner-margin"></i>{{/if}} - </div> + <div class="configure_widget"> + <div class="transparent"></div> + <div class="widget"> + {{#if html}}{{{html}}}{{else}}<i class="spinner spinner-margin"></i>{{/if}} </div> + </div> - {{else}} +{{else}} - <div class="widget"> - {{#if html}}{{{html}}}{{else}}<i class="spinner spinner-margin"></i>{{/if}} - </div> + <div class="widget"> + {{#if html}}{{{html}}}{{else}}<i class="spinner spinner-margin"></i>{{/if}} + </div> - {{/if}} -</div> +{{/if}} |