Chromium Code Reviews| Index: chrome/browser/resources/md_downloads/item.html |
| diff --git a/chrome/browser/resources/md_downloads/item.html b/chrome/browser/resources/md_downloads/item.html |
| index 10d39d15f598657a8ef01468479882f1a026f187..c7fd5ae08ecbd5278e41f0ffe051dd67ca2d0adf 100644 |
| --- a/chrome/browser/resources/md_downloads/item.html |
| +++ b/chrome/browser/resources/md_downloads/item.html |
| @@ -35,19 +35,32 @@ |
| <div id="description"></div> |
| - <paper-progress id="progress"></paper-progress> |
| + <template if="dom-if" if="[[showProgress_]]"> |
| + <paper-progress indeterminate="[[isIndeterminate_(data_.percent)]]" |
| + value="[[data_.percent]]"></paper-progress> |
| + </template> |
| <div id="safe" class="controls" hidden$="[[isDangerous_]]"> |
|
Dan Beam
2015/09/05 01:00:44
this might be a dom-if
|
| - <paper-button id="show" on-click="onShowClick_" |
| - i18n-content="controlShowInFolder" lowercase noink></paper-button> |
| - <paper-button id="retry" on-click="onRetryClick_" |
| - i18n-content="controlRetry"></paper-button> |
| - <paper-button id="pause" on-click="onPauseClick_" |
| - i18n-content="controlPause"></paper-button> |
| - <paper-button id="resume" on-click="onResumeClick_" |
| - i18n-content="controlResume"></paper-button> |
| - <paper-button id="cancel" on-click="onCancelClick_" |
| - i18n-content="controlCancel"></paper-button> |
| + <template is="dom-if" if="[[completelyOnDisk_]]"> |
| + <paper-button id="show-in-folder" on-click="onShowInFolderClick_" |
| + lowercase noink>[[i18n_.showInFolder]]</paper-button> |
| + </template> |
| + <template is="dom-if" if="[[data_.retry]]"> |
| + <paper-button id="retry" |
| + on-click="onRetryClick_">[[i18n_.retry]]</paper-button> |
| + </template> |
| + <template is="dom-if" if="[[isInProgress_]]"> |
| + <paper-button id="pause" |
| + on-click="onPauseClick_">[[i18n_.pause]]</paper-button> |
| + </template> |
| + <template is="dom-if" if="[[data_.resume]]"> |
| + <paper-button id="resume" |
| + on-click="onResumeClick_">[[i18n_.resume]]</paper-button> |
| + </template> |
| + <template is="dom-if" if="[[showCancel_]]"> |
| + <paper-button id="cancel" |
| + on-click="onCancelClick_">[[i18n_.cancel]]</paper-button> |
| + </template> |
| <span id="controlled-by" |
| i18n-values=".innerHTML:controlByExtension"></span> |
| </div> |