diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-09-29 12:21:26 +0600 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-09-29 12:21:33 +0600 |
commit | 2fa4b26cad556de91a15d9843dade39d62dc2291 (patch) | |
tree | b269d0b64938651abb1c9392e1900050342a47a4 /server/sonar-web/src/main/hbs/dashboard/widget.hbs | |
parent | 8de1ad18508d0b707e2f45fe2d0d9701b2990b92 (diff) | |
download | sonarqube-2fa4b26cad556de91a15d9843dade39d62dc2291.tar.gz sonarqube-2fa4b26cad556de91a15d9843dade39d62dc2291.zip |
SONAR-5646 Widget drag'n'drop
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}} |