Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/help/ReleaseNoteView.js

Issue 2773023004: DevTools: polish what's new - add date to title (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Help.ReleaseNoteView = class extends UI.VBox { 5 Help.ReleaseNoteView = class extends UI.VBox {
6 constructor() { 6 constructor() {
7 super(true); 7 super(true);
8 this.registerRequiredCSS('help/releaseNote.css'); 8 this.registerRequiredCSS('help/releaseNote.css');
9 var releaseNoteElement = this._createReleaseNoteElement(Help.latestReleaseNo te()); 9 var releaseNoteElement = this._createReleaseNoteElement(Help.latestReleaseNo te());
10 var topSection = this.contentElement.createChild('div', 'release-note-top-se ction'); 10 var topSection = this.contentElement.createChild('div', 'release-note-top-se ction');
11 topSection.textContent = Common.UIString('New since the last update'); 11 topSection.textContent = Common.UIString(`Highlights from ${Help.latestRelea seNote().date} update`);
12 this.contentElement.appendChild(releaseNoteElement); 12 this.contentElement.appendChild(releaseNoteElement);
13 } 13 }
14 14
15 /** 15 /**
16 * @param {!Help.ReleaseNote} releaseNote 16 * @param {!Help.ReleaseNote} releaseNote
17 * @return {!Element} 17 * @return {!Element}
18 */ 18 */
19 _createReleaseNoteElement(releaseNote) { 19 _createReleaseNoteElement(releaseNote) {
20 var hbox = createElementWithClass('div', 'hbox'); 20 var hbox = createElementWithClass('div', 'hbox');
21 var container = hbox.createChild('div', 'release-note-container'); 21 var container = hbox.createChild('div', 'release-note-container');
(...skipping 25 matching lines...) Expand all
47 47
48 var imageLink = UI.createExternalLink(releaseNote.link, ' '); 48 var imageLink = UI.createExternalLink(releaseNote.link, ' ');
49 imageLink.classList.add('release-note-image'); 49 imageLink.classList.add('release-note-image');
50 imageLink.title = ''; 50 imageLink.title = '';
51 hbox.appendChild(imageLink); 51 hbox.appendChild(imageLink);
52 var image = imageLink.createChild('img'); 52 var image = imageLink.createChild('img');
53 image.src = 'Images/whatsnew.png'; 53 image.src = 'Images/whatsnew.png';
54 return hbox; 54 return hbox;
55 } 55 }
56 }; 56 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698